@progress/kendo-themes-html 7.1.0-dev.0 → 7.1.0-dev.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/dist/cjs/gantt/tests/gantt.js +1 -1
- package/dist/cjs/index.js +1930 -1409
- package/dist/cjs/multiselecttree/multiselecttree.spec.js +4 -2
- package/dist/cjs/multiselecttree/templates/multiselecttree-adaptive.js +4 -2
- package/dist/cjs/multiselecttree/templates/multiselecttree-arrow-button.js +4 -2
- package/dist/cjs/multiselecttree/templates/multiselecttree-filtering.js +4 -2
- package/dist/cjs/multiselecttree/templates/multiselecttree-normal.js +4 -2
- package/dist/cjs/multiselecttree/templates/multiselecttree-popup.js +4 -2
- package/dist/cjs/multiselecttree/templates/multiselecttree-value.js +4 -2
- package/dist/cjs/multiselecttree/tests/multiselecttree-adaptive.js +4 -2
- package/dist/cjs/multiselecttree/tests/multiselecttree-flat.js +4 -2
- package/dist/cjs/multiselecttree/tests/multiselecttree-opened.js +4 -2
- package/dist/cjs/multiselecttree/tests/multiselecttree-outline.js +4 -2
- package/dist/cjs/multiselecttree/tests/multiselecttree-size-rounded.js +4 -2
- package/dist/cjs/multiselecttree/tests/multiselecttree-solid.js +4 -2
- package/dist/cjs/notification/tests/{notification-jquery-colors.js → notification-colors.js} +7 -7
- package/dist/cjs/notification/tests/{notification-angular.js → notification-group.js} +60 -24
- package/dist/cjs/notification/tests/{notification-jquery.js → notification.js} +7 -7
- package/dist/cjs/timeline/horizontal-timeline-event.spec.js +5044 -0
- package/dist/cjs/timeline/templates/timeline-horizontal.js +5163 -0
- package/dist/cjs/timeline/templates/timeline-normal-alternating.js +5056 -0
- package/dist/cjs/timeline/templates/timeline-normal-collapsible.js +5054 -0
- package/dist/cjs/timeline/templates/timeline-normal.js +5053 -0
- package/dist/cjs/timeline/tests/timeline-horizontal.js +653 -264
- package/dist/cjs/timeline/tests/timeline-vertical-alternating.js +550 -290
- package/dist/cjs/timeline/tests/timeline-vertical.js +563 -287
- package/dist/cjs/{notification/tests/notification-custom-angular.js → timeline/timeline-card-callout.js} +341 -152
- package/dist/cjs/{notification/tests/notification-angular-colors.js → timeline/timeline-card-title.js} +145 -76
- package/dist/cjs/timeline/timeline-card.spec.js +5043 -0
- package/dist/cjs/timeline/timeline-circle.spec.js +53 -0
- package/dist/cjs/timeline/timeline-date-wrap.spec.js +64 -0
- package/dist/cjs/timeline/timeline-event-list.spec.js +54 -0
- package/dist/cjs/timeline/timeline-flag-wrap.spec.js +88 -0
- package/dist/cjs/timeline/timeline-flag.spec.js +55 -0
- package/dist/cjs/timeline/timeline-track-item.spec.js +58 -0
- package/dist/cjs/timeline/timeline-track-wrap.spec.js +5082 -0
- package/dist/cjs/timeline/timeline-track.spec.js +54 -0
- package/dist/cjs/timeline/timeline.spec.js +71 -0
- package/dist/cjs/timeline/vertical-timeline-event.spec.js +5044 -0
- package/dist/esm/gantt/tests/gantt.js +1 -1
- package/dist/esm/index.js +1832 -1311
- package/dist/esm/multiselecttree/multiselecttree.spec.js +4 -2
- package/dist/esm/multiselecttree/templates/multiselecttree-adaptive.js +4 -2
- package/dist/esm/multiselecttree/templates/multiselecttree-arrow-button.js +4 -2
- package/dist/esm/multiselecttree/templates/multiselecttree-filtering.js +4 -2
- package/dist/esm/multiselecttree/templates/multiselecttree-normal.js +4 -2
- package/dist/esm/multiselecttree/templates/multiselecttree-popup.js +4 -2
- package/dist/esm/multiselecttree/templates/multiselecttree-value.js +4 -2
- package/dist/esm/multiselecttree/tests/multiselecttree-adaptive.js +4 -2
- package/dist/esm/multiselecttree/tests/multiselecttree-flat.js +4 -2
- package/dist/esm/multiselecttree/tests/multiselecttree-opened.js +4 -2
- package/dist/esm/multiselecttree/tests/multiselecttree-outline.js +4 -2
- package/dist/esm/multiselecttree/tests/multiselecttree-size-rounded.js +4 -2
- package/dist/esm/multiselecttree/tests/multiselecttree-solid.js +4 -2
- package/dist/esm/notification/tests/{notification-jquery-colors.js → notification-colors.js} +3 -3
- package/dist/esm/notification/tests/{notification-angular.js → notification-group.js} +57 -21
- package/dist/esm/notification/tests/{notification-jquery.js → notification.js} +3 -3
- package/dist/esm/timeline/horizontal-timeline-event.spec.js +5028 -0
- package/dist/esm/timeline/templates/timeline-horizontal.js +5147 -0
- package/dist/esm/timeline/templates/timeline-normal-alternating.js +5040 -0
- package/dist/esm/timeline/templates/timeline-normal-collapsible.js +5038 -0
- package/dist/esm/timeline/templates/timeline-normal.js +5037 -0
- package/dist/esm/timeline/tests/timeline-horizontal.js +654 -265
- package/dist/esm/timeline/tests/timeline-vertical-alternating.js +551 -291
- package/dist/esm/timeline/tests/timeline-vertical.js +564 -288
- package/dist/esm/{notification/tests/notification-custom-angular.js → timeline/timeline-card-callout.js} +337 -148
- package/dist/esm/{notification/tests/notification-angular-colors.js → timeline/timeline-card-title.js} +142 -73
- package/dist/esm/timeline/timeline-card.spec.js +5027 -0
- package/dist/esm/timeline/timeline-circle.spec.js +31 -0
- package/dist/esm/timeline/timeline-date-wrap.spec.js +42 -0
- package/dist/esm/timeline/timeline-event-list.spec.js +32 -0
- package/dist/esm/timeline/timeline-flag-wrap.spec.js +66 -0
- package/dist/esm/timeline/timeline-flag.spec.js +33 -0
- package/dist/esm/timeline/timeline-track-item.spec.js +36 -0
- package/dist/esm/timeline/timeline-track-wrap.spec.js +5066 -0
- package/dist/esm/timeline/timeline-track.spec.js +32 -0
- package/dist/esm/timeline/timeline.spec.js +49 -0
- package/dist/esm/timeline/vertical-timeline-event.spec.js +5028 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/timeline/horizontal-timeline-event.spec.d.ts +19 -0
- package/dist/types/timeline/index.d.ts +18 -0
- package/dist/types/timeline/templates/timeline-horizontal.d.ts +1 -0
- package/dist/types/timeline/templates/timeline-normal-alternating.d.ts +1 -0
- package/dist/types/timeline/templates/timeline-normal-collapsible.d.ts +1 -0
- package/dist/types/timeline/templates/timeline-normal.d.ts +1 -0
- package/dist/types/timeline/timeline-card-callout.d.ts +9 -0
- package/dist/types/timeline/timeline-card-title.d.ts +11 -0
- package/dist/types/timeline/timeline-card.spec.d.ts +7 -0
- package/dist/types/timeline/timeline-circle.spec.d.ts +3 -0
- package/dist/types/timeline/timeline-date-wrap.spec.d.ts +14 -0
- package/dist/types/timeline/timeline-event-list.spec.d.ts +3 -0
- package/dist/types/timeline/timeline-flag-wrap.spec.d.ts +14 -0
- package/dist/types/timeline/timeline-flag.spec.d.ts +6 -0
- package/dist/types/timeline/timeline-track-item.spec.d.ts +8 -0
- package/dist/types/timeline/timeline-track-wrap.spec.d.ts +3 -0
- package/dist/types/timeline/timeline-track.spec.d.ts +3 -0
- package/dist/types/timeline/timeline.spec.d.ts +18 -0
- package/dist/types/timeline/vertical-timeline-event.spec.d.ts +25 -0
- package/package.json +2 -2
- package/src/card/card-title.tsx +1 -1
- package/src/gantt/tests/gantt.tsx +1 -1
- package/src/index.ts +1 -1
- package/src/multiselecttree/multiselecttree.spec.tsx +9 -8
- package/src/notification/tests/{notification-jquery-colors.tsx → notification-colors.tsx} +1 -1
- package/src/notification/tests/notification-group.tsx +49 -0
- package/src/notification/tests/{notification-jquery.tsx → notification.tsx} +1 -1
- package/src/timeline/horizontal-timeline-event.spec.tsx +66 -0
- package/src/timeline/index.ts +18 -0
- package/src/timeline/templates/timeline-horizontal.tsx +35 -0
- package/src/timeline/templates/timeline-normal-alternating.tsx +18 -0
- package/src/timeline/templates/timeline-normal-collapsible.tsx +16 -0
- package/src/timeline/templates/timeline-normal.tsx +15 -0
- package/src/timeline/tests/timeline-horizontal.tsx +3 -62
- package/src/timeline/tests/timeline-vertical-alternating.tsx +4 -82
- package/src/timeline/tests/timeline-vertical.tsx +9 -80
- package/src/timeline/timeline-card-callout.tsx +35 -0
- package/src/timeline/timeline-card-title.tsx +42 -0
- package/src/timeline/timeline-card.spec.tsx +37 -0
- package/src/timeline/timeline-circle.spec.tsx +24 -0
- package/src/timeline/timeline-date-wrap.spec.tsx +44 -0
- package/src/timeline/timeline-event-list.spec.tsx +27 -0
- package/src/timeline/timeline-flag-wrap.spec.tsx +47 -0
- package/src/timeline/timeline-flag.spec.tsx +31 -0
- package/src/timeline/timeline-track-item.spec.tsx +33 -0
- package/src/timeline/timeline-track-wrap.spec.tsx +31 -0
- package/src/timeline/timeline-track.spec.tsx +27 -0
- package/src/timeline/timeline.spec.tsx +53 -0
- package/src/timeline/vertical-timeline-event.spec.tsx +79 -0
- package/dist/types/notification/tests/notification-jquery-colors.d.ts +0 -2
- package/dist/types/notification/tests/notification-jquery.d.ts +0 -2
- package/src/notification/tests/notification-angular-colors.tsx +0 -28
- package/src/notification/tests/notification-angular.tsx +0 -65
- package/src/notification/tests/notification-custom-angular.tsx +0 -77
- /package/dist/types/notification/tests/{notification-angular-colors.d.ts → notification-colors.d.ts} +0 -0
- /package/dist/types/notification/tests/{notification-angular.d.ts → notification-group.d.ts} +0 -0
- /package/dist/types/notification/tests/{notification-custom-angular.d.ts → notification.d.ts} +0 -0
|
@@ -40,6 +40,22 @@ var optionClassNames = (componentClassName, props) => {
|
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
};
|
|
43
|
+
var stateClassNames = (_componentClassName, props) => {
|
|
44
|
+
return classNames({
|
|
45
|
+
"k-valid": props.valid,
|
|
46
|
+
"k-invalid": props.invalid,
|
|
47
|
+
"k-hover": props.hover,
|
|
48
|
+
"k-focus": props.focus,
|
|
49
|
+
"k-checked": props.checked,
|
|
50
|
+
"k-active": props.active,
|
|
51
|
+
"k-selected": props.selected,
|
|
52
|
+
"k-disabled": props.disabled,
|
|
53
|
+
"k-indeterminate": props.indeterminate && !props.checked,
|
|
54
|
+
"k-loading": props.loading,
|
|
55
|
+
"k-empty": props.empty,
|
|
56
|
+
"k-readonly": props.readonly
|
|
57
|
+
});
|
|
58
|
+
};
|
|
43
59
|
|
|
44
60
|
// src/misc/theme.ts
|
|
45
61
|
var Size = {
|
|
@@ -51,6 +67,19 @@ var Size = {
|
|
|
51
67
|
"xxlarge": "xxlarge",
|
|
52
68
|
"xxxlarge": "xxxlarge"
|
|
53
69
|
};
|
|
70
|
+
var Roundness = {
|
|
71
|
+
"small": "small",
|
|
72
|
+
"medium": "medium",
|
|
73
|
+
"large": "large",
|
|
74
|
+
"full": "full"
|
|
75
|
+
};
|
|
76
|
+
var FillMode = {
|
|
77
|
+
"solid": "solid",
|
|
78
|
+
"flat": "flat",
|
|
79
|
+
"outline": "outline",
|
|
80
|
+
"clear": "clear",
|
|
81
|
+
"link": "link"
|
|
82
|
+
};
|
|
54
83
|
var ThemeColor = {
|
|
55
84
|
"inherit": "inherit",
|
|
56
85
|
"base": "base",
|
|
@@ -65,12 +94,139 @@ var ThemeColor = {
|
|
|
65
94
|
"light": "light",
|
|
66
95
|
"inverse": "inverse"
|
|
67
96
|
};
|
|
97
|
+
var States = {
|
|
98
|
+
"open": "open",
|
|
99
|
+
"hover": "hover",
|
|
100
|
+
"focus": "focus",
|
|
101
|
+
"active": "active",
|
|
102
|
+
"selected": "selected",
|
|
103
|
+
"disabled": "disabled",
|
|
104
|
+
"valid": "valid",
|
|
105
|
+
"invalid": "invalid",
|
|
106
|
+
"loading": "loading",
|
|
107
|
+
"required": "required",
|
|
108
|
+
"empty": "empty",
|
|
109
|
+
"indeterminate": "indeterminate",
|
|
110
|
+
"checked": "checked",
|
|
111
|
+
"readonly": "readonly"
|
|
112
|
+
};
|
|
113
|
+
var kendoThemeMaps = {
|
|
114
|
+
calloutMap: {
|
|
115
|
+
top: "n",
|
|
116
|
+
bottom: "s",
|
|
117
|
+
left: "w",
|
|
118
|
+
right: "e"
|
|
119
|
+
},
|
|
120
|
+
orientationMap: {
|
|
121
|
+
vertical: "vstack",
|
|
122
|
+
horizontal: "hstack"
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/card/card-callout.tsx
|
|
127
|
+
import { jsx } from "react/jsx-runtime";
|
|
128
|
+
var CARDCALLOUT_CLASSNAME = `k-card-callout`;
|
|
129
|
+
var CardCallout = (props) => {
|
|
130
|
+
const {
|
|
131
|
+
callout,
|
|
132
|
+
...other
|
|
133
|
+
} = props;
|
|
134
|
+
return /* @__PURE__ */ jsx(
|
|
135
|
+
"span",
|
|
136
|
+
{
|
|
137
|
+
...other,
|
|
138
|
+
className: classNames(
|
|
139
|
+
props.className,
|
|
140
|
+
CARDCALLOUT_CLASSNAME,
|
|
141
|
+
{
|
|
142
|
+
[`k-callout-${kendoThemeMaps.calloutMap[callout] || callout}`]: callout
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// src/card/card.spec.tsx
|
|
150
|
+
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
151
|
+
var CARD_CLASSNAME = `k-card`;
|
|
152
|
+
var states = [
|
|
153
|
+
States.hover,
|
|
154
|
+
States.focus,
|
|
155
|
+
States.selected,
|
|
156
|
+
States.disabled
|
|
157
|
+
];
|
|
158
|
+
var options = {
|
|
159
|
+
themeColor: [
|
|
160
|
+
ThemeColor.primary,
|
|
161
|
+
ThemeColor.success,
|
|
162
|
+
ThemeColor.warning,
|
|
163
|
+
ThemeColor.error,
|
|
164
|
+
ThemeColor.info
|
|
165
|
+
]
|
|
166
|
+
};
|
|
167
|
+
var defaultProps = {};
|
|
168
|
+
var Card = (props) => {
|
|
169
|
+
const {
|
|
170
|
+
orientation,
|
|
171
|
+
themeColor,
|
|
172
|
+
callout,
|
|
173
|
+
hover,
|
|
174
|
+
focus,
|
|
175
|
+
selected,
|
|
176
|
+
disabled,
|
|
177
|
+
...other
|
|
178
|
+
} = props;
|
|
179
|
+
return /* @__PURE__ */ jsxs(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
...other,
|
|
183
|
+
className: classNames(
|
|
184
|
+
props.className,
|
|
185
|
+
CARD_CLASSNAME,
|
|
186
|
+
optionClassNames(CARD_CLASSNAME, {
|
|
187
|
+
themeColor
|
|
188
|
+
}),
|
|
189
|
+
stateClassNames(CARD_CLASSNAME, {
|
|
190
|
+
hover,
|
|
191
|
+
focus,
|
|
192
|
+
disabled,
|
|
193
|
+
selected
|
|
194
|
+
}),
|
|
195
|
+
{
|
|
196
|
+
[`k-card-${orientation}`]: orientation,
|
|
197
|
+
"k-card-with-callout": callout
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
children: [
|
|
201
|
+
callout && callout !== "true" && /* @__PURE__ */ jsx2(CardCallout, { callout }),
|
|
202
|
+
/* @__PURE__ */ jsx2(Fragment, { children: props.children })
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
);
|
|
206
|
+
};
|
|
207
|
+
Card.states = states;
|
|
208
|
+
Card.options = options;
|
|
209
|
+
Card.className = CARD_CLASSNAME;
|
|
210
|
+
Card.defaultProps = defaultProps;
|
|
211
|
+
|
|
212
|
+
// src/card/card-title.tsx
|
|
213
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
214
|
+
var states2 = [
|
|
215
|
+
States.hover,
|
|
216
|
+
States.focus
|
|
217
|
+
];
|
|
218
|
+
|
|
219
|
+
// src/card/card-subtitle.tsx
|
|
220
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
221
|
+
|
|
222
|
+
// src/card/card-media.tsx
|
|
223
|
+
import { Fragment as Fragment2, jsx as jsx5 } from "react/jsx-runtime";
|
|
68
224
|
|
|
69
225
|
// src/icon/font-icon.spec.tsx
|
|
70
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
226
|
+
import { Fragment as Fragment3, jsx as jsx6 } from "react/jsx-runtime";
|
|
71
227
|
var FONTICON_CLASSNAME = `k-icon k-font-icon`;
|
|
72
|
-
var
|
|
73
|
-
var
|
|
228
|
+
var states3 = [];
|
|
229
|
+
var options2 = {
|
|
74
230
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
75
231
|
themeColor: [
|
|
76
232
|
ThemeColor.base,
|
|
@@ -85,7 +241,7 @@ var options = {
|
|
|
85
241
|
ThemeColor.dark
|
|
86
242
|
]
|
|
87
243
|
};
|
|
88
|
-
var
|
|
244
|
+
var defaultProps2 = {};
|
|
89
245
|
var FontIcon = (props) => {
|
|
90
246
|
const {
|
|
91
247
|
size,
|
|
@@ -96,9 +252,9 @@ var FontIcon = (props) => {
|
|
|
96
252
|
...other
|
|
97
253
|
} = props;
|
|
98
254
|
if (!icon) {
|
|
99
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ jsx6(Fragment3, {});
|
|
100
256
|
}
|
|
101
|
-
return /* @__PURE__ */
|
|
257
|
+
return /* @__PURE__ */ jsx6(
|
|
102
258
|
"span",
|
|
103
259
|
{
|
|
104
260
|
...other,
|
|
@@ -119,17 +275,17 @@ var FontIcon = (props) => {
|
|
|
119
275
|
}
|
|
120
276
|
);
|
|
121
277
|
};
|
|
122
|
-
FontIcon.states =
|
|
123
|
-
FontIcon.options =
|
|
278
|
+
FontIcon.states = states3;
|
|
279
|
+
FontIcon.options = options2;
|
|
124
280
|
FontIcon.className = FONTICON_CLASSNAME;
|
|
125
|
-
FontIcon.defaultProps =
|
|
281
|
+
FontIcon.defaultProps = defaultProps2;
|
|
126
282
|
var font_icon_spec_default = FontIcon;
|
|
127
283
|
|
|
128
284
|
// src/icon/svg-icon.spec.tsx
|
|
129
|
-
import { Fragment as
|
|
285
|
+
import { Fragment as Fragment4, jsx as jsx7 } from "react/jsx-runtime";
|
|
130
286
|
var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
|
|
131
|
-
var
|
|
132
|
-
var
|
|
287
|
+
var states4 = [];
|
|
288
|
+
var options3 = {
|
|
133
289
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
134
290
|
themeColor: [
|
|
135
291
|
ThemeColor.base,
|
|
@@ -144,7 +300,7 @@ var options2 = {
|
|
|
144
300
|
ThemeColor.dark
|
|
145
301
|
]
|
|
146
302
|
};
|
|
147
|
-
var
|
|
303
|
+
var defaultProps3 = {
|
|
148
304
|
viewBox: "0 0 24 24"
|
|
149
305
|
};
|
|
150
306
|
var SvgIcon = (props) => {
|
|
@@ -153,15 +309,15 @@ var SvgIcon = (props) => {
|
|
|
153
309
|
themeColor,
|
|
154
310
|
rotate,
|
|
155
311
|
flip,
|
|
156
|
-
viewBox =
|
|
312
|
+
viewBox = defaultProps3.viewBox,
|
|
157
313
|
icon,
|
|
158
314
|
...other
|
|
159
315
|
} = props;
|
|
160
316
|
if (!icon) {
|
|
161
|
-
return /* @__PURE__ */
|
|
317
|
+
return /* @__PURE__ */ jsx7(Fragment4, {});
|
|
162
318
|
}
|
|
163
319
|
if (icon === "none") {
|
|
164
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ jsx7(
|
|
165
321
|
"span",
|
|
166
322
|
{
|
|
167
323
|
...other,
|
|
@@ -174,7 +330,7 @@ var SvgIcon = (props) => {
|
|
|
174
330
|
);
|
|
175
331
|
}
|
|
176
332
|
const name = typeof icon === "object" && icon.name && icon.name;
|
|
177
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ jsx7(
|
|
178
334
|
"span",
|
|
179
335
|
{
|
|
180
336
|
...other,
|
|
@@ -192,7 +348,7 @@ var SvgIcon = (props) => {
|
|
|
192
348
|
"k-flip-v": flip === "v" || flip === "both"
|
|
193
349
|
}
|
|
194
350
|
),
|
|
195
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ jsx7(
|
|
196
352
|
"svg",
|
|
197
353
|
{
|
|
198
354
|
"aria-hidden": true,
|
|
@@ -206,10 +362,10 @@ var SvgIcon = (props) => {
|
|
|
206
362
|
}
|
|
207
363
|
);
|
|
208
364
|
};
|
|
209
|
-
SvgIcon.states =
|
|
210
|
-
SvgIcon.options =
|
|
365
|
+
SvgIcon.states = states4;
|
|
366
|
+
SvgIcon.options = options3;
|
|
211
367
|
SvgIcon.className = SVGICON_CLASSNAME;
|
|
212
|
-
SvgIcon.defaultProps =
|
|
368
|
+
SvgIcon.defaultProps = defaultProps3;
|
|
213
369
|
var svg_icon_spec_default = SvgIcon;
|
|
214
370
|
|
|
215
371
|
// ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
|
|
@@ -4208,13 +4364,13 @@ var chartChoroplethIcon = {
|
|
|
4208
4364
|
};
|
|
4209
4365
|
|
|
4210
4366
|
// src/icon/icon.spec.tsx
|
|
4211
|
-
import { Fragment as
|
|
4367
|
+
import { Fragment as Fragment5, jsx as jsx8 } from "react/jsx-runtime";
|
|
4212
4368
|
var snakeToCamel = (str) => str.toLowerCase().replace(
|
|
4213
4369
|
/([-_][a-z])/g,
|
|
4214
4370
|
(group) => group.toUpperCase().replace("-", "").replace("_", "")
|
|
4215
4371
|
);
|
|
4216
|
-
var
|
|
4217
|
-
var
|
|
4372
|
+
var states5 = [];
|
|
4373
|
+
var options4 = {
|
|
4218
4374
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
4219
4375
|
themeColor: [
|
|
4220
4376
|
ThemeColor.base,
|
|
@@ -4229,7 +4385,7 @@ var options3 = {
|
|
|
4229
4385
|
ThemeColor.dark
|
|
4230
4386
|
]
|
|
4231
4387
|
};
|
|
4232
|
-
var
|
|
4388
|
+
var defaultProps4 = {
|
|
4233
4389
|
viewBox: "0 0 24 24",
|
|
4234
4390
|
type: "svg"
|
|
4235
4391
|
};
|
|
@@ -4238,36 +4394,45 @@ var Icon = (props) => {
|
|
|
4238
4394
|
size,
|
|
4239
4395
|
themeColor,
|
|
4240
4396
|
icon,
|
|
4241
|
-
type =
|
|
4397
|
+
type = defaultProps4.type,
|
|
4242
4398
|
rotate,
|
|
4243
4399
|
flip,
|
|
4244
|
-
viewBox =
|
|
4400
|
+
viewBox = defaultProps4.viewBox,
|
|
4245
4401
|
...other
|
|
4246
4402
|
} = props;
|
|
4247
4403
|
if (!icon) {
|
|
4248
|
-
return /* @__PURE__ */
|
|
4404
|
+
return /* @__PURE__ */ jsx8(Fragment5, {});
|
|
4249
4405
|
}
|
|
4250
4406
|
if (type === "svg") {
|
|
4251
4407
|
if (icon === "none") {
|
|
4252
|
-
return /* @__PURE__ */
|
|
4408
|
+
return /* @__PURE__ */ jsx8(svg_icon_spec_default, { ...other, icon, size });
|
|
4253
4409
|
}
|
|
4254
4410
|
const iconSVG = snakeToCamel(`${icon}-icon`);
|
|
4255
4411
|
if (!index_es_exports[iconSVG]) {
|
|
4256
|
-
return /* @__PURE__ */
|
|
4412
|
+
return /* @__PURE__ */ jsx8(Fragment5, {});
|
|
4257
4413
|
}
|
|
4258
|
-
return /* @__PURE__ */
|
|
4414
|
+
return /* @__PURE__ */ jsx8(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
|
|
4259
4415
|
}
|
|
4260
|
-
return /* @__PURE__ */
|
|
4416
|
+
return /* @__PURE__ */ jsx8(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
|
|
4261
4417
|
};
|
|
4262
|
-
Icon.states =
|
|
4263
|
-
Icon.options =
|
|
4264
|
-
Icon.defaultProps =
|
|
4418
|
+
Icon.states = states5;
|
|
4419
|
+
Icon.options = options4;
|
|
4420
|
+
Icon.defaultProps = defaultProps4;
|
|
4265
4421
|
|
|
4266
|
-
// src/
|
|
4267
|
-
import { Fragment as
|
|
4268
|
-
var
|
|
4269
|
-
var
|
|
4270
|
-
|
|
4422
|
+
// src/button/button.spec.tsx
|
|
4423
|
+
import { Fragment as Fragment6, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
4424
|
+
var BUTTON_CLASSNAME = `k-button`;
|
|
4425
|
+
var states6 = [
|
|
4426
|
+
States.hover,
|
|
4427
|
+
States.focus,
|
|
4428
|
+
States.active,
|
|
4429
|
+
States.selected,
|
|
4430
|
+
States.disabled
|
|
4431
|
+
];
|
|
4432
|
+
var options5 = {
|
|
4433
|
+
size: [Size.small, Size.medium, Size.large],
|
|
4434
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4435
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
4271
4436
|
themeColor: [
|
|
4272
4437
|
ThemeColor.base,
|
|
4273
4438
|
ThemeColor.primary,
|
|
@@ -4282,145 +4447,169 @@ var options4 = {
|
|
|
4282
4447
|
ThemeColor.inverse
|
|
4283
4448
|
]
|
|
4284
4449
|
};
|
|
4285
|
-
var
|
|
4450
|
+
var defaultProps5 = {
|
|
4451
|
+
size: Size.medium,
|
|
4452
|
+
rounded: Roundness.medium,
|
|
4453
|
+
fillMode: FillMode.solid,
|
|
4286
4454
|
themeColor: ThemeColor.base,
|
|
4287
|
-
|
|
4455
|
+
showArrow: false,
|
|
4456
|
+
arrowIconName: "caret-alt-down"
|
|
4288
4457
|
};
|
|
4289
|
-
var
|
|
4458
|
+
var Button = (props) => {
|
|
4290
4459
|
const {
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4460
|
+
size = defaultProps5.size,
|
|
4461
|
+
rounded = defaultProps5.rounded,
|
|
4462
|
+
fillMode = defaultProps5.fillMode,
|
|
4463
|
+
themeColor = defaultProps5.themeColor,
|
|
4464
|
+
hover,
|
|
4465
|
+
focus,
|
|
4466
|
+
active,
|
|
4467
|
+
selected,
|
|
4468
|
+
disabled,
|
|
4294
4469
|
icon,
|
|
4295
|
-
|
|
4470
|
+
text,
|
|
4471
|
+
iconClassName,
|
|
4472
|
+
showArrow = defaultProps5.showArrow,
|
|
4473
|
+
arrowIconName = defaultProps5.arrowIconName,
|
|
4296
4474
|
...other
|
|
4297
4475
|
} = props;
|
|
4298
|
-
|
|
4299
|
-
|
|
4476
|
+
const hasIcon = icon !== void 0;
|
|
4477
|
+
const hasChildren = props.children !== void 0;
|
|
4478
|
+
return /* @__PURE__ */ jsxs2(
|
|
4479
|
+
"button",
|
|
4300
4480
|
{
|
|
4301
4481
|
...other,
|
|
4302
4482
|
className: classNames(
|
|
4303
4483
|
props.className,
|
|
4304
|
-
|
|
4305
|
-
optionClassNames(
|
|
4484
|
+
BUTTON_CLASSNAME,
|
|
4485
|
+
optionClassNames(BUTTON_CLASSNAME, {
|
|
4486
|
+
size,
|
|
4487
|
+
rounded,
|
|
4488
|
+
fillMode,
|
|
4306
4489
|
themeColor
|
|
4307
4490
|
}),
|
|
4491
|
+
stateClassNames(BUTTON_CLASSNAME, {
|
|
4492
|
+
hover,
|
|
4493
|
+
focus,
|
|
4494
|
+
active,
|
|
4495
|
+
disabled,
|
|
4496
|
+
selected
|
|
4497
|
+
}),
|
|
4308
4498
|
{
|
|
4309
|
-
"k-
|
|
4499
|
+
["k-icon-button"]: !text && !hasChildren && hasIcon
|
|
4310
4500
|
}
|
|
4311
4501
|
),
|
|
4312
4502
|
children: [
|
|
4313
|
-
icon && /* @__PURE__ */
|
|
4314
|
-
|
|
4315
|
-
|
|
4503
|
+
icon && /* @__PURE__ */ jsx9(
|
|
4504
|
+
Icon,
|
|
4505
|
+
{
|
|
4506
|
+
className: classNames(iconClassName, "k-button-icon"),
|
|
4507
|
+
icon
|
|
4508
|
+
}
|
|
4509
|
+
),
|
|
4510
|
+
text ? /* @__PURE__ */ jsxs2(Fragment6, { children: [
|
|
4511
|
+
text && /* @__PURE__ */ jsx9("span", { className: "k-button-text", children: text }),
|
|
4316
4512
|
props.children
|
|
4317
|
-
] }) :
|
|
4318
|
-
|
|
4513
|
+
] }) : props.children && /* @__PURE__ */ jsx9("span", { className: "k-button-text", children: props.children }),
|
|
4514
|
+
showArrow && /* @__PURE__ */ jsx9("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx9(Icon, { icon: arrowIconName }) })
|
|
4319
4515
|
]
|
|
4320
4516
|
}
|
|
4321
4517
|
);
|
|
4322
4518
|
};
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4519
|
+
Button.states = states6;
|
|
4520
|
+
Button.options = options5;
|
|
4521
|
+
Button.className = BUTTON_CLASSNAME;
|
|
4522
|
+
Button.defaultProps = defaultProps5;
|
|
4327
4523
|
|
|
4328
|
-
// src/
|
|
4329
|
-
import { jsx as
|
|
4330
|
-
var className = `k-notification-action`;
|
|
4331
|
-
var NotificationAction = (props) => {
|
|
4332
|
-
const {
|
|
4333
|
-
type
|
|
4334
|
-
} = props;
|
|
4335
|
-
let icon;
|
|
4336
|
-
switch (type) {
|
|
4337
|
-
case "close":
|
|
4338
|
-
icon = /* @__PURE__ */ jsx5(Icon, { icon: "x" });
|
|
4339
|
-
break;
|
|
4340
|
-
default:
|
|
4341
|
-
return /* @__PURE__ */ jsx5(Icon, { icon: type });
|
|
4342
|
-
}
|
|
4343
|
-
return /* @__PURE__ */ jsx5("span", { className: classNames(
|
|
4344
|
-
props.className,
|
|
4345
|
-
className,
|
|
4346
|
-
`k-notification-${type}-action`
|
|
4347
|
-
), children: icon });
|
|
4348
|
-
};
|
|
4524
|
+
// src/button/templates/icon-button.tsx
|
|
4525
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
4349
4526
|
|
|
4350
|
-
// src/
|
|
4351
|
-
import { jsx as
|
|
4527
|
+
// src/button/templates/icon-text-button.tsx
|
|
4528
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
4352
4529
|
|
|
4353
|
-
// src/
|
|
4354
|
-
import { jsx as
|
|
4530
|
+
// src/button/templates/text-button.tsx
|
|
4531
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
4355
4532
|
|
|
4356
|
-
// src/
|
|
4357
|
-
import { jsx as
|
|
4358
|
-
var NotificationClosable = (props) => /* @__PURE__ */ jsx8(
|
|
4359
|
-
Notification,
|
|
4360
|
-
{
|
|
4361
|
-
closable: true,
|
|
4362
|
-
text: "Notification",
|
|
4363
|
-
actions: /* @__PURE__ */ jsx8(NotificationAction, { type: "close" }),
|
|
4364
|
-
...props
|
|
4365
|
-
}
|
|
4366
|
-
);
|
|
4533
|
+
// src/card/card-header.tsx
|
|
4534
|
+
import { Fragment as Fragment7, jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
4367
4535
|
|
|
4368
|
-
// src/
|
|
4369
|
-
import { jsx as
|
|
4370
|
-
var NotificationNormal = (props) => /* @__PURE__ */ jsx9(
|
|
4371
|
-
Notification,
|
|
4372
|
-
{
|
|
4373
|
-
text: "Notification",
|
|
4374
|
-
...props
|
|
4375
|
-
}
|
|
4376
|
-
);
|
|
4536
|
+
// src/card/card-footer.tsx
|
|
4537
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
4377
4538
|
|
|
4378
|
-
// src/
|
|
4379
|
-
import { Fragment as
|
|
4380
|
-
var styles = `
|
|
4381
|
-
.k-notification-group {
|
|
4382
|
-
position: static;
|
|
4383
|
-
}
|
|
4539
|
+
// src/card/card-body.tsx
|
|
4540
|
+
import { Fragment as Fragment8, jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
4384
4541
|
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
width: 100%;
|
|
4388
|
-
}
|
|
4542
|
+
// src/card/card-deck.tsx
|
|
4543
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
4389
4544
|
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4545
|
+
// src/action-buttons/action-buttons.spec.tsx
|
|
4546
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
4547
|
+
var ACTIONBUTTONS_CLASSNAME = `k-actions`;
|
|
4548
|
+
var states7 = [];
|
|
4549
|
+
var options6 = {};
|
|
4550
|
+
var defaultProps6 = {
|
|
4551
|
+
alignment: "start",
|
|
4552
|
+
orientation: "horizontal"
|
|
4553
|
+
};
|
|
4554
|
+
var ActionButtons = (props) => {
|
|
4555
|
+
const {
|
|
4556
|
+
alignment = defaultProps6.alignment,
|
|
4557
|
+
orientation = defaultProps6.orientation,
|
|
4558
|
+
...other
|
|
4559
|
+
} = props;
|
|
4560
|
+
return /* @__PURE__ */ jsx17(
|
|
4561
|
+
"div",
|
|
4562
|
+
{
|
|
4563
|
+
...other,
|
|
4564
|
+
className: classNames(
|
|
4565
|
+
ACTIONBUTTONS_CLASSNAME,
|
|
4566
|
+
{
|
|
4567
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
|
|
4568
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
|
|
4569
|
+
},
|
|
4570
|
+
props.className
|
|
4571
|
+
),
|
|
4572
|
+
children: props.children
|
|
4393
4573
|
}
|
|
4574
|
+
);
|
|
4575
|
+
};
|
|
4576
|
+
ActionButtons.states = states7;
|
|
4577
|
+
ActionButtons.options = options6;
|
|
4578
|
+
ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
|
|
4579
|
+
ActionButtons.defaultProps = defaultProps6;
|
|
4580
|
+
|
|
4581
|
+
// src/card/templates/card-normal.tsx
|
|
4582
|
+
import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4394
4583
|
|
|
4395
|
-
|
|
4396
|
-
|
|
4584
|
+
// src/card/templates/card-horizontal.tsx
|
|
4585
|
+
import { Fragment as Fragment10, jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4586
|
+
|
|
4587
|
+
// src/timeline/timeline-card-callout.tsx
|
|
4588
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
4589
|
+
var TIMELINECARDCALLOUT_CLASSNAME = `k-timeline-card-callout`;
|
|
4590
|
+
var states8 = [];
|
|
4591
|
+
var defaultProps7 = {};
|
|
4592
|
+
var TimelineCardCallout = (props) => {
|
|
4593
|
+
const {
|
|
4594
|
+
...other
|
|
4595
|
+
} = props;
|
|
4596
|
+
return /* @__PURE__ */ jsx20(
|
|
4597
|
+
CardCallout,
|
|
4598
|
+
{
|
|
4599
|
+
className: classNames(
|
|
4600
|
+
props.className,
|
|
4601
|
+
TIMELINECARDCALLOUT_CLASSNAME
|
|
4602
|
+
),
|
|
4603
|
+
...other
|
|
4397
4604
|
}
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
/* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsxs2(NotificationClosable, { text: "Multiline notification", children: [
|
|
4405
|
-
/* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
|
|
4406
|
-
/* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
|
|
4407
|
-
/* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" })
|
|
4408
|
-
] }) }),
|
|
4409
|
-
/* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsx10(NotificationNormal, { className: "k-custom-notification", text: "Custom notification" }) })
|
|
4410
|
-
] }) }),
|
|
4411
|
-
/* @__PURE__ */ jsx10("div", { className: "k-colspan-3 k-col-span-3", children: /* @__PURE__ */ jsx10("div", { className: "k-notification-container fullwidth", children: /* @__PURE__ */ jsx10(NotificationClosable, { text: "Full width notification" }) }) }),
|
|
4412
|
-
/* @__PURE__ */ jsx10("span", { className: "k-colspan-all k-col-span-full", children: "RTL" }),
|
|
4413
|
-
/* @__PURE__ */ jsx10("div", { dir: "rtl", children: /* @__PURE__ */ jsxs2("div", { className: "k-notification-group", children: [
|
|
4414
|
-
/* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsxs2(NotificationClosable, { text: "Multiline notification", children: [
|
|
4415
|
-
/* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
|
|
4416
|
-
/* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
|
|
4417
|
-
/* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" })
|
|
4418
|
-
] }) }),
|
|
4419
|
-
/* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsx10(NotificationNormal, { className: "k-custom-notification", text: "Custom notification" }) })
|
|
4420
|
-
] }) }),
|
|
4421
|
-
/* @__PURE__ */ jsx10("div", { className: "k-colspan-3 k-col-span-3", dir: "rtl", children: /* @__PURE__ */ jsx10("div", { className: "k-notification-container fullwidth", children: /* @__PURE__ */ jsx10(NotificationClosable, { text: "Full width notification" }) }) })
|
|
4422
|
-
] })
|
|
4423
|
-
] });
|
|
4605
|
+
);
|
|
4606
|
+
};
|
|
4607
|
+
TimelineCardCallout.states = states8;
|
|
4608
|
+
TimelineCardCallout.className = TIMELINECARDCALLOUT_CLASSNAME;
|
|
4609
|
+
TimelineCardCallout.defaultProps = defaultProps7;
|
|
4610
|
+
var timeline_card_callout_default = TimelineCardCallout;
|
|
4424
4611
|
export {
|
|
4425
|
-
|
|
4612
|
+
TIMELINECARDCALLOUT_CLASSNAME,
|
|
4613
|
+
TimelineCardCallout,
|
|
4614
|
+
timeline_card_callout_default as default
|
|
4426
4615
|
};
|