Skip to content

Commit

Permalink
chore: update dependencies (#70)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* chore: update dependencies

* fix: fix typo

* fix(docs): add missing CSS

* docs(wedges): add changesets
  • Loading branch information
brankoconjic authored May 11, 2024
1 parent a7ffd3a commit 6287126
Show file tree
Hide file tree
Showing 8 changed files with 2,203 additions and 2,275 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-weeks-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lemonsqueezy/wedges": patch
---

update dependencies
22 changes: 6 additions & 16 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,22 @@
"generate:examples": "node src/scripts/generateExamples.mjs"
},
"dependencies": {
"@headlessui/react": "^1.7.18",
"@headlessui/react": "^2.0.3",
"@iconicicons/react": "^1.5.1",
"@radix-ui/react-scroll-area": "^1.0.5",
"clsx": "^2.1.0",
"fathom-client": "^3.6.0",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18",
"sass": "^1.70.0",
"shikiji": "0.10.x",
"tailwind-merge": "^2.2.1"
"sass": "^1.77.1",
"shikiji": "0.10.x"
},
"devDependencies": {
"@docsearch/react": "^3.5.2",
"@docsearch/react": "^3.6.0",
"@lemonsqueezy/wedges": "workspace:*",
"@tailwindcss/typography": "^0.5.10",
"@tailwindcss/typography": "^0.5.13",
"@types/hast": "^3.0.4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/unist": "^3.0.2",
"autoprefixer": "^10.4.17",
"autoprefixer": "^10.4.19",
"contentlayer": "latest",
"eslint": "^8",
"hast-util-from-html-isomorphic": "^2.0.0",
"mdast-util-toc": "^7.0.0",
"next-contentlayer": "latest",
Expand All @@ -46,8 +38,6 @@
"rehype-slug": "^6.0.0",
"remark": "^15.0.1",
"remark-gfm": "^3.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"unist-builder": "^4.0.0",
"unist-util-visit": "^5.0.0"
}
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/src/styles/docsearch.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
overflow: hidden !important;
}

.DocSearch-VisuallyHiddenForAccessibility {
@apply sr-only;
}

