@progress/kendo-themes-html 6.3.1-dev.0 → 6.4.0-dev.0
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/bottom-nav/bottom-nav-item.js +234 -0
- package/dist/bottom-nav/bottom-nav-item.js.map +7 -0
- package/dist/bottom-nav/bottom-nav.spec.js +122 -0
- package/dist/bottom-nav/bottom-nav.spec.js.map +7 -0
- package/dist/bottom-nav/tests/bottom-nav-colors.js +269 -358
- package/dist/bottom-nav/tests/bottom-nav-colors.js.map +4 -4
- package/dist/bottom-nav/tests/bottom-nav-items.js +168 -53
- package/dist/bottom-nav/tests/bottom-nav-items.js.map +4 -4
- package/dist/bottom-nav/tests/bottom-nav-rtl.js +153 -50
- package/dist/bottom-nav/tests/bottom-nav-rtl.js.map +4 -4
- package/dist/bottom-nav/tests/bottom-nav.js +167 -76
- package/dist/bottom-nav/tests/bottom-nav.js.map +4 -4
- package/dist/breadcrumb/breadcrumb-container.js +76 -0
- package/dist/breadcrumb/breadcrumb-container.js.map +7 -0
- package/dist/breadcrumb/breadcrumb-input-container.js +65 -0
- package/dist/breadcrumb/breadcrumb-input-container.js.map +7 -0
- package/dist/breadcrumb/breadcrumb-item-text.js +70 -0
- package/dist/breadcrumb/breadcrumb-item-text.js.map +7 -0
- package/dist/breadcrumb/breadcrumb-item.js +75 -0
- package/dist/breadcrumb/breadcrumb-item.js.map +7 -0
- package/dist/breadcrumb/breadcrumb-link.js +132 -0
- package/dist/breadcrumb/breadcrumb-link.js.map +7 -0
- package/dist/breadcrumb/breadcrumb-root-item-container.js +65 -0
- package/dist/breadcrumb/breadcrumb-root-item-container.js.map +7 -0
- package/dist/breadcrumb/breadcrumb.spec.js +125 -0
- package/dist/breadcrumb/breadcrumb.spec.js.map +7 -0
- package/dist/breadcrumb/tests/breadcrumb-rtl.js +349 -153
- package/dist/breadcrumb/tests/breadcrumb-rtl.js.map +4 -4
- package/dist/breadcrumb/tests/breadcrumb.js +349 -153
- package/dist/breadcrumb/tests/breadcrumb.js.map +4 -4
- package/dist/coloreditor/color-editor.spec.js +1586 -0
- package/dist/coloreditor/color-editor.spec.js.map +7 -0
- package/dist/coloreditor/tests/coloreditor-focused-colorgradient.js +821 -176
- package/dist/coloreditor/tests/coloreditor-focused-colorgradient.js.map +4 -4
- package/dist/coloreditor/tests/coloreditor-rtl.js +727 -265
- package/dist/coloreditor/tests/coloreditor-rtl.js.map +4 -4
- package/dist/coloreditor/tests/coloreditor-states.js +821 -176
- package/dist/coloreditor/tests/coloreditor-states.js.map +4 -4
- package/dist/coloreditor/tests/coloreditor-views.js +727 -265
- package/dist/coloreditor/tests/coloreditor-views.js.map +4 -4
- package/dist/coloreditor/tests/coloreditor.js +821 -176
- package/dist/coloreditor/tests/coloreditor.js.map +4 -4
- package/dist/colorgradient/color-contrast.js +199 -0
- package/dist/colorgradient/color-contrast.js.map +7 -0
- package/dist/colorgradient/color-gradient.spec.js +1246 -0
- package/dist/colorgradient/color-gradient.spec.js.map +7 -0
- package/dist/colorgradient/color-input.js +1029 -0
- package/dist/colorgradient/color-input.js.map +7 -0
- package/dist/colorgradient/tests/colorgradient-contrast.js +532 -155
- package/dist/colorgradient/tests/colorgradient-contrast.js.map +4 -4
- package/dist/colorgradient/tests/colorgradient-draghandle.js +536 -202
- package/dist/colorgradient/tests/colorgradient-draghandle.js.map +4 -4
- package/dist/colorgradient/tests/colorgradient-modes.js +433 -260
- package/dist/colorgradient/tests/colorgradient-modes.js.map +4 -4
- package/dist/colorgradient/tests/colorgradient-rtl.js +532 -155
- package/dist/colorgradient/tests/colorgradient-rtl.js.map +4 -4
- package/dist/colorgradient/tests/colorgradient-states.js +536 -132
- package/dist/colorgradient/tests/colorgradient-states.js.map +4 -4
- package/dist/colorgradient/tests/colorgradient.js +532 -132
- package/dist/colorgradient/tests/colorgradient.js.map +4 -4
- package/dist/colorpalette/colorpalette.spec.js +1 -1
- package/dist/colorpalette/colorpalette.spec.js.map +2 -2
- package/dist/colorpalette/tests/colorpalette-states.js +1 -1
- package/dist/colorpalette/tests/colorpalette-states.js.map +2 -2
- package/dist/colorpalette/tests/colorpalette-variants.js +1 -1
- package/dist/colorpalette/tests/colorpalette-variants.js.map +2 -2
- package/dist/colorpalette/tests/colorpalette.js +1 -1
- package/dist/colorpalette/tests/colorpalette.js.map +2 -2
- package/dist/colorpicker/tests/colorpicker-dropdown.js +757 -185
- package/dist/colorpicker/tests/colorpicker-dropdown.js.map +4 -4
- package/dist/editor/tests/editor-table-wizard.js +1984 -0
- package/dist/editor/tests/editor-table-wizard.js.map +7 -0
- package/dist/expansion-panel/expansion-panel.spec.js +253 -0
- package/dist/expansion-panel/expansion-panel.spec.js.map +7 -0
- package/dist/expansion-panel/tests/expansion-panel-rtl.js +100 -83
- package/dist/expansion-panel/tests/expansion-panel-rtl.js.map +4 -4
- package/dist/expansion-panel/tests/expansion-panel.js +100 -83
- package/dist/expansion-panel/tests/expansion-panel.js.map +4 -4
- package/dist/filemanager/tests/filemanager-contextmenu.js +492 -340
- package/dist/filemanager/tests/filemanager-contextmenu.js.map +4 -4
- package/dist/filemanager/tests/filemanager-drag-hint.js +468 -316
- package/dist/filemanager/tests/filemanager-drag-hint.js.map +4 -4
- package/dist/filemanager/tests/filemanager-gridview.js +533 -381
- package/dist/filemanager/tests/filemanager-gridview.js.map +4 -4
- package/dist/filemanager/tests/filemanager-listview.js +487 -335
- package/dist/filemanager/tests/filemanager-listview.js.map +4 -4
- package/dist/filemanager/tests/filemanager-preview.js +586 -434
- package/dist/filemanager/tests/filemanager-preview.js.map +4 -4
- package/dist/grid/tests/grid-column-menu-rtl.js +15 -15
- package/dist/grid/tests/grid-column-menu-rtl.js.map +2 -2
- package/dist/grid/tests/grid-column-menu.js +15 -15
- package/dist/grid/tests/grid-column-menu.js.map +2 -2
- package/dist/index.js +2131 -1244
- package/dist/index.js.map +4 -4
- package/dist/multiselecttree/multiselecttree.spec.js +1003 -0
- package/dist/multiselecttree/multiselecttree.spec.js.map +7 -0
- package/dist/multiselecttree/tests/multiselecttree-flat.js +1208 -0
- package/dist/multiselecttree/tests/multiselecttree-flat.js.map +7 -0
- package/dist/{editor/tests/editor-table-wizard-accessibility.js → multiselecttree/tests/multiselecttree-opened.js} +646 -645
- package/dist/multiselecttree/tests/multiselecttree-opened.js.map +7 -0
- package/dist/multiselecttree/tests/multiselecttree-outline.js +1208 -0
- package/dist/multiselecttree/tests/multiselecttree-outline.js.map +7 -0
- package/dist/multiselecttree/tests/multiselecttree-size.js +1107 -0
- package/dist/multiselecttree/tests/multiselecttree-size.js.map +7 -0
- package/dist/multiselecttree/tests/multiselecttree.js +1194 -0
- package/dist/multiselecttree/tests/multiselecttree.js.map +7 -0
- package/dist/pivotgrid/tests/pivotgrid-column-menus.js +8 -8
- package/dist/pivotgrid/tests/pivotgrid-column-menus.js.map +2 -2
- package/dist/scheduler/tests/scheduler-adaptive-agenda.js +6 -4
- package/dist/scheduler/tests/scheduler-adaptive-agenda.js.map +2 -2
- package/dist/scheduler/tests/scheduler-adaptive-day-resource-group.js +6 -4
- package/dist/scheduler/tests/scheduler-adaptive-day-resource-group.js.map +2 -2
- package/dist/scheduler/tests/scheduler-adaptive-day.js +6 -4
- package/dist/scheduler/tests/scheduler-adaptive-day.js.map +2 -2
- package/dist/scheduler/tests/scheduler-adaptive-month.js +6 -4
- package/dist/scheduler/tests/scheduler-adaptive-month.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular-agenda-rtl.js +8 -11
- package/dist/scheduler/tests/scheduler-angular-agenda-rtl.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular-agenda.js +8 -11
- package/dist/scheduler/tests/scheduler-angular-agenda.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular-day-rtl.js +8 -11
- package/dist/scheduler/tests/scheduler-angular-day-rtl.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular-month-rtl.js +8 -11
- package/dist/scheduler/tests/scheduler-angular-month-rtl.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular-month.js +8 -11
- package/dist/scheduler/tests/scheduler-angular-month.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular-rtl.js +8 -11
- package/dist/scheduler/tests/scheduler-angular-rtl.js.map +2 -2
- package/dist/scheduler/tests/scheduler-angular.js +8 -11
- package/dist/scheduler/tests/scheduler-angular.js.map +2 -2
- package/dist/scheduler/tests/scheduler-flex-layout.js +7 -10
- package/dist/scheduler/tests/scheduler-flex-layout.js.map +2 -2
- package/dist/scheduler/tests/scheduler-jquery-agenda.js +7 -10
- package/dist/scheduler/tests/scheduler-jquery-agenda.js.map +2 -2
- package/dist/scheduler/tests/scheduler-jquery-month.js +7 -10
- package/dist/scheduler/tests/scheduler-jquery-month.js.map +2 -2
- package/dist/scheduler/tests/scheduler-react-agenda.js +7 -10
- package/dist/scheduler/tests/scheduler-react-agenda.js.map +2 -2
- package/dist/scheduler/tests/scheduler-react-day.js +7 -10
- package/dist/scheduler/tests/scheduler-react-day.js.map +2 -2
- package/dist/scheduler/tests/scheduler-react-month.js +7 -10
- package/dist/scheduler/tests/scheduler-react-month.js.map +2 -2
- package/dist/scheduler/tests/scheduler-react-timeline-multi.js +7 -10
- package/dist/scheduler/tests/scheduler-react-timeline-multi.js.map +2 -2
- package/dist/scheduler/tests/scheduler-react-timeline.js +14 -20
- package/dist/scheduler/tests/scheduler-react-timeline.js.map +2 -2
- package/dist/scheduler/tests/scheduler-react-week.js +7 -10
- package/dist/scheduler/tests/scheduler-react-week.js.map +2 -2
- package/dist/scheduler/tests/scheduler-year.js +6 -9
- package/dist/scheduler/tests/scheduler-year.js.map +2 -2
- package/dist/scheduler/tests/scheduler.js +13 -19
- package/dist/scheduler/tests/scheduler.js.map +2 -2
- package/dist/slider/slider-tick.js +48 -0
- package/dist/slider/slider-tick.js.map +7 -0
- package/dist/slider/slider.spec.js +411 -0
- package/dist/slider/slider.spec.js.map +7 -0
- package/dist/slider/tests/slider-css-vars.js +300 -268
- package/dist/slider/tests/slider-css-vars.js.map +4 -4
- package/dist/slider/tests/slider-tick-absolute-position.js +155 -36
- package/dist/slider/tests/slider-tick-absolute-position.js.map +4 -4
- package/dist/slider/tests/slider.js +235 -209
- package/dist/slider/tests/slider.js.map +4 -4
- package/dist/spreadsheet/tests/spreadsheet-filter-menu.js +2 -2
- package/dist/spreadsheet/tests/spreadsheet-filter-menu.js.map +2 -2
- package/package.json +2 -2
- package/src/bottom-nav/bottom-nav-item.tsx +62 -0
- package/src/bottom-nav/bottom-nav.spec.tsx +76 -0
- package/src/bottom-nav/index.ts +2 -0
- package/src/bottom-nav/tests/bottom-nav-colors.tsx +109 -325
- package/src/bottom-nav/tests/bottom-nav-items.tsx +12 -22
- package/src/bottom-nav/tests/bottom-nav-rtl.tsx +13 -37
- package/src/bottom-nav/tests/bottom-nav.tsx +29 -77
- package/src/breadcrumb/breadcrumb-container.tsx +36 -0
- package/src/breadcrumb/breadcrumb-input-container.tsx +22 -0
- package/src/breadcrumb/breadcrumb-item-text.tsx +32 -0
- package/src/breadcrumb/breadcrumb-item.tsx +34 -0
- package/src/breadcrumb/breadcrumb-link.tsx +55 -0
- package/src/breadcrumb/breadcrumb-root-item-container.tsx +22 -0
- package/src/breadcrumb/breadcrumb.spec.tsx +55 -0
- package/src/breadcrumb/index.ts +7 -0
- package/src/breadcrumb/tests/breadcrumb-rtl.tsx +275 -231
- package/src/breadcrumb/tests/breadcrumb.tsx +274 -231
- package/src/coloreditor/color-editor.spec.tsx +93 -0
- package/src/coloreditor/index.ts +1 -0
- package/src/coloreditor/tests/coloreditor-focused-colorgradient.tsx +2 -76
- package/src/coloreditor/tests/coloreditor-rtl.tsx +3 -107
- package/src/coloreditor/tests/coloreditor-states.tsx +2 -77
- package/src/coloreditor/tests/coloreditor-views.tsx +3 -107
- package/src/coloreditor/tests/coloreditor.tsx +2 -77
- package/src/colorgradient/color-contrast.tsx +44 -0
- package/src/colorgradient/color-gradient.spec.tsx +102 -0
- package/src/colorgradient/color-input.tsx +123 -0
- package/src/colorgradient/index.ts +4 -0
- package/src/colorgradient/tests/colorgradient-contrast.tsx +2 -83
- package/src/colorgradient/tests/colorgradient-draghandle.tsx +4 -146
- package/src/colorgradient/tests/colorgradient-modes.tsx +6 -214
- package/src/colorgradient/tests/colorgradient-rtl.tsx +2 -74
- package/src/colorgradient/tests/colorgradient-states.tsx +14 -51
- package/src/colorgradient/tests/colorgradient.tsx +2 -55
- package/src/colorpalette/colorpalette.spec.tsx +5 -5
- package/src/colorpicker/tests/colorpicker-dropdown.tsx +7 -184
- package/src/editor/tests/editor-table-wizard.tsx +280 -0
- package/src/expansion-panel/expansion-panel.spec.tsx +86 -0
- package/src/expansion-panel/index.ts +1 -0
- package/src/expansion-panel/tests/expansion-panel-rtl.tsx +48 -111
- package/src/expansion-panel/tests/expansion-panel.tsx +49 -111
- package/src/filemanager/tests/filemanager-contextmenu.tsx +9 -8
- package/src/filemanager/tests/filemanager-drag-hint.tsx +9 -8
- package/src/filemanager/tests/filemanager-gridview.tsx +17 -16
- package/src/filemanager/tests/filemanager-listview.tsx +17 -16
- package/src/filemanager/tests/filemanager-preview.tsx +25 -24
- package/src/grid/tests/grid-column-menu-rtl.tsx +45 -15
- package/src/grid/tests/grid-column-menu.tsx +45 -15
- package/src/index.ts +7 -4
- package/src/multiselecttree/index.ts +1 -0
- package/src/multiselecttree/multiselecttree.spec.tsx +150 -0
- package/src/multiselecttree/tests/multiselecttree-flat.tsx +179 -0
- package/src/multiselecttree/tests/multiselecttree-opened.tsx +119 -0
- package/src/multiselecttree/tests/multiselecttree-outline.tsx +179 -0
- package/src/multiselecttree/tests/multiselecttree-size.tsx +54 -0
- package/src/multiselecttree/tests/multiselecttree.tsx +179 -0
- package/src/pivotgrid/tests/pivotgrid-column-menus.tsx +24 -8
- package/src/scheduler/tests/scheduler-adaptive-agenda.tsx +13 -14
- package/src/scheduler/tests/scheduler-adaptive-day-resource-group.tsx +13 -14
- package/src/scheduler/tests/scheduler-adaptive-day.tsx +13 -14
- package/src/scheduler/tests/scheduler-adaptive-month.tsx +13 -14
- package/src/scheduler/tests/scheduler-angular-agenda-rtl.tsx +13 -17
- package/src/scheduler/tests/scheduler-angular-agenda.tsx +13 -17
- package/src/scheduler/tests/scheduler-angular-day-rtl.tsx +13 -17
- package/src/scheduler/tests/scheduler-angular-month-rtl.tsx +13 -17
- package/src/scheduler/tests/scheduler-angular-month.tsx +13 -17
- package/src/scheduler/tests/scheduler-angular-rtl.tsx +13 -17
- package/src/scheduler/tests/scheduler-angular.tsx +13 -17
- package/src/scheduler/tests/scheduler-flex-layout.tsx +10 -14
- package/src/scheduler/tests/scheduler-jquery-agenda.tsx +10 -14
- package/src/scheduler/tests/scheduler-jquery-month.tsx +10 -14
- package/src/scheduler/tests/scheduler-react-agenda.tsx +10 -14
- package/src/scheduler/tests/scheduler-react-day.tsx +10 -14
- package/src/scheduler/tests/scheduler-react-month.tsx +10 -14
- package/src/scheduler/tests/scheduler-react-timeline-multi.tsx +10 -14
- package/src/scheduler/tests/scheduler-react-timeline.tsx +19 -28
- package/src/scheduler/tests/scheduler-react-week.tsx +10 -14
- package/src/scheduler/tests/scheduler-year.tsx +9 -13
- package/src/scheduler/tests/scheduler.tsx +20 -27
- package/src/slider/index.ts +2 -0
- package/src/slider/slider-tick.tsx +52 -0
- package/src/slider/slider.spec.tsx +120 -0
- package/src/slider/tests/slider-css-vars.tsx +185 -349
- package/src/slider/tests/slider-tick-absolute-position.tsx +40 -64
- package/src/slider/tests/slider.tsx +118 -262
- package/src/spreadsheet/tests/spreadsheet-filter-menu.tsx +6 -2
- package/dist/editor/tests/editor-table-wizard-accessibility.js.map +0 -7
- package/src/editor/tests/editor-table-wizard-accessibility.tsx +0 -69
|
@@ -97,6 +97,22 @@
|
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
};
|
|
100
|
+
var stateClassNames = (_componentClassName, props) => {
|
|
101
|
+
return classNames({
|
|
102
|
+
"k-valid": props.valid,
|
|
103
|
+
"k-invalid": props.invalid,
|
|
104
|
+
"k-hover": props.hover,
|
|
105
|
+
"k-focus": props.focus,
|
|
106
|
+
"k-checked": props.checked,
|
|
107
|
+
"k-active": props.active,
|
|
108
|
+
"k-selected": props.selected,
|
|
109
|
+
"k-disabled": props.disabled,
|
|
110
|
+
"k-indeterminate": props.indeterminate && !props.checked,
|
|
111
|
+
"k-loading": props.loading,
|
|
112
|
+
"k-empty": props.empty,
|
|
113
|
+
"k-readonly": props.readonly
|
|
114
|
+
});
|
|
115
|
+
};
|
|
100
116
|
|
|
101
117
|
// src/utils/theme.ts
|
|
102
118
|
var Size = {
|
|
@@ -122,6 +138,22 @@
|
|
|
122
138
|
"light": "light",
|
|
123
139
|
"inverse": "inverse"
|
|
124
140
|
};
|
|
141
|
+
var States = {
|
|
142
|
+
"open": "open",
|
|
143
|
+
"hover": "hover",
|
|
144
|
+
"focus": "focus",
|
|
145
|
+
"active": "active",
|
|
146
|
+
"selected": "selected",
|
|
147
|
+
"disabled": "disabled",
|
|
148
|
+
"valid": "valid",
|
|
149
|
+
"invalid": "invalid",
|
|
150
|
+
"loading": "loading",
|
|
151
|
+
"required": "required",
|
|
152
|
+
"empty": "empty",
|
|
153
|
+
"indeterminate": "indeterminate",
|
|
154
|
+
"checked": "checked",
|
|
155
|
+
"readonly": "readonly"
|
|
156
|
+
};
|
|
125
157
|
|
|
126
158
|
// src/icon/icon.spec.tsx
|
|
127
159
|
var import_jsx_runtime = __require("react/jsx-runtime");
|
|
@@ -184,94 +216,79 @@
|
|
|
184
216
|
Icon.className = ICON_CLASSNAME;
|
|
185
217
|
Icon.defaultProps = defaultProps;
|
|
186
218
|
|
|
187
|
-
// src/expansion-panel/
|
|
219
|
+
// src/expansion-panel/expansion-panel.spec.tsx
|
|
188
220
|
var import_jsx_runtime2 = __require("react/jsx-runtime");
|
|
221
|
+
var EXPANSION_PANEL_CLASSNAME = "k-expander";
|
|
222
|
+
var states2 = [
|
|
223
|
+
States.hover,
|
|
224
|
+
States.focus,
|
|
225
|
+
States.disabled
|
|
226
|
+
];
|
|
227
|
+
var options2 = {};
|
|
228
|
+
var defaultProps2 = {};
|
|
229
|
+
var ExpansionPanel = (props) => {
|
|
230
|
+
const {
|
|
231
|
+
title,
|
|
232
|
+
subtitle,
|
|
233
|
+
expanded,
|
|
234
|
+
hover,
|
|
235
|
+
focus,
|
|
236
|
+
disabled,
|
|
237
|
+
dir,
|
|
238
|
+
contentStyle
|
|
239
|
+
} = props;
|
|
240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: classNames(
|
|
241
|
+
props.className,
|
|
242
|
+
EXPANSION_PANEL_CLASSNAME,
|
|
243
|
+
stateClassNames(EXPANSION_PANEL_CLASSNAME, {
|
|
244
|
+
hover,
|
|
245
|
+
focus,
|
|
246
|
+
disabled
|
|
247
|
+
}),
|
|
248
|
+
{
|
|
249
|
+
"k-expanded": expanded
|
|
250
|
+
}
|
|
251
|
+
), dir, children: [
|
|
252
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: classNames(
|
|
253
|
+
"k-expander-header",
|
|
254
|
+
stateClassNames(EXPANSION_PANEL_CLASSNAME, {
|
|
255
|
+
hover
|
|
256
|
+
})
|
|
257
|
+
), children: [
|
|
258
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: title }),
|
|
259
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
260
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: subtitle }),
|
|
261
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-expander-indicator", children: !expanded ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { name: "chevron-down" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { name: "chevron-up" }) })
|
|
262
|
+
] }),
|
|
263
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: classNames(
|
|
264
|
+
"k-expander-content-wrapper",
|
|
265
|
+
{
|
|
266
|
+
"k-d-none": !expanded
|
|
267
|
+
}
|
|
268
|
+
), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", style: contentStyle, children: props.children }) })
|
|
269
|
+
] });
|
|
270
|
+
};
|
|
271
|
+
ExpansionPanel.states = states2;
|
|
272
|
+
ExpansionPanel.options = options2;
|
|
273
|
+
ExpansionPanel.className = EXPANSION_PANEL_CLASSNAME;
|
|
274
|
+
ExpansionPanel.defaultProps = defaultProps2;
|
|
275
|
+
|
|
276
|
+
// src/expansion-panel/tests/expansion-panel-rtl.tsx
|
|
277
|
+
var import_jsx_runtime3 = __require("react/jsx-runtime");
|
|
189
278
|
var root = import_client.default.createRoot(
|
|
190
279
|
document.getElementById("app")
|
|
191
280
|
);
|
|
192
281
|
root.render(
|
|
193
|
-
/* @__PURE__ */ (0,
|
|
194
|
-
/* @__PURE__ */ (0,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander k-expanded", dir: "rtl", children: [
|
|
204
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header", children: [
|
|
205
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Expanded panel" }),
|
|
206
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
207
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
208
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-up" })
|
|
209
|
-
] }),
|
|
210
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
211
|
-
] }),
|
|
212
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander k-expanded k-focus", dir: "rtl", children: [
|
|
213
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header", children: [
|
|
214
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Expanded panel" }),
|
|
215
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
216
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
217
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-up" })
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
220
|
-
] }),
|
|
221
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander", dir: "rtl", children: [
|
|
222
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header", children: [
|
|
223
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Collapsed panel" }),
|
|
224
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
225
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
226
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-down" })
|
|
227
|
-
] }),
|
|
228
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper k-d-none", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
229
|
-
] }),
|
|
230
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander k-focus", dir: "rtl", children: [
|
|
231
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header", children: [
|
|
232
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Focus state" }),
|
|
233
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
234
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
235
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-down" })
|
|
236
|
-
] }),
|
|
237
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper k-d-none", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
238
|
-
] }),
|
|
239
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander", dir: "rtl", children: [
|
|
240
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header k-hover", children: [
|
|
241
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Hover state" }),
|
|
242
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
243
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
244
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-down" })
|
|
245
|
-
] }),
|
|
246
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper k-d-none", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
247
|
-
] }),
|
|
248
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander k-focus", dir: "rtl", children: [
|
|
249
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header k-hover", children: [
|
|
250
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Hover & Focus state" }),
|
|
251
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
252
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
253
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-down" })
|
|
254
|
-
] }),
|
|
255
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper k-d-none", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
256
|
-
] }),
|
|
257
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander k-disabled", dir: "rtl", children: [
|
|
258
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header", children: [
|
|
259
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Disabled panel" }),
|
|
260
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
261
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
262
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-down" })
|
|
263
|
-
] }),
|
|
264
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper k-d-none", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
265
|
-
] }),
|
|
266
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander k-expanded", dir: "rtl", children: [
|
|
267
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "k-expander-header", children: [
|
|
268
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-title", children: "Content with fixed height" }),
|
|
269
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-spacer" }),
|
|
270
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-sub-title", children: "South America" }),
|
|
271
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { className: "k-expander-indicator", name: "arrow-chevron-up" })
|
|
272
|
-
] }),
|
|
273
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "k-expander-content", style: { height: "100px" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { height: "100%", overflow: "auto" }, children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc." }) }) })
|
|
274
|
-
] })
|
|
282
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id: "test-area", children: [
|
|
283
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Collapsed panel", subtitle: "South America", dir: "rtl" }),
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Expanded panel", subtitle: "South America", expanded: true, dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
285
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Expanded Focused panel", subtitle: "South America", expanded: true, focus: true, dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
286
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Collapsed panel", subtitle: "South America", dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Focus state", subtitle: "South America", focus: true, dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
288
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Hover state", subtitle: "South America", hover: true, dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
289
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Hover & Focus state", subtitle: "South America", hover: true, focus: true, dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
290
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Disabled panel", subtitle: "South America", disabled: true, dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) }),
|
|
291
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ExpansionPanel, { title: "Content with fixed height", subtitle: "South America", expanded: true, dir: "rtl", contentStyle: { height: "100px" }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { height: "100%", overflow: "auto" }, children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." }) })
|
|
275
292
|
] }) })
|
|
276
293
|
);
|
|
277
294
|
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/expansion-panel/tests/expansion-panel-rtl.tsx", "../../../src/utils/class-names.ts", "../../../src/utils/component-class-names.ts", "../../../src/utils/theme.ts", "../../../src/icon/icon.spec.tsx"],
|
|
4
|
-
"sourcesContent": ["import ReactDOM from 'react-dom/client';\nimport { Icon } from '../../icon';\n\nconst root = ReactDOM.createRoot(\n document.getElementById('app') as HTMLElement\n);\n\nroot.render(\n <>\n <div id=\"test-area\">\n\n <div className=\"k-expander\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Collapsed panel</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-down\" />\n </div>\n <div className=\"k-expander-content-wrapper k-d-none\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander k-expanded\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Expanded panel</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-up\" />\n </div>\n <div className=\"k-expander-content-wrapper\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander k-expanded k-focus\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Expanded panel</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-up\" />\n </div>\n <div className=\"k-expander-content-wrapper\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Collapsed panel</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-down\" />\n </div>\n <div className=\"k-expander-content-wrapper k-d-none\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander k-focus\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Focus state</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-down\" />\n </div>\n <div className=\"k-expander-content-wrapper k-d-none\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander\" dir=\"rtl\">\n <div className=\"k-expander-header k-hover\">\n <div className=\"k-expander-title\">Hover state</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-down\" />\n </div>\n <div className=\"k-expander-content-wrapper k-d-none\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander k-focus\" dir=\"rtl\">\n <div className=\"k-expander-header k-hover\">\n <div className=\"k-expander-title\">Hover & Focus state</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-down\" />\n </div>\n <div className=\"k-expander-content-wrapper k-d-none\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander k-disabled\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Disabled panel</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-down\" />\n </div>\n <div className=\"k-expander-content-wrapper k-d-none\">\n <div className=\"k-expander-content\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </div>\n </div>\n <div className=\"k-expander k-expanded\" dir=\"rtl\">\n <div className=\"k-expander-header\">\n <div className=\"k-expander-title\">Content with fixed height</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">South America</div>\n <Icon className=\"k-expander-indicator\" name=\"arrow-chevron-up\" />\n </div>\n <div className=\"k-expander-content-wrapper\">\n <div className=\"k-expander-content\" style={{ height: \"100px\" }}>\n <div style={{ height: \"100%\", overflow: \"auto\" }}>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </>\n);\n", "/* eslint-disable arrow-body-style */\nexport const classNames = (...args: any[]): string => {\n return args\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) => {\n // eslint-disable-next-line no-nested-ternary\n return Array.isArray(arg)\n ? classNames(...arg)\n : typeof arg === 'object'\n ? Object.keys(arg)\n .map((key, idx) => arg[idx] || (arg[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ')\n : arg;\n })\n .filter((arg) => Boolean(arg))\n .join(' ');\n};\n", "/* eslint-disable arrow-body-style */\nimport { classNames } from './class-names';\n\nexport const optionClassNames = (componentClassName: string, props: any) => {\n return classNames(\n {\n [`${componentClassName}-xs`]: props.size === \"xsmall\",\n [`${componentClassName}-sm`]: props.size === \"small\",\n [`${componentClassName}-md`]: props.size === \"medium\",\n [`${componentClassName}-lg`]: props.size === \"large\",\n [`${componentClassName}-xl`]: props.size === \"xlarge\",\n [`${componentClassName}-xxl`]: props.size === \"xxlarge\",\n [`${componentClassName}-xxxl`]: props.size === \"xxxlarge\"\n },\n {\n [`${componentClassName}-${props.fillMode}`]: props.fillMode,\n },\n {\n [`${componentClassName}-${props.fillMode}-${props.themeColor}`]:\n props.fillMode && props.themeColor,\n },\n {\n [`${componentClassName}-${props.themeColor}`]:\n props.themeColor && props.fillMode === undefined,\n },\n {\n 'k-rounded-sm': props.rounded === \"small\",\n 'k-rounded-md': props.rounded === \"medium\",\n 'k-rounded-lg': props.rounded === \"large\",\n 'k-rounded-full': props.rounded === \"full\",\n }\n );\n};\n\nexport const stateClassNames = (_componentClassName: string | undefined, props: any) => {\n return classNames({\n 'k-valid': props.valid,\n 'k-invalid': props.invalid,\n 'k-hover': props.hover,\n 'k-focus': props.focus,\n 'k-checked': props.checked,\n 'k-active': props.active,\n 'k-selected': props.selected,\n 'k-disabled': props.disabled,\n 'k-indeterminate': props.indeterminate && !props.checked,\n 'k-loading': props.loading,\n 'k-empty': props.empty,\n 'k-readonly': props.readonly,\n });\n};\n", "export const Size = {\n 'xsmall': 'xsmall',\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'xlarge': 'xlarge',\n 'xxlarge': 'xxlarge',\n 'xxxlarge': 'xxxlarge',\n} as const;\n\nexport const Roundness = {\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'full': 'full',\n} as const;\n\nexport const FillMode = {\n 'solid': 'solid',\n 'flat': 'flat',\n 'outline': 'outline',\n 'clear': 'clear',\n 'link': 'link',\n} as const;\n\nexport const ThemeColor = {\n 'inherit': 'inherit',\n 'base': 'base',\n 'primary': 'primary',\n 'secondary': 'secondary',\n 'tertiary': 'tertiary',\n 'info': 'info',\n 'success': 'success',\n 'warning': 'warning',\n 'error': 'error',\n 'dark': 'dark',\n 'light': 'light',\n 'inverse': 'inverse',\n} as const;\n\nexport const States = {\n 'open': 'open',\n 'hover': 'hover',\n 'focus': 'focus',\n 'active': 'active',\n 'selected': 'selected',\n 'disabled': 'disabled',\n 'valid': 'valid',\n 'invalid': 'invalid',\n 'loading': 'loading',\n 'required': 'required',\n 'empty': 'empty',\n 'indeterminate': 'indeterminate',\n 'checked': 'checked',\n 'readonly': 'readonly',\n} as const;\n\nexport const kendoThemeMaps = {\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n} as const;\n", "import { classNames, optionClassNames, Size, ThemeColor } from '../utils';\n\nexport const ICON_CLASSNAME = `k-icon`;\n\nconst states = [];\n\nconst options = {\n size: [ Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge ],\n themeColor: [\n ThemeColor.base,\n ThemeColor.primary,\n ThemeColor.secondary,\n ThemeColor.tertiary,\n ThemeColor.success,\n ThemeColor.warning,\n ThemeColor.error,\n ThemeColor.info,\n ThemeColor.light,\n ThemeColor.dark,\n ],\n};\n\nconst defaultProps = {};\n\nexport type IconState = { [K in (typeof states)[number]]?: boolean };\n\nexport type IconOptions = {\n size?: (typeof options.size)[number];\n themeColor?: (typeof options.themeColor)[number];\n};\n\nexport type IconProps = IconOptions & {\n name?: string;\n rotate?: null | '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n flip?: null | 'v' | 'h';\n}\n\nexport const Icon = (\n props: IconProps & React.HTMLAttributes<HTMLSpanElement>\n) => {\n const {\n size,\n themeColor,\n name,\n rotate,\n flip,\n ...other\n } = props;\n\n if (!name) {\n return <></>;\n }\n\n return (\n <span\n {...other}\n className={classNames(\n props.className,\n ICON_CLASSNAME,\n optionClassNames(ICON_CLASSNAME, {\n size,\n themeColor,\n }),\n {\n [`k-i-${name}`]: name,\n [`k-rotate-${rotate}`]: rotate,\n [`k-flip-${flip}`]: flip,\n }\n )}\n />\n );\n};\n\nIcon.states = states;\nIcon.options = options;\nIcon.className = ICON_CLASSNAME;\nIcon.defaultProps = defaultProps;\n\nexport default Icon;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAqB;;;ACCd,MAAM,aAAa,IAAI,SAAwB;AAClD,WAAO,KACF,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C,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AAA,EACJ;;;
|
|
6
|
-
"names": ["import_jsx_runtime", "ReactDOM"]
|
|
3
|
+
"sources": ["../../../src/expansion-panel/tests/expansion-panel-rtl.tsx", "../../../src/utils/class-names.ts", "../../../src/utils/component-class-names.ts", "../../../src/utils/theme.ts", "../../../src/icon/icon.spec.tsx", "../../../src/expansion-panel/expansion-panel.spec.tsx"],
|
|
4
|
+
"sourcesContent": ["import ReactDOM from 'react-dom/client';\nimport { ExpansionPanel } from '../../expansion-panel';\n\nconst root = ReactDOM.createRoot(\n document.getElementById('app') as HTMLElement\n);\n\nroot.render(\n <>\n <div id=\"test-area\">\n <ExpansionPanel title=\"Collapsed panel\" subtitle=\"South America\" dir=\"rtl\"></ExpansionPanel>\n\n <ExpansionPanel title=\"Expanded panel\" subtitle=\"South America\" expanded dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Expanded Focused panel\" subtitle=\"South America\" expanded focus dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Collapsed panel\" subtitle=\"South America\" dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Focus state\" subtitle=\"South America\" focus dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Hover state\" subtitle=\"South America\" hover dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Hover & Focus state\" subtitle=\"South America\" hover focus dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Disabled panel\" subtitle=\"South America\" disabled dir=\"rtl\" >\n <span>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </span>\n </ExpansionPanel>\n\n <ExpansionPanel title=\"Content with fixed height\" subtitle=\"South America\" expanded dir=\"rtl\" contentStyle={ { height: \"100px\" } } >\n <div style={ { height: \"100%\", overflow: \"auto\" } }>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\n </div>\n </ExpansionPanel>\n\n </div>\n </>\n);\n", "/* eslint-disable arrow-body-style */\nexport const classNames = (...args: any[]): string => {\n return args\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) => {\n // eslint-disable-next-line no-nested-ternary\n return Array.isArray(arg)\n ? classNames(...arg)\n : typeof arg === 'object'\n ? Object.keys(arg)\n .map((key, idx) => arg[idx] || (arg[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ')\n : arg;\n })\n .filter((arg) => Boolean(arg))\n .join(' ');\n};\n", "/* eslint-disable arrow-body-style */\nimport { classNames } from './class-names';\n\nexport const optionClassNames = (componentClassName: string, props: any) => {\n return classNames(\n {\n [`${componentClassName}-xs`]: props.size === \"xsmall\",\n [`${componentClassName}-sm`]: props.size === \"small\",\n [`${componentClassName}-md`]: props.size === \"medium\",\n [`${componentClassName}-lg`]: props.size === \"large\",\n [`${componentClassName}-xl`]: props.size === \"xlarge\",\n [`${componentClassName}-xxl`]: props.size === \"xxlarge\",\n [`${componentClassName}-xxxl`]: props.size === \"xxxlarge\"\n },\n {\n [`${componentClassName}-${props.fillMode}`]: props.fillMode,\n },\n {\n [`${componentClassName}-${props.fillMode}-${props.themeColor}`]:\n props.fillMode && props.themeColor,\n },\n {\n [`${componentClassName}-${props.themeColor}`]:\n props.themeColor && props.fillMode === undefined,\n },\n {\n 'k-rounded-sm': props.rounded === \"small\",\n 'k-rounded-md': props.rounded === \"medium\",\n 'k-rounded-lg': props.rounded === \"large\",\n 'k-rounded-full': props.rounded === \"full\",\n }\n );\n};\n\nexport const stateClassNames = (_componentClassName: string | undefined, props: any) => {\n return classNames({\n 'k-valid': props.valid,\n 'k-invalid': props.invalid,\n 'k-hover': props.hover,\n 'k-focus': props.focus,\n 'k-checked': props.checked,\n 'k-active': props.active,\n 'k-selected': props.selected,\n 'k-disabled': props.disabled,\n 'k-indeterminate': props.indeterminate && !props.checked,\n 'k-loading': props.loading,\n 'k-empty': props.empty,\n 'k-readonly': props.readonly,\n });\n};\n", "export const Size = {\n 'xsmall': 'xsmall',\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'xlarge': 'xlarge',\n 'xxlarge': 'xxlarge',\n 'xxxlarge': 'xxxlarge',\n} as const;\n\nexport const Roundness = {\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'full': 'full',\n} as const;\n\nexport const FillMode = {\n 'solid': 'solid',\n 'flat': 'flat',\n 'outline': 'outline',\n 'clear': 'clear',\n 'link': 'link',\n} as const;\n\nexport const ThemeColor = {\n 'inherit': 'inherit',\n 'base': 'base',\n 'primary': 'primary',\n 'secondary': 'secondary',\n 'tertiary': 'tertiary',\n 'info': 'info',\n 'success': 'success',\n 'warning': 'warning',\n 'error': 'error',\n 'dark': 'dark',\n 'light': 'light',\n 'inverse': 'inverse',\n} as const;\n\nexport const States = {\n 'open': 'open',\n 'hover': 'hover',\n 'focus': 'focus',\n 'active': 'active',\n 'selected': 'selected',\n 'disabled': 'disabled',\n 'valid': 'valid',\n 'invalid': 'invalid',\n 'loading': 'loading',\n 'required': 'required',\n 'empty': 'empty',\n 'indeterminate': 'indeterminate',\n 'checked': 'checked',\n 'readonly': 'readonly',\n} as const;\n\nexport const kendoThemeMaps = {\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n} as const;\n", "import { classNames, optionClassNames, Size, ThemeColor } from '../utils';\n\nexport const ICON_CLASSNAME = `k-icon`;\n\nconst states = [];\n\nconst options = {\n size: [ Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge ],\n themeColor: [\n ThemeColor.base,\n ThemeColor.primary,\n ThemeColor.secondary,\n ThemeColor.tertiary,\n ThemeColor.success,\n ThemeColor.warning,\n ThemeColor.error,\n ThemeColor.info,\n ThemeColor.light,\n ThemeColor.dark,\n ],\n};\n\nconst defaultProps = {};\n\nexport type IconState = { [K in (typeof states)[number]]?: boolean };\n\nexport type IconOptions = {\n size?: (typeof options.size)[number];\n themeColor?: (typeof options.themeColor)[number];\n};\n\nexport type IconProps = IconOptions & {\n name?: string;\n rotate?: null | '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n flip?: null | 'v' | 'h';\n}\n\nexport const Icon = (\n props: IconProps & React.HTMLAttributes<HTMLSpanElement>\n) => {\n const {\n size,\n themeColor,\n name,\n rotate,\n flip,\n ...other\n } = props;\n\n if (!name) {\n return <></>;\n }\n\n return (\n <span\n {...other}\n className={classNames(\n props.className,\n ICON_CLASSNAME,\n optionClassNames(ICON_CLASSNAME, {\n size,\n themeColor,\n }),\n {\n [`k-i-${name}`]: name,\n [`k-rotate-${rotate}`]: rotate,\n [`k-flip-${flip}`]: flip,\n }\n )}\n />\n );\n};\n\nIcon.states = states;\nIcon.options = options;\nIcon.className = ICON_CLASSNAME;\nIcon.defaultProps = defaultProps;\n\nexport default Icon;\n", "import * as React from 'react';\nimport { classNames, stateClassNames, States } from '../utils';\nimport { Icon } from '../icon';\n\nconst EXPANSION_PANEL_CLASSNAME = 'k-expander';\n\nconst states = [\n States.hover,\n States.focus,\n States.disabled,\n];\n\nconst options = {};\n\nexport type KendoExpansionPanelProps = {\n title?: string;\n subtitle?: string;\n expanded?: boolean;\n dir?: 'ltr' | 'rtl';\n contentStyle?: React.CSSProperties;\n};\n\nexport type KendoExpansionPanelState = { [K in (typeof states)[number]]?: boolean };\n\nconst defaultProps = {};\n\nexport const ExpansionPanel = (\n props: KendoExpansionPanelProps &\n KendoExpansionPanelState &\n React.HTMLAttributes<HTMLDivElement>\n) => {\n const {\n title,\n subtitle,\n expanded,\n hover,\n focus,\n disabled,\n dir,\n contentStyle\n } = props;\n\n return (\n <div className={classNames(\n props.className,\n EXPANSION_PANEL_CLASSNAME,\n stateClassNames(EXPANSION_PANEL_CLASSNAME, {\n hover,\n focus,\n disabled\n }),\n {\n 'k-expanded': expanded,\n }\n )} dir={dir}>\n <div className={classNames(\n 'k-expander-header',\n stateClassNames(EXPANSION_PANEL_CLASSNAME, {\n hover\n })\n )}>\n <div className=\"k-expander-title\">{title}</div>\n <span className=\"k-spacer\"></span>\n <div className=\"k-expander-sub-title\">{subtitle}</div>\n <span className=\"k-expander-indicator\">\n { !expanded ? <Icon name=\"chevron-down\" /> : <Icon name=\"chevron-up\" /> }\n </span>\n </div>\n <div className={classNames(\n 'k-expander-content-wrapper',\n {\n 'k-d-none': !expanded\n }\n )}>\n <div className=\"k-expander-content\" style={contentStyle}>\n {props.children}\n </div>\n </div>\n </div>\n );\n};\n\nExpansionPanel.states = states;\nExpansionPanel.options = options;\nExpansionPanel.className = EXPANSION_PANEL_CLASSNAME;\nExpansionPanel.defaultProps = defaultProps;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAqB;;;ACCd,MAAM,aAAa,IAAI,SAAwB;AAClD,WAAO,KACF,OAAO,CAAC,QA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