@progress/kendo-react-common 14.5.0-develop.9 → 15.0.0-develop.2
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/README.md +5 -5
- package/WebMcpProvider.d.ts +108 -0
- package/WebMcpProvider.js +9 -0
- package/WebMcpProvider.mjs +41 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useMergedRef.d.ts +16 -0
- package/hooks/useMergedRef.js +8 -0
- package/hooks/useMergedRef.mjs +20 -0
- package/hooks/usePaidChildrenWatermark.d.ts +37 -0
- package/hooks/usePaidChildrenWatermark.js +9 -0
- package/hooks/usePaidChildrenWatermark.mjs +29 -0
- package/icons/SvgIcon.d.ts +18 -0
- package/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +73 -69
- package/icons/models/variant.d.ts +18 -0
- package/index.d.mts +4 -0
- package/index.d.ts +4 -0
- package/index.js +1 -1
- package/index.mjs +178 -169
- package/package.json +1 -1
- package/unstyled/buttons.d.ts +0 -4
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +72 -75
- package/validate-package.js +2 -2
- package/validate-package.mjs +10 -10
- package/watermark/WatermarkOverlay.js +1 -1
- package/watermark/WatermarkOverlay.mjs +30 -29
package/index.mjs
CHANGED
|
@@ -12,12 +12,12 @@ import { BrowserSupportService as x } from "./browser-support.service.mjs";
|
|
|
12
12
|
import { canUseDOM as d } from "./canUseDOM.mjs";
|
|
13
13
|
import { canUseRef as l } from "./canUseRef.mjs";
|
|
14
14
|
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
|
|
15
|
-
import { clone as g, cloneArray as P, cloneDate as
|
|
16
|
-
import { applyTrappedFocus as
|
|
15
|
+
import { clone as g, cloneArray as P, cloneDate as b, cloneObject as h, cloneValue as A } from "./clone.mjs";
|
|
16
|
+
import { applyTrappedFocus as M, disableNavigatableContainer as T, enableNavigatableContainer as v, firstFocusableChild as S, focusFirstFocusableChild as B, focusLastFocusableChild as L, focusableChildren as F, keepFocusInContainer as N, lastFocusableChild as y } from "./trappedFocus.mjs";
|
|
17
17
|
import { FormComponent as w } from "./FormComponent.mjs";
|
|
18
|
-
import { getTabIndex as
|
|
18
|
+
import { getTabIndex as _ } from "./getTabIndex.mjs";
|
|
19
19
|
import { getter as U } from "./getter.mjs";
|
|
20
|
-
import { guid as
|
|
20
|
+
import { guid as W } from "./guid.mjs";
|
|
21
21
|
import { KEYS as G, Keys as H } from "./keys.mjs";
|
|
22
22
|
import { noop as Z } from "./noop.mjs";
|
|
23
23
|
import { getScrollbarWidth as X, setScrollbarWidth as Y } from "./scrollbarWidth.mjs";
|
|
@@ -28,17 +28,17 @@ import { getLicenseMessage as fe, hasValidLicense as de, validatePackage as ue }
|
|
|
28
28
|
import { hasRelativeStackingContext as ce } from "./hasRelativeStackingContext.mjs";
|
|
29
29
|
import { WatermarkOverlay as Ce } from "./watermark/WatermarkOverlay.mjs";
|
|
30
30
|
import { applyDefaultProps as ge } from "./apply-default-props.mjs";
|
|
31
|
-
import { dispatchEvent as
|
|
32
|
-
import { AsyncFocusBlur as
|
|
33
|
-
import { createPropsContext as
|
|
31
|
+
import { dispatchEvent as be } from "./events/dispatchEvent.mjs";
|
|
32
|
+
import { AsyncFocusBlur as Ae } from "./hocs/AsyncFocusBlur.mjs";
|
|
33
|
+
import { createPropsContext as Me, withPropsContext as Te } from "./hocs/withPropsContext.mjs";
|
|
34
34
|
import { withIdHOC as Se } from "./hocs/use-id-hoc.mjs";
|
|
35
35
|
import { withUnstyledHOC as Le } from "./hocs/use-unstyled-hoc.mjs";
|
|
36
36
|
import { withAdaptiveModeContext as Ne } from "./hocs/use-adaptive-mode-hoc.mjs";
|
|
37
37
|
import { withZIndexContext as Oe } from "./hocs/withzIndexContext.mjs";
|
|
38
|
-
import { useDir as
|
|
39
|
-
import { useAsyncFocusBlur as
|
|
38
|
+
import { useDir as Re } from "./hooks/useDir.mjs";
|
|
39
|
+
import { useAsyncFocusBlur as ke } from "./hooks/useAsyncFocusBlur.mjs";
|
|
40
40
|
import { useRtl as Ke } from "./hooks/useRtl.mjs";
|
|
41
|
-
import { useMouse as
|
|
41
|
+
import { useMouse as Ve } from "./hooks/useMouse.mjs";
|
|
42
42
|
import { useCustomComponent as He } from "./hooks/useCustomComponent.mjs";
|
|
43
43
|
import { usePropsContext as Ze } from "./hooks/usePropsContext.mjs";
|
|
44
44
|
import { COLLECTION_ACTION as Xe, useCollection as Ye } from "./hooks/useCollection.mjs";
|
|
@@ -47,222 +47,231 @@ import { useWindow as $e } from "./hooks/useWindow.mjs";
|
|
|
47
47
|
import { useId as oo } from "./hooks/use-id.mjs";
|
|
48
48
|
import { useIsomorphicLayoutEffect as to } from "./hooks/use-isomorphic-layout-effect.mjs";
|
|
49
49
|
import { useImmediateInheritState as so } from "./hooks/use-immediate-inherit-state.mjs";
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
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 {
|
|
50
|
+
import { usePaidChildrenWatermark as no } from "./hooks/usePaidChildrenWatermark.mjs";
|
|
51
|
+
import { useMergedRef as io } from "./hooks/useMergedRef.mjs";
|
|
52
|
+
import { Icon as fo } from "./icons/Icon.mjs";
|
|
53
|
+
import { SvgIcon as lo } from "./icons/SvgIcon.mjs";
|
|
54
|
+
import { IconWrap as Io } from "./icons/IconWrap.mjs";
|
|
55
|
+
import { IconsContext as Eo } from "./icons/IconsContext.mjs";
|
|
56
|
+
import { svgIconPropType as Po, toIconClass as bo, toIconName as ho } from "./icons/utils.mjs";
|
|
57
|
+
import { Typography as Do } from "./typography/Typography.mjs";
|
|
58
|
+
import { DragAndDrop as To } from "./drag-n-drop/index.mjs";
|
|
59
|
+
import { Draggable as So } from "./Draggable.mjs";
|
|
60
|
+
import { Droppable as Lo } from "./Droppable.mjs";
|
|
61
|
+
import { useDraggable as No } from "./hooks/useDraggable.mjs";
|
|
62
|
+
import { useDroppable as Oo } from "./hooks/useDroppable.mjs";
|
|
63
|
+
import { kendoThemeMaps as Ro } from "./theme.mjs";
|
|
64
|
+
import { memoizeOne as ko } from "./memoize.mjs";
|
|
65
|
+
import { Navigation as Ko } from "./navigation.mjs";
|
|
66
|
+
import { getActiveElement as Vo, getInnerActiveElement as Go } from "./getActiveElement.mjs";
|
|
67
|
+
import { getFileExtensionIcon as jo } from "./fileExtensionIcon.mjs";
|
|
68
|
+
import { TreeFieldsService as zo } from "./tree-utils/FieldsService.mjs";
|
|
69
|
+
import { SortedPublicItemIds as Yo } from "./tree-utils/SortedPublicItemIds.mjs";
|
|
70
|
+
import { addItem as Jo, areAllDirectChildrenChecked as Qo, getAllDirectIndirectChildrenIds as $o, getAllParents as er, hasChildren as or, isEnabledAndAllParentsEnabled as rr, isItemExpandedAndWithChildren as tr, removeItem as pr, resolveItemId as sr, resolveItemsIds as ar, updateItem as nr } from "./tree-utils/itemUtils.mjs";
|
|
71
|
+
import { getNestedValue as ir, isArray as xr } from "./tree-utils/misc.mjs";
|
|
72
|
+
import { RowHeightService as dr } from "./rowHeightService.mjs";
|
|
73
|
+
import { deepMerge as lr, isObject as cr, isPromise as Ir } from "./deep-merge.mjs";
|
|
74
|
+
import { WebMcpContext as Er, WebMcpProvider as gr, getModelContext as Pr, useWebMcpRegister as br } from "./WebMcpProvider.mjs";
|
|
75
|
+
import { KENDO_PASTE_EVENT_NAME as Ar, createKendoPasteEvent as Dr, dispatchKendoPasteEvent as Mr, getKendoPasteEventTarget as Tr } from "./kendopaste/KendoPasteEvent.mjs";
|
|
76
|
+
import { UnstyledContext as Sr, useUnstyled as Br } from "./unstyled/unstyled-context.mjs";
|
|
77
|
+
import { actions as Fr, animationStyles as Nr, base as yr, buttonPrefix as Or, calendarPrefix as wr, comboBoxPrefix as Rr, components as _r, containers as kr, cssUtils as Ur, cursor as Kr, dateInputs as Wr, ddbPrefix as Vr, dimensions as Gr, directionMap as Hr, dropDownListPrefix as jr, elements as Zr, fillModeMap as zr, forms as Xr, grid as Yr, gridPrefix as qr, gridRowReorder as Jr, icon as Qr, inputPrefix as $r, inputs as et, jsonTheme as ot, labels as rt, maskedPrefix as tt, orientationMap as pt, pickerPrefix as st, popup as at, radioPrefix as nt, roundedMap as mt, sizeMap as it, states as xt, themeColorMap as ft } from "./unstyled/json-classes.mjs";
|
|
78
|
+
import { radioButtonClasses as ut, radioGroupClasses as lt, uInput as ct, uMaskedTextBox as It, uRadioButton as Ct, uRadioGroup as Et, uTextBox as gt } from "./unstyled/inputs.mjs";
|
|
79
|
+
import { subscribeToKendoPaste as bt, useKendoPaste as ht } from "./kendopaste/useKendoPaste.mjs";
|
|
80
|
+
import { uAnimation as Dt } from "./unstyled/animations.mjs";
|
|
81
|
+
import { uButton as Tt, uButtonGroup as vt, uDropDownButton as St } from "./unstyled/buttons.mjs";
|
|
82
|
+
import { uCalendar as Lt, uDateInput as Ft, uDateTimePicker as Nt, uTime as yt, uTimePicker as Ot } from "./unstyled/dateinputs.mjs";
|
|
83
|
+
import { uComboBox as Rt, uDropDownList as _t, uDropDownsActionSheet as kt, uDropDownsBase as Ut } from "./unstyled/dropdowns.mjs";
|
|
84
|
+
import { uError as Wt, uFloatingLabel as Vt, uHint as Gt, uLabel as Ht } from "./unstyled/labels.mjs";
|
|
85
|
+
import { uForm as Zt } from "./unstyled/form.mjs";
|
|
86
|
+
import { uGrid as Xt } from "./unstyled/grid.mjs";
|
|
87
|
+
import { uPopup as qt } from "./unstyled/popup.mjs";
|
|
88
|
+
import { uSvgIcon as Qt } from "./unstyled/icons.mjs";
|
|
86
89
|
export {
|
|
87
90
|
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
88
91
|
ee as ADAPTIVE_SMALL_BREAKPOINT,
|
|
89
92
|
a as AdaptiveModeContext,
|
|
90
|
-
|
|
93
|
+
Ae as AsyncFocusBlur,
|
|
91
94
|
x as BrowserSupportService,
|
|
92
95
|
Xe as COLLECTION_ACTION,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
To as DragAndDrop,
|
|
97
|
+
So as Draggable,
|
|
98
|
+
Lo as Droppable,
|
|
96
99
|
oe as FIELD_REGEX,
|
|
97
100
|
re as FOCUSABLE_ELEMENTS,
|
|
98
101
|
te as FOCUSABLE_ELEMENTS_BASE,
|
|
99
102
|
w as FormComponent,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
fo as Icon,
|
|
104
|
+
Io as IconWrap,
|
|
105
|
+
Eo as IconsContext,
|
|
106
|
+
Ar as KENDO_PASTE_EVENT_NAME,
|
|
104
107
|
G as KEYS,
|
|
105
108
|
H as Keys,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
Ko as Navigation,
|
|
110
|
+
dr as RowHeightService,
|
|
111
|
+
Yo as SortedPublicItemIds,
|
|
112
|
+
lo as SvgIcon,
|
|
110
113
|
pe as TABBABLE_ELEMENTS,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
zo as TreeFieldsService,
|
|
115
|
+
Do as Typography,
|
|
116
|
+
Sr as UnstyledContext,
|
|
114
117
|
Ce as WatermarkOverlay,
|
|
118
|
+
Er as WebMcpContext,
|
|
119
|
+
gr as WebMcpProvider,
|
|
115
120
|
t as ZIndexContext,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
Fr as actions,
|
|
122
|
+
Jo as addItem,
|
|
123
|
+
Nr as animationStyles,
|
|
119
124
|
ge as applyDefaultProps,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
M as applyTrappedFocus,
|
|
126
|
+
Qo as areAllDirectChildrenChecked,
|
|
127
|
+
yr as base,
|
|
128
|
+
Or as buttonPrefix,
|
|
129
|
+
wr as calendarPrefix,
|
|
125
130
|
d as canUseDOM,
|
|
126
131
|
l as canUseRef,
|
|
127
132
|
I as classNames,
|
|
128
133
|
g as clone,
|
|
129
134
|
P as cloneArray,
|
|
130
|
-
|
|
135
|
+
b as cloneDate,
|
|
131
136
|
h as cloneObject,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
A as cloneValue,
|
|
138
|
+
Rr as comboBoxPrefix,
|
|
139
|
+
_r as components,
|
|
140
|
+
kr as containers,
|
|
141
|
+
Dr as createKendoPasteEvent,
|
|
142
|
+
Me as createPropsContext,
|
|
143
|
+
Ur as cssUtils,
|
|
144
|
+
Kr as cursor,
|
|
145
|
+
Wr as dateInputs,
|
|
146
|
+
Vr as ddbPrefix,
|
|
147
|
+
lr as deepMerge,
|
|
143
148
|
n as defaultValue,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
Gr as dimensions,
|
|
150
|
+
Hr as directionMap,
|
|
151
|
+
T as disableNavigatableContainer,
|
|
152
|
+
be as dispatchEvent,
|
|
153
|
+
Mr as dispatchKendoPasteEvent,
|
|
154
|
+
jr as dropDownListPrefix,
|
|
155
|
+
Zr as elements,
|
|
156
|
+
v as enableNavigatableContainer,
|
|
152
157
|
ae as extendDataItem,
|
|
153
|
-
|
|
158
|
+
zr as fillModeMap,
|
|
154
159
|
S as firstFocusableChild,
|
|
155
160
|
B as focusFirstFocusableChild,
|
|
156
161
|
L as focusLastFocusableChild,
|
|
157
162
|
F as focusableChildren,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
Xr as forms,
|
|
164
|
+
Vo as getActiveElement,
|
|
165
|
+
$o as getAllDirectIndirectChildrenIds,
|
|
166
|
+
er as getAllParents,
|
|
167
|
+
jo as getFileExtensionIcon,
|
|
168
|
+
Go as getInnerActiveElement,
|
|
164
169
|
ne as getItemPath,
|
|
165
|
-
|
|
170
|
+
Tr as getKendoPasteEventTarget,
|
|
166
171
|
fe as getLicenseMessage,
|
|
167
|
-
|
|
172
|
+
Pr as getModelContext,
|
|
173
|
+
ir as getNestedValue,
|
|
168
174
|
X as getScrollbarWidth,
|
|
169
|
-
|
|
175
|
+
_ as getTabIndex,
|
|
170
176
|
U as getter,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
177
|
+
Yr as grid,
|
|
178
|
+
qr as gridPrefix,
|
|
179
|
+
Jr as gridRowReorder,
|
|
180
|
+
W as guid,
|
|
181
|
+
or as hasChildren,
|
|
176
182
|
ce as hasRelativeStackingContext,
|
|
177
183
|
de as hasValidLicense,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
Qr as icon,
|
|
185
|
+
$r as inputPrefix,
|
|
186
|
+
et as inputs,
|
|
187
|
+
xr as isArray,
|
|
188
|
+
rr as isEnabledAndAllParentsEnabled,
|
|
189
|
+
tr as isItemExpandedAndWithChildren,
|
|
190
|
+
cr as isObject,
|
|
191
|
+
Ir as isPromise,
|
|
192
|
+
ot as jsonTheme,
|
|
187
193
|
N as keepFocusInContainer,
|
|
188
|
-
|
|
189
|
-
|
|
194
|
+
Ro as kendoThemeMaps,
|
|
195
|
+
rt as labels,
|
|
190
196
|
y as lastFocusableChild,
|
|
191
197
|
me as mapTree,
|
|
192
198
|
ie as mapTreeItem,
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
tt as maskedPrefix,
|
|
200
|
+
ko as memoizeOne,
|
|
195
201
|
Z as noop,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
pt as orientationMap,
|
|
203
|
+
st as pickerPrefix,
|
|
204
|
+
at as popup,
|
|
205
|
+
ut as radioButtonClasses,
|
|
206
|
+
lt as radioGroupClasses,
|
|
207
|
+
nt as radioPrefix,
|
|
208
|
+
pr as removeItem,
|
|
209
|
+
sr as resolveItemId,
|
|
210
|
+
ar as resolveItemsIds,
|
|
211
|
+
mt as roundedMap,
|
|
206
212
|
Y as setScrollbarWidth,
|
|
207
213
|
J as setter,
|
|
208
|
-
|
|
209
|
-
|
|
214
|
+
it as sizeMap,
|
|
215
|
+
xt as states,
|
|
210
216
|
C as strippedClassNames,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
217
|
+
bt as subscribeToKendoPaste,
|
|
218
|
+
Po as svgIconPropType,
|
|
219
|
+
ft as themeColorMap,
|
|
220
|
+
bo as toIconClass,
|
|
221
|
+
ho as toIconName,
|
|
216
222
|
e as treeIdUtils,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
223
|
+
Dt as uAnimation,
|
|
224
|
+
Tt as uButton,
|
|
225
|
+
vt as uButtonGroup,
|
|
226
|
+
Lt as uCalendar,
|
|
227
|
+
Rt as uComboBox,
|
|
228
|
+
Ft as uDateInput,
|
|
229
|
+
Nt as uDateTimePicker,
|
|
230
|
+
St as uDropDownButton,
|
|
231
|
+
_t as uDropDownList,
|
|
232
|
+
kt as uDropDownsActionSheet,
|
|
233
|
+
Ut as uDropDownsBase,
|
|
234
|
+
Wt as uError,
|
|
235
|
+
Vt as uFloatingLabel,
|
|
236
|
+
Zt as uForm,
|
|
237
|
+
Xt as uGrid,
|
|
238
|
+
Gt as uHint,
|
|
239
|
+
ct as uInput,
|
|
240
|
+
Ht as uLabel,
|
|
241
|
+
It as uMaskedTextBox,
|
|
242
|
+
qt as uPopup,
|
|
243
|
+
Ct as uRadioButton,
|
|
244
|
+
Et as uRadioGroup,
|
|
245
|
+
Qt as uSvgIcon,
|
|
246
|
+
gt as uTextBox,
|
|
247
|
+
yt as uTime,
|
|
248
|
+
Ot as uTimePicker,
|
|
249
|
+
nr as updateItem,
|
|
244
250
|
m as useAdaptiveModeContext,
|
|
245
|
-
|
|
251
|
+
ke as useAsyncFocusBlur,
|
|
246
252
|
Ye as useCollection,
|
|
247
253
|
He as useCustomComponent,
|
|
248
|
-
|
|
254
|
+
Re as useDir,
|
|
249
255
|
Je as useDocument,
|
|
250
|
-
|
|
251
|
-
|
|
256
|
+
No as useDraggable,
|
|
257
|
+
Oo as useDroppable,
|
|
252
258
|
oo as useId,
|
|
253
259
|
so as useImmediateInheritState,
|
|
254
260
|
to as useIsomorphicLayoutEffect,
|
|
255
|
-
|
|
256
|
-
|
|
261
|
+
ht as useKendoPaste,
|
|
262
|
+
io as useMergedRef,
|
|
263
|
+
Ve as useMouse,
|
|
264
|
+
no as usePaidChildrenWatermark,
|
|
257
265
|
Ze as usePropsContext,
|
|
258
266
|
Ke as useRtl,
|
|
259
|
-
|
|
267
|
+
Br as useUnstyled,
|
|
268
|
+
br as useWebMcpRegister,
|
|
260
269
|
$e as useWindow,
|
|
261
270
|
p as useZIndexContext,
|
|
262
271
|
ue as validatePackage,
|
|
263
272
|
Ne as withAdaptiveModeContext,
|
|
264
273
|
Se as withIdHOC,
|
|
265
|
-
|
|
274
|
+
Te as withPropsContext,
|
|
266
275
|
Le as withUnstyledHOC,
|
|
267
276
|
Oe as withZIndexContext
|
|
268
277
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-develop.2",
|
|
4
4
|
"description": "React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/unstyled/buttons.d.ts
CHANGED
|
@@ -52,10 +52,6 @@ export interface ButtonWrapperClasses {
|
|
|
52
52
|
warning?: string;
|
|
53
53
|
/** Error theme color */
|
|
54
54
|
error?: string;
|
|
55
|
-
/** Dark theme color */
|
|
56
|
-
dark?: string;
|
|
57
|
-
/** Light theme color */
|
|
58
|
-
light?: string;
|
|
59
55
|
/** Inverse theme color */
|
|
60
56
|
inverse?: string;
|
|
61
57
|
};
|
package/unstyled/buttons.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./interfaces/common.js"),e=require("./json-classes.js"),d={wrapper:{main:e.buttonPrefix,size:{xs:`${e.buttonPrefix}-${e.sizeMap.xsmall}`,small:`${e.buttonPrefix}-${e.sizeMap.small}`,medium:`${e.buttonPrefix}-${e.sizeMap.medium}`,large:`${e.buttonPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}`},themeColor:{base:`${e.buttonPrefix}-${e.themeColorMap.base}`,primary:`${e.buttonPrefix}-${e.themeColorMap.primary}`,secondary:`${e.buttonPrefix}-${e.themeColorMap.secondary}`,tertiary:`${e.buttonPrefix}-${e.themeColorMap.tertiary}`,info:`${e.buttonPrefix}-${e.themeColorMap.info}`,success:`${e.buttonPrefix}-${e.themeColorMap.success}`,warning:`${e.buttonPrefix}-${e.themeColorMap.warning}`,error:`${e.buttonPrefix}-${e.themeColorMap.error}`,inverse:`${e.buttonPrefix}-${e.themeColorMap.inverse}`},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},iconButton:`${e.base.prefix}-${e.elements.icon}-${e.elements.button}`,disabled:`${e.base.prefix}-${e.states.disabled}`,selected:`${e.base.prefix}-${e.states.selected}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},text:`${e.buttonPrefix}-${e.elements.text}`,icon:`${e.buttonPrefix}-${e.elements.icon}`},M={wrapper:o=>{const{isRtl:t,selected:i,disabled:s,size:r,fillMode:u,rounded:a,themeColor:$,iconButton:m,c:x=d}=o,n=x.wrapper,p=$&&n.themeColor?n.themeColor[$]:void 0,c=r?n.size[r]||`${e.buttonPrefix}-${r}`:void 0;return{[n.main]:!0,[c]:!!c,[n.fillMode[u]]:u&&n.fillMode[u],[p]:p,[n.rounded[a]]:a&&n.rounded[a],[`${e.base.prefix}-${e.base.rounded}-${a}`]:a&&!n.rounded[a],[n.iconButton]:m,[n.disabled]:s,[n.selected]:i,[n.isRtl]:t}},text:o=>{const{c:t=d}=o;return{[t.text]:!0}},icon:o=>{const{c:t=d}=o;return{[t.icon]:!0}}},f={wrapper:{main:`${e.buttonPrefix}-${e.containers.group}`,stretched:`${e.buttonPrefix}-${e.containers.group}-${e.states.stretched}`,disabled:`${e.base.prefix}-${e.states.disabled}`},position:{start:`${e.base.prefix}-${e.containers.group}-${e.directionMap.start}`,end:`${e.base.prefix}-${e.containers.group}-${e.directionMap.end}`}},P={wrapper:o=>{const{stretched:t,disabled:i,c:s=f}=o,r=s.wrapper;return{[r.main]:!0,[r.stretched]:t,[r.disabled]:i}},position:o=>{const{start:t,end:i,c:s=f}=o,r=s.position;return{[r.start]:t,[r.end]:i}}},l={wrapper:{main:`${e.ddbPrefix}-${e.elements.button}`,focus:`${e.base.prefix}-${e.states.focus}`,disabled:`${e.base.prefix}-${e.states.disabled}`},ul:{group:`${e.ddbPrefix}-${e.containers.group}`,size:{small:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.small}`,medium:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.medium}`,large:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.large}`}},li:{item:`${e.base.prefix}-${e.containers.item}`,focus:`${e.base.prefix}-${e.states.focus}`},item:`${e.ddbPrefix}-${e.containers.item}`,link:{main:`${e.base.prefix}-${e.elements.link}`,link:`${e.ddbPrefix}-${e.elements.link}`,selected:`${e.base.prefix}-${e.states.selected}`,disabled:`${e.base.prefix}-${e.states.disabled}`},popup:`${e.ddbPrefix}-${e.containers.popup}`},g={wrapper:o=>{const{focused:t,disabled:i,c:s=l}=o,r=s.wrapper;return{[r.main]:!0,[r.focus]:t,[r.disabled]:i}},ul:o=>{const{size:t,c:i=l}=o,s=i.ul;return{[s.group]:!0,[s.size[t]]:s.size[t],[`${e.ddbPrefix}-${e.containers.group}-${t}`]:t&&!s.size[t]}},li:o=>{const{focused:t,c:i=l}=o,s=i.li;return{[s.item]:!0,[s.focus]:t}},item:b.getClassByName(l,"item"),link:o=>{const{selected:t,disabled:i,c:s=l}=o,r=s.link;return{[r.main]:!0,[r.link]:!0,[r.selected]:t,[r.disabled]:i}},popup:b.getClassByName(l,"popup")};exports.uButton=M;exports.uButtonGroup=P;exports.uDropDownButton=g;
|