neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+1
View File
@@ -0,0 +1 @@
export { default } from "./propsToClassKey.mjs";
+1
View File
@@ -0,0 +1 @@
export { default } from "./propsToClassKey.js";
+13
View File
@@ -0,0 +1,13 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _propsToClassKey.default;
}
});
var _propsToClassKey = _interopRequireDefault(require("./propsToClassKey"));
+1
View File
@@ -0,0 +1 @@
export { default } from "./propsToClassKey.mjs";
@@ -0,0 +1,6 @@
/**
* Generates string classKey based on the properties provided. It starts with the
* variant if defined, and then it appends all other properties in alphabetical order.
* @param props - the properties for which the classKey should be created.
*/
export default function propsToClassKey(props: object): string;
@@ -0,0 +1,6 @@
/**
* Generates string classKey based on the properties provided. It starts with the
* variant if defined, and then it appends all other properties in alphabetical order.
* @param props - the properties for which the classKey should be created.
*/
export default function propsToClassKey(props: object): string;
+32
View File
@@ -0,0 +1,32 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = propsToClassKey;
var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
function isEmpty(string) {
return string.length === 0;
}
/**
* Generates string classKey based on the properties provided. It starts with the
* variant if defined, and then it appends all other properties in alphabetical order.
* @param props - the properties for which the classKey should be created.
*/
function propsToClassKey(props) {
const {
variant,
...other
} = props;
let classKey = variant || '';
Object.keys(other).sort().forEach(key => {
if (key === 'color') {
classKey += isEmpty(classKey) ? props[key] : (0, _capitalize.default)(props[key]);
} else {
classKey += `${isEmpty(classKey) ? key : (0, _capitalize.default)(key)}${(0, _capitalize.default)(props[key].toString())}`;
}
});
return classKey;
}
+25
View File
@@ -0,0 +1,25 @@
import capitalize from '@mui/utils/capitalize';
function isEmpty(string) {
return string.length === 0;
}
/**
* Generates string classKey based on the properties provided. It starts with the
* variant if defined, and then it appends all other properties in alphabetical order.
* @param props - the properties for which the classKey should be created.
*/
export default function propsToClassKey(props) {
const {
variant,
...other
} = props;
let classKey = variant || '';
Object.keys(other).sort().forEach(key => {
if (key === 'color') {
classKey += isEmpty(classKey) ? props[key] : capitalize(props[key]);
} else {
classKey += `${isEmpty(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;
}
});
return classKey;
}