.DocSearch-Container {
position: fixed;
z-index: 200;
Expand Down
28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,35 @@
"test:coverage": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage --passWithNoTests",
"prepare": "husky",
"version": "changeset version",
"version:dev": "changeset version --snapshop --no-git-tag --tag dev",
"version:dev": "changeset version --snapshot --no-git-tag --tag dev",
"release": "pnpm build && changeset publish",
"release:dev": "pnpm build && changeset publish --snapshot --no-git-tag --tag dev"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@testing-library/react": "^14.2.1",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@testing-library/react": "^15.0.7",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.16",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/node": "^20.12.11",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@wedges/eslint-config": "workspace:*",
"husky": "^9.0.10",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"react": "^18.2.0",
"react-dom": "18.2.0",
"rimraf": "^5.0.5",
"tailwindcss": "3.4.1",
"prettier-plugin-tailwindcss": "^0.5.14",
"react": "^18.3.1",
"react-dom": "18.3.1",
"rimraf": "^5.0.6",
"tailwindcss": "3.4.3",
"ts-jest": "^29.1.2",
"turbo": "^1.13.3",
"typescript": "^5.3.3"
"typescript": "^5.4.5",
"tailwind-merge": "^2.3.0",
"clsx": "^2.1.1"
},
"packageManager": "pnpm@9.1.0",
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-tailwindcss": "^3.14.2",
"typescript": "^5.3.3"
"eslint-plugin-tailwindcss": "^3.14.2"
}
}
65 changes: 31 additions & 34 deletions packages/wedges/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@
"radix",
"react",
"responsive",
"tailwindcss",
"ui"
"tailwindcss"
],
"license": "MIT",
"author": {
"name": "Lemon Squeezy",
"email": "hello@lemonsqueezy.com",
"url": "https://lemonsqueezy.com/wedges"
},
"homepage": "https://lemonsqueezy.com/wedges",
"bugs": {
"url": "https://github.com/lmsqueezy/wedges/issues"
Expand All @@ -34,17 +27,14 @@
"url": "https://github.com/lmsqueezy/wedges.git",
"directory": "packages/wedges"
},
"publishConfig": {
"access": "public"
"license": "MIT",
"author": {
"name": "Lemon Squeezy",
"email": "hello@lemonsqueezy.com",
"url": "https://lemonsqueezy.com/wedges"
},
"files": [
"dist",
"README.md"
],
"sideEffects": false,
"type": "module",
"main": "./dist/cjs/index.cjs",
"types": "./dist/cjs/index.d.cts",
"module": "./dist/esm/index.js",
"exports": {
".": {
"require": {
Expand All @@ -57,29 +47,25 @@
}
}
},
"sideEffects": false,
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.cts",
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "concurrently \"npm run build:cjs\" \"npm run build:esm\"",
"build:cjs": "tsup --format cjs --external react",
"build:esm": "tsup --format esm --external react",
"build": "concurrently \"npm run build:cjs\" \"npm run build:esm\"",
"build:watch:esm": "npm run build:esm -- --watch",
"build:watch:cjs": "npm run build:cjs -- --watch",
"build:watch": "concurrently \"npm:build:watch:*\"",
"dev": "npm run build:watch",
"build:watch:cjs": "npm run build:cjs -- --watch",
"build:watch:esm": "npm run build:esm -- --watch",
"clean": "rimraf .turbo node_modules dist",
"dev": "npm run build:watch",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "eslint 'src/**/*.{js,jsx,ts,tsx}' --fix"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@swc/core": "^1.4.0",
"@types/color": "^3.0.6",
"@types/lodash.omit": "^4.5.9",
"@wedges/eslint-config": "workspace:*",
"concurrently": "^8.2.2",
"prettier-plugin-tailwindcss": "^0.5.11",
"tsup": "^8.0.1"
},
"dependencies": {
"@iconicicons/react": "latest",
"@radix-ui/react-avatar": "^1.0.4",
Expand All @@ -95,14 +81,22 @@
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"clsx": "^2.1.0",
"clsx": "^2.1.1",
"color": "^4.2.3",
"color2k": "^2.0.3",
"cva": "1.0.0-beta.1",
"deepmerge": "^4.3.1",
"flat": "^6.0.1",
"lodash.omit": "^4.5.0",
"tailwind-merge": "^2.2.1"
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@swc/core": "^1.5.5",
"@types/color": "^3.0.6",
"@types/lodash.omit": "^4.5.9",
"@wedges/eslint-config": "workspace:*",
"concurrently": "^8.2.2",
"tsup": "^8.0.2"
},
"peerDependencies": {
"@types/react": "*",
Expand All @@ -118,5 +112,8 @@
"@types/react-dom": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
}
10 changes: 5 additions & 5 deletions packages/wedges/src/tw-plugin/utils/prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ type PrefixKeys<T extends Record<string, any>, P extends string> = {
*
* @example
* const obj = { a: 1, b: 2 };
* const result = addPrefixToObjKey(obj, 'wedges');
* const result = addPrefix(obj, 'wedges');
* // result: { 'wedges-a': 1, 'wedges-b': 2 }
*/
export const addPrefix = <T extends Record<string, any>, P extends string>(
obj: T,
prefix: P
): PrefixKeys<T, P> => {
const result = {} as PrefixKeys<T, P>;
const result = {} as Record<string, any>;

for (const key of Object.keys(obj)) {
result[`${prefix}-${key}` as keyof PrefixKeys<T, P>] = obj[key as keyof T];
for (const key in obj) {
result[`${prefix}-${key}`] = obj[key];
}

return result;
return result as PrefixKeys<T, P>;
};
Loading

0 comments on commit 6287126

Please sign in to comment.