Skip to content

Commit ad95b04

Browse files
committed
chore(renaming): 🚚 rename to adaptui
1 parent 95e1d60 commit ad95b04

File tree

5 files changed

+10
-92
lines changed

5 files changed

+10
-92
lines changed

.all-contributorsrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"projectName": "renderlesskit-react",
3-
"projectOwner": "timelessco",
2+
"projectName": "react",
3+
"projectOwner": "adaptui",
44
"repoType": "github",
55
"repoHost": "https://github.com",
6-
"files": [
7-
"README.md"
6+
"files": [ "README.md"
87
],
98
"imageSize": 100,
109
"commit": true,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@renderlesskit/react",
3-
"version": "1.0.0-2",
2+
"name": "@adaptui/react",
3+
"version": "1.0.0",
44
"description": "Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit",
55
"keywords": [
66
"renderless",
@@ -14,13 +14,13 @@
1414
"nostyle",
1515
"composable"
1616
],
17-
"homepage": "https://github.com/timelessco/renderlesskit-react#readme",
17+
"homepage": "https://github.com/adaptui/react#readme",
1818
"bugs": {
19-
"url": "https://github.com/timelessco/renderlesskit-react/issues"
19+
"url": "https://github.com/adaptui/react/issues"
2020
},
2121
"repository": {
2222
"type": "git",
23-
"url": "git+https://github.com/timelessco/renderlesskit-react.git"
23+
"url": "git+https://github.com/adaptui/react.git"
2424
},
2525
"license": "MIT",
2626
"author": "Timeless <[email protected]>",

scripts/builds/keys.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/utils/index.js

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -309,82 +309,9 @@ function reduceKeys(acc, [moduleName, array]) {
309309
return `${acc}export ${finalString}`;
310310
}
311311

312-
/**
313-
* Create __keys.json files
314-
* @param {string} rootPath
315-
*/
316-
function makeKeys(rootPath) {
317-
const pkg = getPackage(rootPath);
318-
319-
const filesByModules = getPublicFilesByModules(getSourcePath(rootPath));
320-
const project = new Project({
321-
tsConfigFilePath: join(rootPath, "tsconfig.json"),
322-
addFilesFromTsConfig: false,
323-
});
324-
const created = [];
325-
326-
Object.entries(filesByModules).forEach(([modulePath, paths]) => {
327-
const sourceFiles = project.addSourceFilesAtPaths(paths);
328-
const keys = {};
329-
const stateKeys = [];
330-
331-
sortSourceFiles(sourceFiles).forEach(sourceFile => {
332-
sourceFile.forEachChild(node => {
333-
if (isStateReturnDeclaration(node) || isOptionsDeclaration(node)) {
334-
const literalNode = isOptionsDeclaration(node)
335-
? getLiteralNode(node)
336-
: node;
337-
const props = literalNode ? getPropsNames(literalNode, true) : [];
338-
if (isStateReturnDeclaration(node)) {
339-
for (const prop of props) {
340-
if (!stateKeys.includes(prop)) {
341-
stateKeys.push(prop);
342-
}
343-
}
344-
keys[getModuleName(node)] = props;
345-
} else {
346-
keys[getModuleName(node)] = [...stateKeys, ...props];
347-
}
348-
}
349-
if (isInitialStateDeclaration(node)) {
350-
const literalNode = isOptionsDeclaration(node)
351-
? getLiteralNode(node)
352-
: node;
353-
const props = literalNode ? getPropsNames(literalNode, true) : [];
354-
keys[getModuleName(node)] = props;
355-
}
356-
});
357-
});
358-
359-
if (!Object.keys(keys).length) return;
360-
361-
const normalizedKeys = replaceSubsetInObject(sortStateSets(keys));
362-
const contents = Object.entries(normalizedKeys).reduce(reduceKeys, "");
363-
created.push(chalk.bold(chalk.green(basename(modulePath))));
364-
365-
writeFileSync(
366-
join(modulePath, "__keys.ts"),
367-
prettier.format(`// Automatically generated\n${contents}`, {
368-
parser: "babel-ts",
369-
}),
370-
);
371-
});
372-
373-
if (created.length) {
374-
log(
375-
[
376-
"",
377-
`Generated keys in ${chalk.bold(pkg.name)}:`,
378-
`${created.join(", ")}`,
379-
].join("\n"),
380-
);
381-
}
382-
}
383-
384312
module.exports = {
385313
getPackage,
386314
hasTSConfig,
387-
makeKeys,
388315
getProps,
389316
getEscapedName,
390317
getModuleName,

src/toast/stories/ToastReactSpring.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ContentType,
99
getRandomContent,
1010
getRandomType,
11-
Toast as RenderlesskitToast,
11+
Toast as AdaptUIToast,
1212
ToastBar,
1313
ToastProvider,
1414
TriggerButton,
@@ -117,7 +117,7 @@ export function ToastTriggers() {
117117

118118
const SpringAnimationWrapper: React.FC<
119119
React.PropsWithChildren<{
120-
toast: RenderlesskitToast;
120+
toast: AdaptUIToast;
121121
}>
122122
> = props => {
123123
const {

0 commit comments

Comments
 (0)