@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
|
@@ -16,12 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// src/
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
|
|
19
|
+
// src/timeline/timeline-card-callout.tsx
|
|
20
|
+
var timeline_card_callout_exports = {};
|
|
21
|
+
__export(timeline_card_callout_exports, {
|
|
22
|
+
TIMELINECARDCALLOUT_CLASSNAME: () => TIMELINECARDCALLOUT_CLASSNAME,
|
|
23
|
+
TimelineCardCallout: () => TimelineCardCallout,
|
|
24
|
+
default: () => timeline_card_callout_default
|
|
23
25
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(timeline_card_callout_exports);
|
|
25
27
|
|
|
26
28
|
// src/misc/class-names.ts
|
|
27
29
|
var classNames = (...args) => {
|
|
@@ -59,6 +61,22 @@ var optionClassNames = (componentClassName, props) => {
|
|
|
59
61
|
}
|
|
60
62
|
);
|
|
61
63
|
};
|
|
64
|
+
var stateClassNames = (_componentClassName, props) => {
|
|
65
|
+
return classNames({
|
|
66
|
+
"k-valid": props.valid,
|
|
67
|
+
"k-invalid": props.invalid,
|
|
68
|
+
"k-hover": props.hover,
|
|
69
|
+
"k-focus": props.focus,
|
|
70
|
+
"k-checked": props.checked,
|
|
71
|
+
"k-active": props.active,
|
|
72
|
+
"k-selected": props.selected,
|
|
73
|
+
"k-disabled": props.disabled,
|
|
74
|
+
"k-indeterminate": props.indeterminate && !props.checked,
|
|
75
|
+
"k-loading": props.loading,
|
|
76
|
+
"k-empty": props.empty,
|
|
77
|
+
"k-readonly": props.readonly
|
|
78
|
+
});
|
|
79
|
+
};
|
|
62
80
|
|
|
63
81
|
// src/misc/theme.ts
|
|
64
82
|
var Size = {
|
|
@@ -70,6 +88,19 @@ var Size = {
|
|
|
70
88
|
"xxlarge": "xxlarge",
|
|
71
89
|
"xxxlarge": "xxxlarge"
|
|
72
90
|
};
|
|
91
|
+
var Roundness = {
|
|
92
|
+
"small": "small",
|
|
93
|
+
"medium": "medium",
|
|
94
|
+
"large": "large",
|
|
95
|
+
"full": "full"
|
|
96
|
+
};
|
|
97
|
+
var FillMode = {
|
|
98
|
+
"solid": "solid",
|
|
99
|
+
"flat": "flat",
|
|
100
|
+
"outline": "outline",
|
|
101
|
+
"clear": "clear",
|
|
102
|
+
"link": "link"
|
|
103
|
+
};
|
|
73
104
|
var ThemeColor = {
|
|
74
105
|
"inherit": "inherit",
|
|
75
106
|
"base": "base",
|
|
@@ -84,12 +115,139 @@ var ThemeColor = {
|
|
|
84
115
|
"light": "light",
|
|
85
116
|
"inverse": "inverse"
|
|
86
117
|
};
|
|
118
|
+
var States = {
|
|
119
|
+
"open": "open",
|
|
120
|
+
"hover": "hover",
|
|
121
|
+
"focus": "focus",
|
|
122
|
+
"active": "active",
|
|
123
|
+
"selected": "selected",
|
|
124
|
+
"disabled": "disabled",
|
|
125
|
+
"valid": "valid",
|
|
126
|
+
"invalid": "invalid",
|
|
127
|
+
"loading": "loading",
|
|
128
|
+
"required": "required",
|
|
129
|
+
"empty": "empty",
|
|
130
|
+
"indeterminate": "indeterminate",
|
|
131
|
+
"checked": "checked",
|
|
132
|
+
"readonly": "readonly"
|
|
133
|
+
};
|
|
134
|
+
var kendoThemeMaps = {
|
|
135
|
+
calloutMap: {
|
|
136
|
+
top: "n",
|
|
137
|
+
bottom: "s",
|
|
138
|
+
left: "w",
|
|
139
|
+
right: "e"
|
|
140
|
+
},
|
|
141
|
+
orientationMap: {
|
|
142
|
+
vertical: "vstack",
|
|
143
|
+
horizontal: "hstack"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
87
146
|
|
|
88
|
-
// src/
|
|
147
|
+
// src/card/card-callout.tsx
|
|
89
148
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
90
|
-
var
|
|
91
|
-
var
|
|
149
|
+
var CARDCALLOUT_CLASSNAME = `k-card-callout`;
|
|
150
|
+
var CardCallout = (props) => {
|
|
151
|
+
const {
|
|
152
|
+
callout,
|
|
153
|
+
...other
|
|
154
|
+
} = props;
|
|
155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
|
+
"span",
|
|
157
|
+
{
|
|
158
|
+
...other,
|
|
159
|
+
className: classNames(
|
|
160
|
+
props.className,
|
|
161
|
+
CARDCALLOUT_CLASSNAME,
|
|
162
|
+
{
|
|
163
|
+
[`k-callout-${kendoThemeMaps.calloutMap[callout] || callout}`]: callout
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// src/card/card.spec.tsx
|
|
171
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
172
|
+
var CARD_CLASSNAME = `k-card`;
|
|
173
|
+
var states = [
|
|
174
|
+
States.hover,
|
|
175
|
+
States.focus,
|
|
176
|
+
States.selected,
|
|
177
|
+
States.disabled
|
|
178
|
+
];
|
|
92
179
|
var options = {
|
|
180
|
+
themeColor: [
|
|
181
|
+
ThemeColor.primary,
|
|
182
|
+
ThemeColor.success,
|
|
183
|
+
ThemeColor.warning,
|
|
184
|
+
ThemeColor.error,
|
|
185
|
+
ThemeColor.info
|
|
186
|
+
]
|
|
187
|
+
};
|
|
188
|
+
var defaultProps = {};
|
|
189
|
+
var Card = (props) => {
|
|
190
|
+
const {
|
|
191
|
+
orientation,
|
|
192
|
+
themeColor,
|
|
193
|
+
callout,
|
|
194
|
+
hover,
|
|
195
|
+
focus,
|
|
196
|
+
selected,
|
|
197
|
+
disabled,
|
|
198
|
+
...other
|
|
199
|
+
} = props;
|
|
200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
...other,
|
|
204
|
+
className: classNames(
|
|
205
|
+
props.className,
|
|
206
|
+
CARD_CLASSNAME,
|
|
207
|
+
optionClassNames(CARD_CLASSNAME, {
|
|
208
|
+
themeColor
|
|
209
|
+
}),
|
|
210
|
+
stateClassNames(CARD_CLASSNAME, {
|
|
211
|
+
hover,
|
|
212
|
+
focus,
|
|
213
|
+
disabled,
|
|
214
|
+
selected
|
|
215
|
+
}),
|
|
216
|
+
{
|
|
217
|
+
[`k-card-${orientation}`]: orientation,
|
|
218
|
+
"k-card-with-callout": callout
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
children: [
|
|
222
|
+
callout && callout !== "true" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CardCallout, { callout }),
|
|
223
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: props.children })
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
};
|
|
228
|
+
Card.states = states;
|
|
229
|
+
Card.options = options;
|
|
230
|
+
Card.className = CARD_CLASSNAME;
|
|
231
|
+
Card.defaultProps = defaultProps;
|
|
232
|
+
|
|
233
|
+
// src/card/card-title.tsx
|
|
234
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
235
|
+
var states2 = [
|
|
236
|
+
States.hover,
|
|
237
|
+
States.focus
|
|
238
|
+
];
|
|
239
|
+
|
|
240
|
+
// src/card/card-subtitle.tsx
|
|
241
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
242
|
+
|
|
243
|
+
// src/card/card-media.tsx
|
|
244
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
245
|
+
|
|
246
|
+
// src/icon/font-icon.spec.tsx
|
|
247
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
248
|
+
var FONTICON_CLASSNAME = `k-icon k-font-icon`;
|
|
249
|
+
var states3 = [];
|
|
250
|
+
var options2 = {
|
|
93
251
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
94
252
|
themeColor: [
|
|
95
253
|
ThemeColor.base,
|
|
@@ -104,7 +262,7 @@ var options = {
|
|
|
104
262
|
ThemeColor.dark
|
|
105
263
|
]
|
|
106
264
|
};
|
|
107
|
-
var
|
|
265
|
+
var defaultProps2 = {};
|
|
108
266
|
var FontIcon = (props) => {
|
|
109
267
|
const {
|
|
110
268
|
size,
|
|
@@ -115,9 +273,9 @@ var FontIcon = (props) => {
|
|
|
115
273
|
...other
|
|
116
274
|
} = props;
|
|
117
275
|
if (!icon) {
|
|
118
|
-
return /* @__PURE__ */ (0,
|
|
276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
|
|
119
277
|
}
|
|
120
|
-
return /* @__PURE__ */ (0,
|
|
278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
121
279
|
"span",
|
|
122
280
|
{
|
|
123
281
|
...other,
|
|
@@ -138,17 +296,17 @@ var FontIcon = (props) => {
|
|
|
138
296
|
}
|
|
139
297
|
);
|
|
140
298
|
};
|
|
141
|
-
FontIcon.states =
|
|
142
|
-
FontIcon.options =
|
|
299
|
+
FontIcon.states = states3;
|
|
300
|
+
FontIcon.options = options2;
|
|
143
301
|
FontIcon.className = FONTICON_CLASSNAME;
|
|
144
|
-
FontIcon.defaultProps =
|
|
302
|
+
FontIcon.defaultProps = defaultProps2;
|
|
145
303
|
var font_icon_spec_default = FontIcon;
|
|
146
304
|
|
|
147
305
|
// src/icon/svg-icon.spec.tsx
|
|
148
|
-
var
|
|
306
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
149
307
|
var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
|
|
150
|
-
var
|
|
151
|
-
var
|
|
308
|
+
var states4 = [];
|
|
309
|
+
var options3 = {
|
|
152
310
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
153
311
|
themeColor: [
|
|
154
312
|
ThemeColor.base,
|
|
@@ -163,7 +321,7 @@ var options2 = {
|
|
|
163
321
|
ThemeColor.dark
|
|
164
322
|
]
|
|
165
323
|
};
|
|
166
|
-
var
|
|
324
|
+
var defaultProps3 = {
|
|
167
325
|
viewBox: "0 0 24 24"
|
|
168
326
|
};
|
|
169
327
|
var SvgIcon = (props) => {
|
|
@@ -172,15 +330,15 @@ var SvgIcon = (props) => {
|
|
|
172
330
|
themeColor,
|
|
173
331
|
rotate,
|
|
174
332
|
flip,
|
|
175
|
-
viewBox =
|
|
333
|
+
viewBox = defaultProps3.viewBox,
|
|
176
334
|
icon,
|
|
177
335
|
...other
|
|
178
336
|
} = props;
|
|
179
337
|
if (!icon) {
|
|
180
|
-
return /* @__PURE__ */ (0,
|
|
338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {});
|
|
181
339
|
}
|
|
182
340
|
if (icon === "none") {
|
|
183
|
-
/* @__PURE__ */ (0,
|
|
341
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
184
342
|
"span",
|
|
185
343
|
{
|
|
186
344
|
...other,
|
|
@@ -193,7 +351,7 @@ var SvgIcon = (props) => {
|
|
|
193
351
|
);
|
|
194
352
|
}
|
|
195
353
|
const name = typeof icon === "object" && icon.name && icon.name;
|
|
196
|
-
return /* @__PURE__ */ (0,
|
|
354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
197
355
|
"span",
|
|
198
356
|
{
|
|
199
357
|
...other,
|
|
@@ -211,7 +369,7 @@ var SvgIcon = (props) => {
|
|
|
211
369
|
"k-flip-v": flip === "v" || flip === "both"
|
|
212
370
|
}
|
|
213
371
|
),
|
|
214
|
-
children: /* @__PURE__ */ (0,
|
|
372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
215
373
|
"svg",
|
|
216
374
|
{
|
|
217
375
|
"aria-hidden": true,
|
|
@@ -225,10 +383,10 @@ var SvgIcon = (props) => {
|
|
|
225
383
|
}
|
|
226
384
|
);
|
|
227
385
|
};
|
|
228
|
-
SvgIcon.states =
|
|
229
|
-
SvgIcon.options =
|
|
386
|
+
SvgIcon.states = states4;
|
|
387
|
+
SvgIcon.options = options3;
|
|
230
388
|
SvgIcon.className = SVGICON_CLASSNAME;
|
|
231
|
-
SvgIcon.defaultProps =
|
|
389
|
+
SvgIcon.defaultProps = defaultProps3;
|
|
232
390
|
var svg_icon_spec_default = SvgIcon;
|
|
233
391
|
|
|
234
392
|
// ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
|
|
@@ -4227,13 +4385,13 @@ var chartChoroplethIcon = {
|
|
|
4227
4385
|
};
|
|
4228
4386
|
|
|
4229
4387
|
// src/icon/icon.spec.tsx
|
|
4230
|
-
var
|
|
4388
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
4231
4389
|
var snakeToCamel = (str) => str.toLowerCase().replace(
|
|
4232
4390
|
/([-_][a-z])/g,
|
|
4233
4391
|
(group) => group.toUpperCase().replace("-", "").replace("_", "")
|
|
4234
4392
|
);
|
|
4235
|
-
var
|
|
4236
|
-
var
|
|
4393
|
+
var states5 = [];
|
|
4394
|
+
var options4 = {
|
|
4237
4395
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
4238
4396
|
themeColor: [
|
|
4239
4397
|
ThemeColor.base,
|
|
@@ -4248,7 +4406,7 @@ var options3 = {
|
|
|
4248
4406
|
ThemeColor.dark
|
|
4249
4407
|
]
|
|
4250
4408
|
};
|
|
4251
|
-
var
|
|
4409
|
+
var defaultProps4 = {
|
|
4252
4410
|
viewBox: "0 0 24 24",
|
|
4253
4411
|
type: "svg"
|
|
4254
4412
|
};
|
|
@@ -4257,36 +4415,45 @@ var Icon = (props) => {
|
|
|
4257
4415
|
size,
|
|
4258
4416
|
themeColor,
|
|
4259
4417
|
icon,
|
|
4260
|
-
type =
|
|
4418
|
+
type = defaultProps4.type,
|
|
4261
4419
|
rotate,
|
|
4262
4420
|
flip,
|
|
4263
|
-
viewBox =
|
|
4421
|
+
viewBox = defaultProps4.viewBox,
|
|
4264
4422
|
...other
|
|
4265
4423
|
} = props;
|
|
4266
4424
|
if (!icon) {
|
|
4267
|
-
return /* @__PURE__ */ (0,
|
|
4425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {});
|
|
4268
4426
|
}
|
|
4269
4427
|
if (type === "svg") {
|
|
4270
4428
|
if (icon === "none") {
|
|
4271
|
-
return /* @__PURE__ */ (0,
|
|
4429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(svg_icon_spec_default, { ...other, icon, size });
|
|
4272
4430
|
}
|
|
4273
4431
|
const iconSVG = snakeToCamel(`${icon}-icon`);
|
|
4274
4432
|
if (!index_es_exports[iconSVG]) {
|
|
4275
|
-
return /* @__PURE__ */ (0,
|
|
4433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {});
|
|
4276
4434
|
}
|
|
4277
|
-
return /* @__PURE__ */ (0,
|
|
4435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
|
|
4278
4436
|
}
|
|
4279
|
-
return /* @__PURE__ */ (0,
|
|
4437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
|
|
4280
4438
|
};
|
|
4281
|
-
Icon.states =
|
|
4282
|
-
Icon.options =
|
|
4283
|
-
Icon.defaultProps =
|
|
4439
|
+
Icon.states = states5;
|
|
4440
|
+
Icon.options = options4;
|
|
4441
|
+
Icon.defaultProps = defaultProps4;
|
|
4284
4442
|
|
|
4285
|
-
// src/
|
|
4286
|
-
var
|
|
4287
|
-
var
|
|
4288
|
-
var
|
|
4289
|
-
|
|
4443
|
+
// src/button/button.spec.tsx
|
|
4444
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
4445
|
+
var BUTTON_CLASSNAME = `k-button`;
|
|
4446
|
+
var states6 = [
|
|
4447
|
+
States.hover,
|
|
4448
|
+
States.focus,
|
|
4449
|
+
States.active,
|
|
4450
|
+
States.selected,
|
|
4451
|
+
States.disabled
|
|
4452
|
+
];
|
|
4453
|
+
var options5 = {
|
|
4454
|
+
size: [Size.small, Size.medium, Size.large],
|
|
4455
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4456
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
4290
4457
|
themeColor: [
|
|
4291
4458
|
ThemeColor.base,
|
|
4292
4459
|
ThemeColor.primary,
|
|
@@ -4301,142 +4468,164 @@ var options4 = {
|
|
|
4301
4468
|
ThemeColor.inverse
|
|
4302
4469
|
]
|
|
4303
4470
|
};
|
|
4304
|
-
var
|
|
4471
|
+
var defaultProps5 = {
|
|
4472
|
+
size: Size.medium,
|
|
4473
|
+
rounded: Roundness.medium,
|
|
4474
|
+
fillMode: FillMode.solid,
|
|
4305
4475
|
themeColor: ThemeColor.base,
|
|
4306
|
-
|
|
4476
|
+
showArrow: false,
|
|
4477
|
+
arrowIconName: "caret-alt-down"
|
|
4307
4478
|
};
|
|
4308
|
-
var
|
|
4479
|
+
var Button = (props) => {
|
|
4309
4480
|
const {
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4481
|
+
size = defaultProps5.size,
|
|
4482
|
+
rounded = defaultProps5.rounded,
|
|
4483
|
+
fillMode = defaultProps5.fillMode,
|
|
4484
|
+
themeColor = defaultProps5.themeColor,
|
|
4485
|
+
hover,
|
|
4486
|
+
focus,
|
|
4487
|
+
active,
|
|
4488
|
+
selected,
|
|
4489
|
+
disabled,
|
|
4313
4490
|
icon,
|
|
4314
|
-
|
|
4491
|
+
text,
|
|
4492
|
+
iconClassName,
|
|
4493
|
+
showArrow = defaultProps5.showArrow,
|
|
4494
|
+
arrowIconName = defaultProps5.arrowIconName,
|
|
4315
4495
|
...other
|
|
4316
4496
|
} = props;
|
|
4317
|
-
|
|
4318
|
-
|
|
4497
|
+
const hasIcon = icon !== void 0;
|
|
4498
|
+
const hasChildren = props.children !== void 0;
|
|
4499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
4500
|
+
"button",
|
|
4319
4501
|
{
|
|
4320
4502
|
...other,
|
|
4321
4503
|
className: classNames(
|
|
4322
4504
|
props.className,
|
|
4323
|
-
|
|
4324
|
-
optionClassNames(
|
|
4505
|
+
BUTTON_CLASSNAME,
|
|
4506
|
+
optionClassNames(BUTTON_CLASSNAME, {
|
|
4507
|
+
size,
|
|
4508
|
+
rounded,
|
|
4509
|
+
fillMode,
|
|
4325
4510
|
themeColor
|
|
4326
4511
|
}),
|
|
4512
|
+
stateClassNames(BUTTON_CLASSNAME, {
|
|
4513
|
+
hover,
|
|
4514
|
+
focus,
|
|
4515
|
+
active,
|
|
4516
|
+
disabled,
|
|
4517
|
+
selected
|
|
4518
|
+
}),
|
|
4327
4519
|
{
|
|
4328
|
-
"k-
|
|
4520
|
+
["k-icon-button"]: !text && !hasChildren && hasIcon
|
|
4329
4521
|
}
|
|
4330
4522
|
),
|
|
4331
4523
|
children: [
|
|
4332
|
-
icon && /* @__PURE__ */ (0,
|
|
4333
|
-
|
|
4334
|
-
|
|
4524
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
4525
|
+
Icon,
|
|
4526
|
+
{
|
|
4527
|
+
className: classNames(iconClassName, "k-button-icon"),
|
|
4528
|
+
icon
|
|
4529
|
+
}
|
|
4530
|
+
),
|
|
4531
|
+
text ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
4532
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-button-text", children: text }),
|
|
4335
4533
|
props.children
|
|
4336
|
-
] }) :
|
|
4337
|
-
|
|
4534
|
+
] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-button-text", children: props.children }),
|
|
4535
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { icon: arrowIconName }) })
|
|
4338
4536
|
]
|
|
4339
4537
|
}
|
|
4340
4538
|
);
|
|
4341
4539
|
};
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4540
|
+
Button.states = states6;
|
|
4541
|
+
Button.options = options5;
|
|
4542
|
+
Button.className = BUTTON_CLASSNAME;
|
|
4543
|
+
Button.defaultProps = defaultProps5;
|
|
4346
4544
|
|
|
4347
|
-
// src/
|
|
4348
|
-
var
|
|
4349
|
-
var className = `k-notification-action`;
|
|
4350
|
-
var NotificationAction = (props) => {
|
|
4351
|
-
const {
|
|
4352
|
-
type
|
|
4353
|
-
} = props;
|
|
4354
|
-
let icon;
|
|
4355
|
-
switch (type) {
|
|
4356
|
-
case "close":
|
|
4357
|
-
icon = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon: "x" });
|
|
4358
|
-
break;
|
|
4359
|
-
default:
|
|
4360
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon: type });
|
|
4361
|
-
}
|
|
4362
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: classNames(
|
|
4363
|
-
props.className,
|
|
4364
|
-
className,
|
|
4365
|
-
`k-notification-${type}-action`
|
|
4366
|
-
), children: icon });
|
|
4367
|
-
};
|
|
4545
|
+
// src/button/templates/icon-button.tsx
|
|
4546
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
4368
4547
|
|
|
4369
|
-
// src/
|
|
4370
|
-
var
|
|
4548
|
+
// src/button/templates/icon-text-button.tsx
|
|
4549
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
4371
4550
|
|
|
4372
|
-
// src/
|
|
4373
|
-
var
|
|
4551
|
+
// src/button/templates/text-button.tsx
|
|
4552
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
4374
4553
|
|
|
4375
|
-
// src/
|
|
4376
|
-
var
|
|
4377
|
-
var NotificationClosable = (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4378
|
-
Notification,
|
|
4379
|
-
{
|
|
4380
|
-
closable: true,
|
|
4381
|
-
text: "Notification",
|
|
4382
|
-
actions: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(NotificationAction, { type: "close" }),
|
|
4383
|
-
...props
|
|
4384
|
-
}
|
|
4385
|
-
);
|
|
4554
|
+
// src/card/card-header.tsx
|
|
4555
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
4386
4556
|
|
|
4387
|
-
// src/
|
|
4388
|
-
var
|
|
4389
|
-
var NotificationNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
4390
|
-
Notification,
|
|
4391
|
-
{
|
|
4392
|
-
text: "Notification",
|
|
4393
|
-
...props
|
|
4394
|
-
}
|
|
4395
|
-
);
|
|
4557
|
+
// src/card/card-footer.tsx
|
|
4558
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
4396
4559
|
|
|
4397
|
-
// src/
|
|
4398
|
-
var
|
|
4399
|
-
var styles = `
|
|
4400
|
-
.k-notification-group {
|
|
4401
|
-
position: static;
|
|
4402
|
-
}
|
|
4560
|
+
// src/card/card-body.tsx
|
|
4561
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
4403
4562
|
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
width: 100%;
|
|
4407
|
-
}
|
|
4563
|
+
// src/card/card-deck.tsx
|
|
4564
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
4408
4565
|
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4566
|
+
// src/action-buttons/action-buttons.spec.tsx
|
|
4567
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
4568
|
+
var ACTIONBUTTONS_CLASSNAME = `k-actions`;
|
|
4569
|
+
var states7 = [];
|
|
4570
|
+
var options6 = {};
|
|
4571
|
+
var defaultProps6 = {
|
|
4572
|
+
alignment: "start",
|
|
4573
|
+
orientation: "horizontal"
|
|
4574
|
+
};
|
|
4575
|
+
var ActionButtons = (props) => {
|
|
4576
|
+
const {
|
|
4577
|
+
alignment = defaultProps6.alignment,
|
|
4578
|
+
orientation = defaultProps6.orientation,
|
|
4579
|
+
...other
|
|
4580
|
+
} = props;
|
|
4581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
4582
|
+
"div",
|
|
4583
|
+
{
|
|
4584
|
+
...other,
|
|
4585
|
+
className: classNames(
|
|
4586
|
+
ACTIONBUTTONS_CLASSNAME,
|
|
4587
|
+
{
|
|
4588
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
|
|
4589
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
|
|
4590
|
+
},
|
|
4591
|
+
props.className
|
|
4592
|
+
),
|
|
4593
|
+
children: props.children
|
|
4412
4594
|
}
|
|
4595
|
+
);
|
|
4596
|
+
};
|
|
4597
|
+
ActionButtons.states = states7;
|
|
4598
|
+
ActionButtons.options = options6;
|
|
4599
|
+
ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
|
|
4600
|
+
ActionButtons.defaultProps = defaultProps6;
|
|
4601
|
+
|
|
4602
|
+
// src/card/templates/card-normal.tsx
|
|
4603
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4413
4604
|
|
|
4414
|
-
|
|
4415
|
-
|
|
4605
|
+
// src/card/templates/card-horizontal.tsx
|
|
4606
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
4607
|
+
|
|
4608
|
+
// src/timeline/timeline-card-callout.tsx
|
|
4609
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
4610
|
+
var TIMELINECARDCALLOUT_CLASSNAME = `k-timeline-card-callout`;
|
|
4611
|
+
var states8 = [];
|
|
4612
|
+
var defaultProps7 = {};
|
|
4613
|
+
var TimelineCardCallout = (props) => {
|
|
4614
|
+
const {
|
|
4615
|
+
...other
|
|
4616
|
+
} = props;
|
|
4617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
4618
|
+
CardCallout,
|
|
4619
|
+
{
|
|
4620
|
+
className: classNames(
|
|
4621
|
+
props.className,
|
|
4622
|
+
TIMELINECARDCALLOUT_CLASSNAME
|
|
4623
|
+
),
|
|
4624
|
+
...other
|
|
4416
4625
|
}
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-notification-container", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(NotificationClosable, { text: "Multiline notification", children: [
|
|
4424
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: "Closable multiline notification" }),
|
|
4425
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: "Closable multiline notification" }),
|
|
4426
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: "Closable multiline notification" })
|
|
4427
|
-
] }) }),
|
|
4428
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-notification-container", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(NotificationNormal, { className: "k-custom-notification", text: "Custom notification" }) })
|
|
4429
|
-
] }) }),
|
|
4430
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-colspan-3 k-col-span-3", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-notification-container fullwidth", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(NotificationClosable, { text: "Full width notification" }) }) }),
|
|
4431
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "k-colspan-all k-col-span-full", children: "RTL" }),
|
|
4432
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "k-notification-group", children: [
|
|
4433
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-notification-container", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(NotificationClosable, { text: "Multiline notification", children: [
|
|
4434
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: "Closable multiline notification" }),
|
|
4435
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: "Closable multiline notification" }),
|
|
4436
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: "Closable multiline notification" })
|
|
4437
|
-
] }) }),
|
|
4438
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-notification-container", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(NotificationNormal, { className: "k-custom-notification", text: "Custom notification" }) })
|
|
4439
|
-
] }) }),
|
|
4440
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-colspan-3 k-col-span-3", dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-notification-container fullwidth", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(NotificationClosable, { text: "Full width notification" }) }) })
|
|
4441
|
-
] })
|
|
4442
|
-
] });
|
|
4626
|
+
);
|
|
4627
|
+
};
|
|
4628
|
+
TimelineCardCallout.states = states8;
|
|
4629
|
+
TimelineCardCallout.className = TIMELINECARDCALLOUT_CLASSNAME;
|
|
4630
|
+
TimelineCardCallout.defaultProps = defaultProps7;
|
|
4631
|
+
var timeline_card_callout_default = TimelineCardCallout;
|