@particle-network/ui-react 0.4.0-beta.4 → 0.4.0-beta.5

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.
@@ -252,7 +252,7 @@ const tabsClasses = {
252
252
  color: 'default',
253
253
  class: {
254
254
  cursor: [
255
- 'bg-background-200'
255
+ '!bg-background-200'
256
256
  ],
257
257
  tabContent: 'group-data-[selected=true]:text-default-foreground'
258
258
  }
@@ -264,9 +264,9 @@ const tabsClasses = {
264
264
  color: 'default',
265
265
  class: {
266
266
  cursor: [
267
- 'bg-foreground-100'
267
+ '!bg-tertiary'
268
268
  ],
269
- tabContent: 'group-data-[selected=true]:text-default-foreground'
269
+ tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
270
270
  }
271
271
  },
272
272
  {
@@ -276,9 +276,9 @@ const tabsClasses = {
276
276
  color: 'default',
277
277
  class: {
278
278
  cursor: [
279
- 'bg-background-300'
279
+ '!bg-background-300'
280
280
  ],
281
- tabContent: 'group-data-[selected=true]:text-default-foreground'
281
+ tabContent: 'group-data-[selected=true]:text-foreground'
282
282
  }
283
283
  },
284
284
  {
@@ -2,7 +2,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { Drawer, DrawerBody, DrawerContent, DrawerFooter, DrawerHeader } from "@heroui/drawer";
4
4
  import { useDisclosure } from "@heroui/use-disclosure";
5
- import { ThemeSwitchIcon } from "@particle-network/icons/web";
5
+ import { ChartColorSwitchIcon } from "@particle-network/icons/web";
6
6
  import { useI18n } from "../../hooks/index.js";
7
7
  import { Flex, HStack, VStack } from "../layout/index.js";
8
8
  import { Text } from "../typography/Text.js";
@@ -132,7 +132,7 @@ const UXThemeSwitch = ({ children })=>{
132
132
  isIconOnly: true,
133
133
  variant: "light",
134
134
  onPress: onOpen,
135
- children: /*#__PURE__*/ jsx(ThemeSwitchIcon, {})
135
+ children: /*#__PURE__*/ jsx(ChartColorSwitchIcon, {})
136
136
  });
137
137
  };
138
138
  return /*#__PURE__*/ jsxs(Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.4.0-beta.4",
3
+ "version": "0.4.0-beta.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -39,8 +39,8 @@
39
39
  "@types/react": "^19.1.10",
40
40
  "react": "^19.1.0",
41
41
  "typescript": "^5.8.3",
42
- "@particle-network/lintstaged-config": "0.1.0",
43
- "@particle-network/eslint-config": "0.3.0"
42
+ "@particle-network/eslint-config": "0.3.0",
43
+ "@particle-network/lintstaged-config": "0.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.9.0",
@@ -50,8 +50,8 @@
50
50
  "ahooks": "^3.9.4",
51
51
  "copy-to-clipboard": "^3.3.3",
52
52
  "zustand": "^5.0.8",
53
- "@particle-network/ui-shared": "0.3.0-beta.1",
54
- "@particle-network/icons": "0.4.0-beta.2"
53
+ "@particle-network/icons": "0.4.0-beta.2",
54
+ "@particle-network/ui-shared": "0.3.0-beta.1"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "rslib build",
@@ -6,6 +6,9 @@ const plugin = require('tailwindcss/plugin');
6
6
  module.exports = {
7
7
  theme: {
8
8
  extend: {
9
+ colors: {
10
+ brand: '#D745FF',
11
+ },
9
12
  gap: {
10
13
  xs: '0.125rem', // 2px
11
14
  sm: '0.375rem', // 6px
@@ -72,12 +75,12 @@ module.exports = {
72
75
  },
73
76
  },
74
77
  },
75
- darkMode: 'class',
78
+ darkMode: ['selector', '[data-theme="dark"]'],
76
79
  plugins: [
77
80
  heroui({
78
81
  addCommonColors: true,
79
- defaultTheme: 'ux-purple-gold-light',
80
- defaultExtendTheme: 'light',
82
+ defaultTheme: 'ux-purple-gold-dark',
83
+ defaultExtendTheme: 'ux-purple-gold-dark',
81
84
  layout: {
82
85
  radius: {
83
86
  small: '6px', // rounded-small
@@ -509,7 +512,7 @@ module.exports = {
509
512
  },
510
513
  tertiary: {
511
514
  DEFAULT: '#7B7B85',
512
- foreground: '#000000',
515
+ foreground: '#FFFFFF',
513
516
  },
514
517
  success: {
515
518
  DEFAULT: '#19AB5E',
@@ -1014,7 +1017,7 @@ module.exports = {
1014
1017
  addVariant('max-2xh', '@media (max-height: 1300px)');
1015
1018
 
1016
1019
  // light mode variant
1017
- addVariant('light', '&:not(.dark *)');
1020
+ addVariant('light', '&:not([data-theme="dark"] *)');
1018
1021
 
1019
1022
  // button styles
1020
1023
  addComponents({
@@ -1064,7 +1067,7 @@ module.exports = {
1064
1067
  '.shadow-box': {
1065
1068
  boxShadow: '0px 2px 12px 0px rgba(23, 23, 28, 0.15)',
1066
1069
  },
1067
- '.dark .shadow-box': {
1070
+ '[data-theme="dark"] .shadow-box': {
1068
1071
  boxShadow: '0px 2px 12px 0px rgba(0, 0, 0, 0.5)',
1069
1072
  },
1070
1073
  });