colbrush 1.4.0 → 1.5.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/client.cjs CHANGED
@@ -118,9 +118,8 @@ var SvgLogo = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
118
118
  "svg",
119
119
  {
120
120
  xmlns: "http://www.w3.org/2000/svg",
121
- width: 39,
122
- height: 40,
123
121
  fill: "none",
122
+ viewBox: "0 0 39 40",
124
123
  ...props,
125
124
  children: [
126
125
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "#CE78A9", d: "m.5 17.805 1.516-3.514 16.812-7.924-1.309 3.308z" }),
@@ -184,9 +183,8 @@ var SvgUs = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
184
183
  "svg",
185
184
  {
186
185
  xmlns: "http://www.w3.org/2000/svg",
187
- width: 28,
188
- height: 21,
189
186
  fill: "none",
187
+ viewBox: "0 0 28 21",
190
188
  ...props,
191
189
  children: [
192
190
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("g", { clipPath: "url(#a)", filter: "url(#b)", children: [
@@ -263,9 +261,8 @@ var SvgKr = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
263
261
  "svg",
264
262
  {
265
263
  xmlns: "http://www.w3.org/2000/svg",
266
- width: 24,
267
- height: 17,
268
264
  fill: "none",
265
+ viewBox: "0 0 24 17",
269
266
  ...props,
270
267
  children: [
271
268
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { clipPath: "url(#a)", filter: "url(#b)", children: [
@@ -384,9 +381,8 @@ var SvgX = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
384
381
  "svg",
385
382
  {
386
383
  xmlns: "http://www.w3.org/2000/svg",
387
- width: 30,
388
- height: 30,
389
384
  fill: "none",
385
+ viewBox: "0 0 30 30",
390
386
  ...props,
391
387
  children: [
392
388
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
@@ -648,7 +644,7 @@ function ThemeSwitcher({ options }) {
648
644
  {
649
645
  role: "menu",
650
646
  "aria-label": "Select theme",
651
- className: "fixed bottom-[100px] right-[25px] flex-col bg-[#ffffff] rounded-[18px] w-[220px] gap-[11px]",
647
+ className: "fixed bottom-[100px] right-[25px] flex-col bg-[#ffffff] rounded-[18px] w-[220px] gap-[11px] filter drop-shadow-[0_0_1.3px_rgba(0,0,0,0.25)]",
652
648
  children: [
653
649
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: list.map((opt) => {
654
650
  const Icon = THEME_ICON[opt.key];
@@ -693,7 +689,7 @@ function ThemeSwitcher({ options }) {
693
689
  className: `hover:cursor-pointer flex text-[18px] text-[#3D4852] gap-[8px] items-center justify-center`,
694
690
  onClick: () => updateLanguage("Korean"),
695
691
  children: [
696
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Us_default, {}),
692
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Us_default, { width: 20 }),
697
693
  "English"
698
694
  ]
699
695
  }
@@ -703,7 +699,7 @@ function ThemeSwitcher({ options }) {
703
699
  className: `hover:cursor-pointer flex text-[18px] text-[#3D4852] gap-[8px] items-center justify-center `,
704
700
  onClick: () => updateLanguage("English"),
705
701
  children: [
706
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Kr_default, {}),
702
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Kr_default, { width: 20 }),
707
703
  "Korean"
708
704
  ]
709
705
  }
package/dist/client.js CHANGED
@@ -96,9 +96,8 @@ var SvgLogo = (props) => /* @__PURE__ */ jsxs(
96
96
  "svg",
97
97
  {
98
98
  xmlns: "http://www.w3.org/2000/svg",
99
- width: 39,
100
- height: 40,
101
99
  fill: "none",
100
+ viewBox: "0 0 39 40",
102
101
  ...props,
103
102
  children: [
104
103
  /* @__PURE__ */ jsx2("path", { fill: "#CE78A9", d: "m.5 17.805 1.516-3.514 16.812-7.924-1.309 3.308z" }),
@@ -162,9 +161,8 @@ var SvgUs = (props) => /* @__PURE__ */ jsxs2(
162
161
  "svg",
163
162
  {
164
163
  xmlns: "http://www.w3.org/2000/svg",
165
- width: 28,
166
- height: 21,
167
164
  fill: "none",
165
+ viewBox: "0 0 28 21",
168
166
  ...props,
169
167
  children: [
170
168
  /* @__PURE__ */ jsxs2("g", { clipPath: "url(#a)", filter: "url(#b)", children: [
@@ -241,9 +239,8 @@ var SvgKr = (props) => /* @__PURE__ */ jsxs3(
241
239
  "svg",
242
240
  {
243
241
  xmlns: "http://www.w3.org/2000/svg",
244
- width: 24,
245
- height: 17,
246
242
  fill: "none",
243
+ viewBox: "0 0 24 17",
247
244
  ...props,
248
245
  children: [
249
246
  /* @__PURE__ */ jsxs3("g", { clipPath: "url(#a)", filter: "url(#b)", children: [
@@ -362,9 +359,8 @@ var SvgX = (props) => /* @__PURE__ */ jsxs4(
362
359
  "svg",
363
360
  {
364
361
  xmlns: "http://www.w3.org/2000/svg",
365
- width: 30,
366
- height: 30,
367
362
  fill: "none",
363
+ viewBox: "0 0 30 30",
368
364
  ...props,
369
365
  children: [
370
366
  /* @__PURE__ */ jsx5(
@@ -626,7 +622,7 @@ function ThemeSwitcher({ options }) {
626
622
  {
627
623
  role: "menu",
628
624
  "aria-label": "Select theme",
629
- className: "fixed bottom-[100px] right-[25px] flex-col bg-[#ffffff] rounded-[18px] w-[220px] gap-[11px]",
625
+ className: "fixed bottom-[100px] right-[25px] flex-col bg-[#ffffff] rounded-[18px] w-[220px] gap-[11px] filter drop-shadow-[0_0_1.3px_rgba(0,0,0,0.25)]",
630
626
  children: [
631
627
  /* @__PURE__ */ jsx10("div", { children: list.map((opt) => {
632
628
  const Icon = THEME_ICON[opt.key];
@@ -671,7 +667,7 @@ function ThemeSwitcher({ options }) {
671
667
  className: `hover:cursor-pointer flex text-[18px] text-[#3D4852] gap-[8px] items-center justify-center`,
672
668
  onClick: () => updateLanguage("Korean"),
673
669
  children: [
674
- /* @__PURE__ */ jsx10(Us_default, {}),
670
+ /* @__PURE__ */ jsx10(Us_default, { width: 20 }),
675
671
  "English"
676
672
  ]
677
673
  }
@@ -681,7 +677,7 @@ function ThemeSwitcher({ options }) {
681
677
  className: `hover:cursor-pointer flex text-[18px] text-[#3D4852] gap-[8px] items-center justify-center `,
682
678
  onClick: () => updateLanguage("English"),
683
679
  children: [
684
- /* @__PURE__ */ jsx10(Kr_default, {}),
680
+ /* @__PURE__ */ jsx10(Kr_default, { width: 20 }),
685
681
  "Korean"
686
682
  ]
687
683
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colbrush",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "A React theme switching library that makes it easy to apply color-blind accessible UI themes",
5
5
  "homepage": "https://colbrush.vercel.app",
6
6
  "repository": {
@@ -72,8 +72,9 @@
72
72
  "typescript": "^5.8.3"
73
73
  },
74
74
  "scripts": {
75
- "svgr": "svgr src/assets --out-dir src/icons --typescript --expand-props end --svgo-config svgo.config.js",
75
+ "svgr": "svgr src/assets --out-dir src/icons --config-file svgr.config.cjs",
76
76
  "build:css": "tailwindcss -i ./src/styles.css -o ./dist/styles.css --minify",
77
+ "build:icons": "svgr src/assets --out-dir src/icons",
77
78
  "build": "pnpm svgr && tsup --config tsup.config.ts && pnpm build:css",
78
79
  "dev": "tsup --config tsup.config.ts --watch",
79
80
  "lint": "eslint ."