@cfx-dev/ui-components 4.5.1 → 4.5.3
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/Input.css +1 -1
- package/dist/assets/css/StyledInput.css +1 -0
- package/dist/assets/css/StyledTextarea.css +1 -0
- package/dist/assets/css/Textarea.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.js +139 -129
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +2 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +53 -44
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +13 -12
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/Input/Input.js +94 -89
- package/dist/components/Input/Input.types.d.ts +2 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/Input/RichInput.d.ts +1 -1
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/InputDropzone/InputDropzone.d.ts +1 -0
- package/dist/components/InputDropzone/InputDropzone.js +135 -134
- package/dist/components/InputDropzone/InputDropzoneShowcase.js +6 -5
- package/dist/components/Radio/Radio.d.ts +1 -0
- package/dist/components/Radio/Radio.js +21 -19
- package/dist/components/StyledInput/StyledInput.d.ts +12 -0
- package/dist/components/StyledInput/StyledInput.js +46 -0
- package/dist/components/StyledInput/index.d.ts +2 -0
- package/dist/components/StyledInput/index.js +4 -0
- package/dist/components/StyledTextarea/StyledTextarea.d.ts +10 -0
- package/dist/components/StyledTextarea/StyledTextarea.js +32 -0
- package/dist/components/StyledTextarea/index.d.ts +2 -0
- package/dist/components/StyledTextarea/index.js +4 -0
- package/dist/components/Switch/Switch.js +61 -49
- package/dist/components/Tabular/Tabular.d.ts +12 -0
- package/dist/components/Tabular/Tabular.js +34 -33
- package/dist/components/Tabular/index.d.ts +1 -1
- package/dist/components/Textarea/Textarea.d.ts +7 -3
- package/dist/components/Textarea/Textarea.js +46 -43
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +57 -47
- package/dist/main.d.ts +5 -1
- package/dist/main.js +126 -122
- package/dist/rsc.d.ts +4 -0
- package/dist/rsc.js +12 -8
- package/dist/styles-scss/global.scss +1 -1
- package/dist/styles-scss/tokens.scss +19 -20
- package/package.json +1 -1
|
@@ -1,77 +1,87 @@
|
|
|
1
1
|
import { jsxs as m, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
const
|
|
5
|
-
unsetAll:
|
|
6
|
-
root:
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { clsx as g } from "../../utils/clsx.js";
|
|
4
|
+
const x = "cfxui__ToggleGroup__unsetAll__6911e", h = "cfxui__ToggleGroup__root__fb460", v = "cfxui__ToggleGroup__disabled__75462", G = "cfxui__ToggleGroup__fullWidth__0c589", T = "cfxui__ToggleGroup__large__ad624", C = "cfxui__ToggleGroup__options__7bc0c", W = "cfxui__ToggleGroup__option__8436c", k = "cfxui__ToggleGroup__active__84da0", N = "cfxui__ToggleGroup__multiline__6b784", o = {
|
|
5
|
+
unsetAll: x,
|
|
6
|
+
root: h,
|
|
7
7
|
disabled: v,
|
|
8
|
-
fullWidth:
|
|
9
|
-
large:
|
|
10
|
-
options:
|
|
11
|
-
option:
|
|
12
|
-
active:
|
|
13
|
-
multiline:
|
|
8
|
+
fullWidth: G,
|
|
9
|
+
large: T,
|
|
10
|
+
options: C,
|
|
11
|
+
option: W,
|
|
12
|
+
active: k,
|
|
13
|
+
multiline: N
|
|
14
14
|
};
|
|
15
|
-
var
|
|
16
|
-
const
|
|
15
|
+
var A = /* @__PURE__ */ ((t) => (t.normal = "normal", t.large = "large", t))(A || {});
|
|
16
|
+
const y = p.memo(function(s) {
|
|
17
17
|
const {
|
|
18
|
-
option:
|
|
19
|
-
onClick:
|
|
18
|
+
option: e,
|
|
19
|
+
onClick: i,
|
|
20
20
|
active: c = !1,
|
|
21
|
-
disabled:
|
|
22
|
-
} =
|
|
21
|
+
disabled: n = !1
|
|
22
|
+
} = s, {
|
|
23
23
|
value: l,
|
|
24
24
|
label: a,
|
|
25
|
-
icon:
|
|
26
|
-
} =
|
|
27
|
-
|
|
28
|
-
}, [
|
|
25
|
+
icon: _
|
|
26
|
+
} = e, u = p.useCallback(() => {
|
|
27
|
+
i(l);
|
|
28
|
+
}, [i, l]);
|
|
29
29
|
return /* @__PURE__ */ m(
|
|
30
30
|
"button",
|
|
31
31
|
{
|
|
32
32
|
type: "button",
|
|
33
|
-
className:
|
|
33
|
+
className: g(o.unsetAll, o.option, {
|
|
34
34
|
[o.active]: c
|
|
35
35
|
}),
|
|
36
|
-
tabIndex:
|
|
36
|
+
tabIndex: n ? 0 : 1,
|
|
37
37
|
onClick: u,
|
|
38
|
-
disabled:
|
|
38
|
+
disabled: n,
|
|
39
39
|
children: [
|
|
40
|
-
|
|
40
|
+
_ || null,
|
|
41
41
|
a
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
l
|
|
45
45
|
);
|
|
46
|
-
}),
|
|
46
|
+
}), I = p.memo(function(s) {
|
|
47
47
|
const {
|
|
48
|
-
value:
|
|
49
|
-
options:
|
|
48
|
+
value: e,
|
|
49
|
+
options: i,
|
|
50
50
|
onChange: c,
|
|
51
|
-
className:
|
|
51
|
+
className: n = "",
|
|
52
52
|
disabled: l = !1,
|
|
53
53
|
multiline: a = !1,
|
|
54
|
-
fullWidth:
|
|
55
|
-
size: u = "normal"
|
|
56
|
-
|
|
57
|
-
} =
|
|
54
|
+
fullWidth: _ = !1,
|
|
55
|
+
size: u = "normal",
|
|
56
|
+
name: f
|
|
57
|
+
} = s, b = g(o.root, o[u], n, {
|
|
58
58
|
[o.disabled]: l,
|
|
59
59
|
[o.multiline]: a,
|
|
60
|
-
[o.fullWidth]:
|
|
60
|
+
[o.fullWidth]: _
|
|
61
61
|
});
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
return /* @__PURE__ */ m("div", { className: b, children: [
|
|
63
|
+
f && /* @__PURE__ */ d(
|
|
64
|
+
"input",
|
|
65
|
+
{
|
|
66
|
+
type: "hidden",
|
|
67
|
+
name: f,
|
|
68
|
+
value: e
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ d("div", { className: g(o.options, { [o.fullWidth]: _ }), children: i.map((r) => /* @__PURE__ */ d(
|
|
72
|
+
y,
|
|
73
|
+
{
|
|
74
|
+
option: r,
|
|
75
|
+
onClick: c,
|
|
76
|
+
active: r.value === e,
|
|
77
|
+
disabled: l
|
|
78
|
+
},
|
|
79
|
+
r.value
|
|
80
|
+
)) })
|
|
81
|
+
] });
|
|
72
82
|
});
|
|
73
83
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
I as ToggleGroup,
|
|
85
|
+
y as ToggleGroupOption,
|
|
86
|
+
A as ToggleGroupSizeEnum
|
|
77
87
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -63,6 +63,8 @@ export { InfoPanel } from './components/InfoPanel';
|
|
|
63
63
|
export type { InfoPanelProps, InfoPanelSize, InfoPanelType, } from './components/InfoPanel';
|
|
64
64
|
export { Input, RichInput } from './components/Input';
|
|
65
65
|
export type { InputSize, InputProps, InputTheme, RichInputProps, } from './components/Input';
|
|
66
|
+
export { StyledInput } from './components/StyledInput';
|
|
67
|
+
export type { StyledInputProps } from './components/StyledInput';
|
|
66
68
|
export { Interactive } from './components/Interactive';
|
|
67
69
|
export type { InteractiveProps } from './components/Interactive';
|
|
68
70
|
export { Island, IslandCorner } from './components/Island';
|
|
@@ -118,7 +120,7 @@ export type { SwitchProps } from './components/Switch';
|
|
|
118
120
|
export { ToggleGroup } from './components/ToggleGroup';
|
|
119
121
|
export type { ToggleGroupOption, ToggleGroupProps } from './components/ToggleGroup';
|
|
120
122
|
export { Tabular } from './components/Tabular';
|
|
121
|
-
export type { TabularProps, TabularItem, TabularRootProps, } from './components/Tabular';
|
|
123
|
+
export type { TabularProps, TabularItem, TabularRootProps, TabularItemComponentProps, } from './components/Tabular';
|
|
122
124
|
export { DataTable, DataTableHeaderItem, DataTableRow, } from './components/DataTable';
|
|
123
125
|
export type { DataTableHeaderType, DataTableProps, DataTableRowType, DataTableContainerType, DataTableHeaderItemProps, DataTableRowProps, } from './components/DataTable';
|
|
124
126
|
export { Table, TableIconButton, } from './components/Table';
|
|
@@ -131,6 +133,8 @@ export { Label } from './components/Label';
|
|
|
131
133
|
export type { LabelProps } from './components/Label';
|
|
132
134
|
export { Textarea } from './components/Textarea';
|
|
133
135
|
export type { TextareaProps } from './components/Textarea';
|
|
136
|
+
export { StyledTextarea } from './components/StyledTextarea';
|
|
137
|
+
export type { StyledTextareaProps, TextareaResizeType } from './components/StyledTextarea';
|
|
134
138
|
export { TITLE_OUTLET_ID, titleGetCssStyle, titleGetCoords, Title, } from './components/Title';
|
|
135
139
|
export type { TitleProps, TitleFixedOn, TitleChildren, } from './components/Title';
|
|
136
140
|
export { InputDropzone, DropzoneItemPreview, } from './components/InputDropzone';
|
package/dist/main.js
CHANGED
|
@@ -2,14 +2,14 @@ import { mergeRefs as r } from "./utils/mergeRefs.js";
|
|
|
2
2
|
import { clsx as a } from "./utils/clsx.js";
|
|
3
3
|
import { getValue as m } from "./utils/getValue.js";
|
|
4
4
|
import { usePopoverController as x } from "./utils/hooks/usePopoverController.js";
|
|
5
|
-
import { useInstance as
|
|
5
|
+
import { useInstance as n } from "./utils/hooks/useInstance.js";
|
|
6
6
|
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
10
|
import { useOutlet as g } from "./utils/hooks/useOutlet.js";
|
|
11
11
|
import { CLIPBOARD_TITLE_APPEARANCE as B, useClipboardComponent as R } from "./utils/hooks/useClipboardComponent.js";
|
|
12
|
-
import { formatDate as
|
|
12
|
+
import { formatDate as y, formatLocaleDate as D, formatShortDate as P } from "./utils/formatDate.js";
|
|
13
13
|
import { CURRENCY_MAP as A, FREE_PRICE_TEXT as k, formatCurrency as _ } from "./utils/formatCurrency.js";
|
|
14
14
|
import { identity as O, invoke as v, noop as h, returnFalse as U, returnTrue as M } from "./utils/functional.js";
|
|
15
15
|
import { Linkify as z, defaultLinkReplacer as N, defaultLinkReplacerx as V, isExternalUrl as G, linkify as Y, linkifyx as H, matchLinkNodes as K, matchLinks as X } from "./utils/links.js";
|
|
@@ -17,12 +17,12 @@ import { clamp as j, clamp01 as J, minmax as Q } from "./utils/math.js";
|
|
|
17
17
|
import { isFalseString as q, isTrueString as $, normalizeSlashes as oo, replaceRange as eo, splitByIndices as ro, unicodeCharAt as to } from "./utils/string.js";
|
|
18
18
|
import { debounce as fo, throttle as mo } from "./utils/execution.js";
|
|
19
19
|
import { getColor as xo } from "./utils/color.js";
|
|
20
|
-
import { ui as
|
|
20
|
+
import { ui as no } from "./utils/ui/ui.js";
|
|
21
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
22
|
import { isInEnum as go } from "./utils/enum.js";
|
|
23
23
|
import { joaat32 as Bo } from "./utils/joaat32.js";
|
|
24
24
|
import { default as So } from "./components/IconButton/IconButton.js";
|
|
25
|
-
import { Accordion as
|
|
25
|
+
import { Accordion as Do, AccordionContent as Po, AccordionHeader as bo, AccordionItem as Ao, AccordionTrigger as ko } from "./components/Accordion/Accordion.js";
|
|
26
26
|
import { default as Fo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
27
27
|
import { default as vo } from "./components/Checkbox/Checkbox.js";
|
|
28
28
|
import { default as Uo, ButtonContent as Mo, getButtonClassName as wo } from "./components/Button/Button.js";
|
|
@@ -36,7 +36,7 @@ import { Avatar as oe } from "./components/Avatar/Avatar.js";
|
|
|
36
36
|
import { BACKDROP_OUTLET_ID as re, default as te } from "./components/BackdropPortal/BackdropPortal.js";
|
|
37
37
|
import { Badge as fe } from "./components/Badge/Badge.js";
|
|
38
38
|
import { default as pe } from "./components/ControlBox/ControlBox.js";
|
|
39
|
-
import { default as
|
|
39
|
+
import { default as le } from "./components/CountryFlag/CountryFlag.js";
|
|
40
40
|
import { default as ue } from "./components/Decorate/Decorate.js";
|
|
41
41
|
import { Dot as ie } from "./components/Dot/Dot.js";
|
|
42
42
|
import { FLYOUT_OUTLET_ID as ce, Flyout as Te } from "./components/Flyout/Flyout.js";
|
|
@@ -44,59 +44,61 @@ import { Logos as Ce } from "./components/Logos/index.js";
|
|
|
44
44
|
import { I as ge } from "./cfxIcons-B9nzO6TW.js";
|
|
45
45
|
import { I as Be } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
46
46
|
import { Icon as Se } from "./components/Icon/Icon.js";
|
|
47
|
-
import { IconBig as
|
|
47
|
+
import { IconBig as De } from "./components/IconBig/IconBig.js";
|
|
48
48
|
import { Indicator as be } from "./components/Indicator/Indicator.js";
|
|
49
49
|
import { default as ke } from "./components/InfoPanel/InfoPanel.js";
|
|
50
50
|
import { default as Fe } from "./components/Input/Input.js";
|
|
51
51
|
import { default as ve } from "./components/Input/RichInput.js";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
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 {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import { default as
|
|
93
|
-
import {
|
|
94
|
-
import { default as At } from "./components/
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
52
|
+
import { default as Ue } from "./components/StyledInput/StyledInput.js";
|
|
53
|
+
import { Interactive as we } from "./components/Interactive/Interactive.js";
|
|
54
|
+
import { Island as Ne, IslandCorner as Ve } from "./components/Island/Island.js";
|
|
55
|
+
import { default as Ye } from "./components/Box/Box.js";
|
|
56
|
+
import { stringPropFormater as Ke } from "./components/RSC/Box/Box.js";
|
|
57
|
+
import { Center as We } from "./components/Layout/Center/Center.js";
|
|
58
|
+
import { default as Je } from "./components/Flex/Flex.js";
|
|
59
|
+
import { FlexAlignItemsEnum as Ze, FlexDirectionEnum as qe, FlexJustifyContentEnum as $e, FlexWrapEnum as or } from "./components/RSC/Flex/Flex.types.js";
|
|
60
|
+
import { FlexRestricter as rr } from "./components/RSC/Flex/FlexRestricter.js";
|
|
61
|
+
import { Pad as ar } from "./components/Layout/Pad/Pad.js";
|
|
62
|
+
import { Page as mr } from "./components/Layout/Page/Page.js";
|
|
63
|
+
import { R as xr } from "./Rail-CHFAf3wJ.js";
|
|
64
|
+
import { Scrollable as nr } from "./components/Scrollable/Scrollable.js";
|
|
65
|
+
import { VirtualScrollable as sr } from "./components/Scrollable/VirtualScrollable.js";
|
|
66
|
+
import { Loaf as dr } from "./components/Loaf/Loaf.js";
|
|
67
|
+
import { Modal as Tr } from "./components/Modal/Modal.js";
|
|
68
|
+
import { NavList as Cr } from "./components/NavList/NavList.js";
|
|
69
|
+
import { OVERLAY_OUTLET_ID as gr, Overlay as Lr } from "./components/Overlay/Overlay.js";
|
|
70
|
+
import { default as Rr } from "./components/Pagination/Pagination.js";
|
|
71
|
+
import { Popover as yr } from "./components/Popover/Popover.js";
|
|
72
|
+
import { PremiumBadge as Pr } from "./components/PremiumBadge/PremiumBadge.js";
|
|
73
|
+
import { Prose as Ar } from "./components/Prose/Prose.js";
|
|
74
|
+
import { Radio as _r } from "./components/Radio/Radio.js";
|
|
75
|
+
import { Select as Or } from "./components/Select/Select.js";
|
|
76
|
+
import { DropdownSelect as hr } from "./components/DropdownSelect/DropdownSelect.js";
|
|
77
|
+
import { default as Mr } from "./components/DropdownMenu/DropdownMenu.js";
|
|
78
|
+
import { Separator as zr } from "./components/Separator/Separator.js";
|
|
79
|
+
import { Shroud as Vr } from "./components/Shroud/Shroud.js";
|
|
80
|
+
import { Slider as Yr } from "./components/Slider/Slider.js";
|
|
81
|
+
import { Spacer as Kr } from "./components/Spacer/Spacer.js";
|
|
82
|
+
import { Style as Wr, useContextualStyle as jr } from "./components/Style/Style.js";
|
|
83
|
+
import { default as Qr } from "./components/Switch/Switch.js";
|
|
84
|
+
import { ToggleGroup as qr } from "./components/ToggleGroup/ToggleGroup.js";
|
|
85
|
+
import { Tabular as ot } from "./components/Tabular/Tabular.js";
|
|
86
|
+
import { DataTable as rt, DataTableHeaderItem as tt, DataTableRow as at } from "./components/DataTable/DataTable.js";
|
|
87
|
+
import { Table as mt } from "./components/Table/index.js";
|
|
88
|
+
import { default as xt } from "./components/TableResponsiveText/TableResponsiveText.js";
|
|
89
|
+
import { DEFAULT_TEXT_COLOR as nt, TEXT_OPACITY_MAP as ut, Text as st, TextBlock as it, getTextOpacity as dt, lineHeightResponsiveValueFormatter as ct, textSizeResponsiveValueFormatter as Tt } from "./components/Text/Text.js";
|
|
90
|
+
import { default as Ct } from "./components/Label/Label.js";
|
|
91
|
+
import { Textarea as gt } from "./components/Textarea/Textarea.js";
|
|
92
|
+
import { default as Bt } from "./components/StyledTextarea/StyledTextarea.js";
|
|
93
|
+
import { TITLE_OUTLET_ID as St, Title as yt, titleGetCoords as Dt, titleGetCssStyle as Pt } from "./components/Title/Title.js";
|
|
94
|
+
import { default as At } from "./components/InputDropzone/InputDropzone.js";
|
|
95
|
+
import { default as _t } from "./components/InputDropzone/ItemPreview.js";
|
|
96
|
+
import { default as Ot } from "./components/Skeleton/Skeleton.js";
|
|
97
|
+
import { OnScreenSensor as ht } from "./components/OnScreenSensor.js";
|
|
98
|
+
import { Symbols as Mt } from "./components/Symbols.js";
|
|
99
|
+
import { default as zt } from "./components/Table/TableIconButton.js";
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
Do as Accordion,
|
|
100
102
|
Po as AccordionContent,
|
|
101
103
|
bo as AccordionHeader,
|
|
102
104
|
Ao as AccordionItem,
|
|
@@ -106,7 +108,7 @@ export {
|
|
|
106
108
|
te as BackdropPortal,
|
|
107
109
|
fe as Badge,
|
|
108
110
|
so as BorderRadiusEnum,
|
|
109
|
-
|
|
111
|
+
Ye as Box,
|
|
110
112
|
Xo as BurgerMenu,
|
|
111
113
|
Ho as BurgerMenuButton,
|
|
112
114
|
Uo as Button,
|
|
@@ -115,87 +117,89 @@ export {
|
|
|
115
117
|
qo as ButtonLink,
|
|
116
118
|
B as CLIPBOARD_TITLE_APPEARANCE,
|
|
117
119
|
A as CURRENCY_MAP,
|
|
118
|
-
|
|
120
|
+
We as Center,
|
|
119
121
|
vo as Checkbox,
|
|
120
122
|
Fo as ClipboardButton,
|
|
121
123
|
io as ColorEnum,
|
|
122
124
|
pe as ControlBox,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
le as CountryFlag,
|
|
126
|
+
nt as DEFAULT_TEXT_COLOR,
|
|
127
|
+
rt as DataTable,
|
|
128
|
+
tt as DataTableHeaderItem,
|
|
129
|
+
at as DataTableRow,
|
|
128
130
|
ue as Decorate,
|
|
129
131
|
ie as Dot,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
Mr as DropdownMenu,
|
|
133
|
+
hr as DropdownSelect,
|
|
134
|
+
_t as DropzoneItemPreview,
|
|
133
135
|
ce as FLYOUT_OUTLET_ID,
|
|
134
136
|
k as FREE_PRICE_TEXT,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
Je as Flex,
|
|
138
|
+
Ze as FlexAlignItemsEnum,
|
|
139
|
+
qe as FlexDirectionEnum,
|
|
140
|
+
$e as FlexJustifyContentEnum,
|
|
141
|
+
rr as FlexRestricter,
|
|
142
|
+
or as FlexWrapEnum,
|
|
141
143
|
Te as Flyout,
|
|
142
144
|
Se as Icon,
|
|
143
|
-
|
|
145
|
+
De as IconBig,
|
|
144
146
|
So as IconButton,
|
|
145
147
|
ge as Icons,
|
|
146
148
|
Be as IconsBig,
|
|
147
149
|
be as Indicator,
|
|
148
150
|
ke as InfoPanel,
|
|
149
151
|
Fe as Input,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
At as InputDropzone,
|
|
153
|
+
we as Interactive,
|
|
154
|
+
Ne as Island,
|
|
155
|
+
Ve as IslandCorner,
|
|
156
|
+
Ct as Label,
|
|
155
157
|
jo as Link,
|
|
156
158
|
Go as LinkButton,
|
|
157
159
|
z as Linkify,
|
|
158
|
-
|
|
160
|
+
dr as Loaf,
|
|
159
161
|
Ce as Logos,
|
|
160
162
|
co as MediaQueryEnum,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
Tr as Modal,
|
|
164
|
+
Cr as NavList,
|
|
165
|
+
gr as OVERLAY_OUTLET_ID,
|
|
164
166
|
To as OffsetEnum,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
ht as OnScreenSensor,
|
|
168
|
+
Lr as Overlay,
|
|
169
|
+
ar as Pad,
|
|
170
|
+
mr as Page,
|
|
171
|
+
Rr as Pagination,
|
|
172
|
+
yr as Popover,
|
|
173
|
+
Pr as PremiumBadge,
|
|
174
|
+
Ar as Prose,
|
|
175
|
+
_r as Radio,
|
|
176
|
+
xr as Rail,
|
|
175
177
|
ve as RichInput,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
mt as
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
178
|
+
nr as Scrollable,
|
|
179
|
+
Or as Select,
|
|
180
|
+
zr as Separator,
|
|
181
|
+
Vr as Shroud,
|
|
182
|
+
Ot as Skeleton,
|
|
183
|
+
Yr as Slider,
|
|
184
|
+
Kr as Spacer,
|
|
185
|
+
Wr as Style,
|
|
186
|
+
Ue as StyledInput,
|
|
187
|
+
Bt as StyledTextarea,
|
|
188
|
+
Qr as Switch,
|
|
189
|
+
Mt as Symbols,
|
|
190
|
+
ut as TEXT_OPACITY_MAP,
|
|
191
|
+
St as TITLE_OUTLET_ID,
|
|
192
|
+
mt as Table,
|
|
193
|
+
zt as TableIconButton,
|
|
194
|
+
xt as TableResponsiveText,
|
|
195
|
+
ot as Tabular,
|
|
196
|
+
st as Text,
|
|
197
|
+
it as TextBlock,
|
|
194
198
|
Io as TextSizeEnum,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
gt as Textarea,
|
|
200
|
+
yt as Title,
|
|
201
|
+
qr as ToggleGroup,
|
|
202
|
+
sr as VirtualScrollable,
|
|
199
203
|
Co as ZIndexEnum,
|
|
200
204
|
j as clamp,
|
|
201
205
|
J as clamp01,
|
|
@@ -204,14 +208,14 @@ export {
|
|
|
204
208
|
N as defaultLinkReplacer,
|
|
205
209
|
V as defaultLinkReplacerx,
|
|
206
210
|
_ as formatCurrency,
|
|
207
|
-
|
|
208
|
-
|
|
211
|
+
y as formatDate,
|
|
212
|
+
D as formatLocaleDate,
|
|
209
213
|
P as formatShortDate,
|
|
210
214
|
wo as getButtonClassName,
|
|
211
215
|
xo as getColor,
|
|
212
216
|
Jo as getLinkClassName,
|
|
213
217
|
Qo as getLinkStyles,
|
|
214
|
-
|
|
218
|
+
dt as getTextOpacity,
|
|
215
219
|
m as getValue,
|
|
216
220
|
O as identity,
|
|
217
221
|
v as invoke,
|
|
@@ -220,7 +224,7 @@ export {
|
|
|
220
224
|
go as isInEnum,
|
|
221
225
|
$ as isTrueString,
|
|
222
226
|
Bo as joaat32,
|
|
223
|
-
|
|
227
|
+
ct as lineHeightResponsiveValueFormatter,
|
|
224
228
|
Y as linkify,
|
|
225
229
|
H as linkifyx,
|
|
226
230
|
K as matchLinkNodes,
|
|
@@ -233,18 +237,18 @@ export {
|
|
|
233
237
|
U as returnFalse,
|
|
234
238
|
M as returnTrue,
|
|
235
239
|
ro as splitByIndices,
|
|
236
|
-
|
|
237
|
-
|
|
240
|
+
Ke as stringPropFormater,
|
|
241
|
+
Tt as textSizeResponsiveValueFormatter,
|
|
238
242
|
mo as throttle,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
243
|
+
Dt as titleGetCoords,
|
|
244
|
+
Pt as titleGetCssStyle,
|
|
245
|
+
no as ui,
|
|
242
246
|
to as unicodeCharAt,
|
|
243
247
|
R as useClipboardComponent,
|
|
244
|
-
|
|
248
|
+
jr as useContextualStyle,
|
|
245
249
|
s as useDynamicRef,
|
|
246
250
|
d as useGlobalKeyboardEvent,
|
|
247
|
-
|
|
251
|
+
n as useInstance,
|
|
248
252
|
T as useKeyboardClose,
|
|
249
253
|
g as useOutlet,
|
|
250
254
|
x as usePopoverController,
|
package/dist/rsc.d.ts
CHANGED
|
@@ -2,3 +2,7 @@ export { Box, stringPropFormater, getBoxClassNames, getBoxStyles, } from './comp
|
|
|
2
2
|
export type { BoxProps } from './components/RSC/Box';
|
|
3
3
|
export { Flex, FlexRestricter, FlexAlignItemsEnum, FlexDirectionEnum, FlexJustifyContentEnum, FlexWrapEnum, } from './components/RSC/Flex';
|
|
4
4
|
export type { FlexProps, FlexRestricterProps, FlexAlignItemsType, FlexDirectionType, FlexJustifyContentType, FlexWrapType, } from './components/RSC/Flex';
|
|
5
|
+
export { StyledInput } from './components/StyledInput';
|
|
6
|
+
export type { StyledInputProps } from './components/StyledInput';
|
|
7
|
+
export { StyledTextarea } from './components/StyledTextarea';
|
|
8
|
+
export type { StyledTextareaProps, TextareaResizeType } from './components/StyledTextarea';
|
package/dist/rsc.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { default as r, getBoxClassNames as o, getBoxStyles as x, stringPropFormater as l } from "./components/RSC/Box/Box.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { FlexAlignItemsEnum as
|
|
4
|
-
import { FlexRestricter as
|
|
2
|
+
import { default as m } from "./components/RSC/Flex/Flex.js";
|
|
3
|
+
import { FlexAlignItemsEnum as f, FlexDirectionEnum as n, FlexJustifyContentEnum as u, FlexWrapEnum as p } from "./components/RSC/Flex/Flex.types.js";
|
|
4
|
+
import { FlexRestricter as d } from "./components/RSC/Flex/FlexRestricter.js";
|
|
5
|
+
import { default as g } from "./components/StyledInput/StyledInput.js";
|
|
6
|
+
import { default as E } from "./components/StyledTextarea/StyledTextarea.js";
|
|
5
7
|
export {
|
|
6
8
|
r as Box,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
m as Flex,
|
|
10
|
+
f as FlexAlignItemsEnum,
|
|
11
|
+
n as FlexDirectionEnum,
|
|
10
12
|
u as FlexJustifyContentEnum,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
d as FlexRestricter,
|
|
14
|
+
p as FlexWrapEnum,
|
|
15
|
+
g as StyledInput,
|
|
16
|
+
E as StyledTextarea,
|
|
13
17
|
o as getBoxClassNames,
|
|
14
18
|
x as getBoxStyles,
|
|
15
19
|
l as stringPropFormater
|
|
@@ -13,7 +13,6 @@ body {
|
|
|
13
13
|
@include tokens.color-tokens;
|
|
14
14
|
@include tokens.offset-tokens;
|
|
15
15
|
@include tokens.control-tokens;
|
|
16
|
-
@include tokens.text-tokens;
|
|
17
16
|
@include tokens.border-radius-tokens;
|
|
18
17
|
@include tokens.switch-tokens;
|
|
19
18
|
@include tokens.input-dropzone-tokens;
|
|
@@ -33,6 +32,7 @@ body {
|
|
|
33
32
|
@include tokens.anchor-tokens;
|
|
34
33
|
@include tokens.separator-tokens;
|
|
35
34
|
@include tokens.zindex-tokens;
|
|
35
|
+
@include tokens.text-tokens;
|
|
36
36
|
|
|
37
37
|
// initiat fonts
|
|
38
38
|
@include typography.font-HelveticaNow;
|
|
@@ -52,6 +52,25 @@
|
|
|
52
52
|
@include ui.define-font-size('xlarge', ui.q(4), 1.2);
|
|
53
53
|
@include ui.define-font-size('xxlarge', ui.q(5), 1.2);
|
|
54
54
|
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
55
|
+
@include ui.def('font-weight-thin', 100);
|
|
56
|
+
@include ui.def('font-weight-small', 300);
|
|
57
|
+
@include ui.def('font-weight-normal', 400);
|
|
58
|
+
@include ui.def('font-weight-bold', 700);
|
|
59
|
+
@include ui.def('font-weight-bolder', 800);
|
|
60
|
+
@include ui.def('font-weight-boldest', 900);
|
|
61
|
+
@include ui.def('letter-spacing-normal', -0.025em);
|
|
62
|
+
@include ui.def('letter-spacing-large', 0);
|
|
63
|
+
@include ui.def('font-family-primary', 'HelveticaNowText');
|
|
64
|
+
@include ui.def('font-family-secondary', 'HelveticaNowDisplay');
|
|
65
|
+
@include ui.define-color-token('text', ui.color('primary', 'pure'));
|
|
66
|
+
@include ui.def('text-opacity-10', 0.1);
|
|
67
|
+
@include ui.define-color-token('text-a10', ui.color('primary', $alpha: 0.1));
|
|
68
|
+
@include ui.def('text-opacity-25', 0.25);
|
|
69
|
+
@include ui.define-color-token('text-a25', ui.color('primary', $alpha: 0.25));
|
|
70
|
+
@include ui.def('text-opacity-50', 0.5);
|
|
71
|
+
@include ui.define-color-token('text-a50', ui.color('primary', $alpha: 0.5));
|
|
72
|
+
@include ui.def('text-opacity-75', 0.75);
|
|
73
|
+
@include ui.define-color-token('text-a75', ui.color('primary', $alpha: 0.75));
|
|
55
74
|
|
|
56
75
|
@include ui.media-min('medium') {
|
|
57
76
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
@@ -91,26 +110,6 @@
|
|
|
91
110
|
@include ui.define-font-size('xxlarge', ui.q(6.25), 1.3);
|
|
92
111
|
@include ui.define-font-size('xxxlarge', ui.q(7.5), 1.2);
|
|
93
112
|
}
|
|
94
|
-
|
|
95
|
-
@include ui.def('font-weight-thin', 100);
|
|
96
|
-
@include ui.def('font-weight-small', 300);
|
|
97
|
-
@include ui.def('font-weight-normal', 400);
|
|
98
|
-
@include ui.def('font-weight-bold', 700);
|
|
99
|
-
@include ui.def('font-weight-bolder', 800);
|
|
100
|
-
@include ui.def('font-weight-boldest', 900);
|
|
101
|
-
@include ui.def('letter-spacing-normal', -0.025em);
|
|
102
|
-
@include ui.def('letter-spacing-large', 0);
|
|
103
|
-
@include ui.def('font-family-primary', 'HelveticaNowText');
|
|
104
|
-
@include ui.def('font-family-secondary', 'HelveticaNowDisplay');
|
|
105
|
-
@include ui.define-color-token('text', ui.color('primary', 'pure'));
|
|
106
|
-
@include ui.def('text-opacity-10', 0.1);
|
|
107
|
-
@include ui.define-color-token('text-a10', ui.color('primary', $alpha: 0.1));
|
|
108
|
-
@include ui.def('text-opacity-25', 0.25);
|
|
109
|
-
@include ui.define-color-token('text-a25', ui.color('primary', $alpha: 0.25));
|
|
110
|
-
@include ui.def('text-opacity-50', 0.5);
|
|
111
|
-
@include ui.define-color-token('text-a50', ui.color('primary', $alpha: 0.5));
|
|
112
|
-
@include ui.def('text-opacity-75', 0.75);
|
|
113
|
-
@include ui.define-color-token('text-a75', ui.color('primary', $alpha: 0.75));
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
@mixin offset-tokens() {
|