create-antd-layout 1.1.8 → 1.2.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/bin/index.js CHANGED
@@ -27,7 +27,7 @@ const TEMPLATES = [
27
27
  name: "SSR + Next (Pro)",
28
28
  value: "antd-layout-pro",
29
29
  type: "remote",
30
- repo: "https://github.com/zhouwenqi/adminui-demo-antd-layout-max.git",
30
+ repo: "https://github.com/zhouwenqi/adminui-demo-antd-layout-pro.git",
31
31
  },
32
32
  ];
33
33
  const PACKAGE_MANAGERS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-antd-layout",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "this is create project for @adminui-dev/antd-layout's template proejct",
5
5
  "keywords": [
6
6
  "create-antd-layout",
@@ -8,7 +8,7 @@
8
8
  "name": "adminui-demo-antd-layout-max",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
- "@adminui-dev/antd-layout": "^1.4.3",
11
+ "@adminui-dev/antd-layout": "^1.6.6",
12
12
  "@ant-design/colors": "^7.2.1",
13
13
  "antd": "^6.1.1",
14
14
  "dayjs": "^1.11.19",
@@ -38,12 +38,12 @@
38
38
  }
39
39
  },
40
40
  "node_modules/@adminui-dev/antd-layout": {
41
- "version": "1.4.3",
42
- "resolved": "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.4.3.tgz",
43
- "integrity": "sha512-PKqMmd2HGac/UC203620Xf17Ib+ZxfL84W41YV71FHfDKCDtL2Lq3/iNAvXOt/hJgPq8pr3pskrHF+/mYr+4bA==",
41
+ "version": "1.6.6",
42
+ "resolved": "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.6.6.tgz",
43
+ "integrity": "sha512-Yxeed9FStNPiz0I1BIHWPUH3QKGo5C23fjumx8d6s4b3Sk1Av8Cqi9e24z0Knh0wj8j/rOYGwDcRfr7BZWMCMQ==",
44
44
  "license": "MIT",
45
45
  "dependencies": {
46
- "@adminui-dev/layout": "1.2.4",
46
+ "@adminui-dev/layout": "1.2.9",
47
47
  "tslib": "^2.6.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -58,9 +58,9 @@
58
58
  }
59
59
  },
60
60
  "node_modules/@adminui-dev/layout": {
61
- "version": "1.2.4",
62
- "resolved": "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.4.tgz",
63
- "integrity": "sha512-5GET8nnZ7uKqR8cN0xrwpvRqHiDW8fVpU5EWfyqq/mQq41wM575E/4TCmoTJuyel/9zElwTwWidmhv2GE0t44g==",
61
+ "version": "1.2.9",
62
+ "resolved": "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.9.tgz",
63
+ "integrity": "sha512-z1w2Z8cvIDir6pMhlTZ4S9wc9PQbVaSWnjq3y2XWfCeWIjitykEDb4Ad0CiPjb+gbKFb5JGEw9AIAxvNmXa3CA==",
64
64
  "license": "MIT",
65
65
  "dependencies": {
66
66
  "tslib": "^2.6.0"
@@ -10,7 +10,7 @@
10
10
  "preview": "vite preview"
11
11
  },
12
12
  "dependencies": {
13
- "@adminui-dev/antd-layout": "^1.4.3",
13
+ "@adminui-dev/antd-layout": "^1.6.6",
14
14
  "@ant-design/colors": "^7.2.1",
15
15
  "antd": "^6.1.1",
16
16
  "dayjs": "^1.11.19",
@@ -9,8 +9,8 @@ importers:
9
9
  .:
10
10
  dependencies:
11
11
  '@adminui-dev/antd-layout':
12
- specifier: ^1.4.3
13
- version: 1.4.3(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)
12
+ specifier: ^1.6.6
13
+ version: 1.6.6(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)
14
14
  '@ant-design/colors':
15
15
  specifier: ^7.2.1
16
16
  version: 7.2.1
@@ -87,8 +87,8 @@ importers:
87
87
 
88
88
  packages:
89
89
 
90
- '@adminui-dev/antd-layout@1.4.3':
91
- resolution: {integrity: sha512-PKqMmd2HGac/UC203620Xf17Ib+ZxfL84W41YV71FHfDKCDtL2Lq3/iNAvXOt/hJgPq8pr3pskrHF+/mYr+4bA==}
90
+ '@adminui-dev/antd-layout@1.6.6':
91
+ resolution: {integrity: sha512-Yxeed9FStNPiz0I1BIHWPUH3QKGo5C23fjumx8d6s4b3Sk1Av8Cqi9e24z0Knh0wj8j/rOYGwDcRfr7BZWMCMQ==}
92
92
  peerDependencies:
93
93
  '@ant-design/colors': '>=7.2.1'
94
94
  antd: '>=6.1.1'
@@ -99,8 +99,8 @@ packages:
99
99
  react-router: '>=7.11.0'
100
100
  react-router-dom: '>=7.11.0'
101
101
 
102
- '@adminui-dev/layout@1.2.4':
103
- resolution: {integrity: sha512-5GET8nnZ7uKqR8cN0xrwpvRqHiDW8fVpU5EWfyqq/mQq41wM575E/4TCmoTJuyel/9zElwTwWidmhv2GE0t44g==}
102
+ '@adminui-dev/layout@1.2.9':
103
+ resolution: {integrity: sha512-z1w2Z8cvIDir6pMhlTZ4S9wc9PQbVaSWnjq3y2XWfCeWIjitykEDb4Ad0CiPjb+gbKFb5JGEw9AIAxvNmXa3CA==}
104
104
  peerDependencies:
105
105
  react: '>=19.2.0'
106
106
  react-dom: '>=19.2.0'
@@ -1613,9 +1613,9 @@ packages:
1613
1613
 
1614
1614
  snapshots:
1615
1615
 
1616
- '@adminui-dev/antd-layout@1.4.3(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)':
1616
+ '@adminui-dev/antd-layout@1.6.6(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)':
1617
1617
  dependencies:
1618
- '@adminui-dev/layout': 1.2.4(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1618
+ '@adminui-dev/layout': 1.2.9(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1619
1619
  '@ant-design/colors': 7.2.1
1620
1620
  antd: 6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1621
1621
  nprogress: 0.2.0
@@ -1626,7 +1626,7 @@ snapshots:
1626
1626
  react-router-dom: 7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1627
1627
  tslib: 2.8.1
1628
1628
 
1629
- '@adminui-dev/layout@1.2.4(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
1629
+ '@adminui-dev/layout@1.2.9(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
1630
1630
  dependencies:
1631
1631
  react: 19.2.3
1632
1632
  react-dom: 19.2.3(react@19.2.3)
@@ -13,5 +13,5 @@
13
13
  }
14
14
 
15
15
  #nprogress .peg {
16
- box-shadow: 0 0 10px #417ffb, 0 0 5px #417ffb !important;
16
+ box-shadow: 0 0 10px var(--pageload-bar-color), 0 0 5px var(--pageload-bar-color) !important;
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { theme, Tag, Flex, Space, Grid, Row, Col, Card, Button, Tooltip, Popover, Typography } from "antd"
2
2
  import styles from "./index.module.css"
3
3
  import type { OperationLog, Project, User } from "@/pages/typings"
4
- import { hexToRgbaString, LazyAvatar, LazyImage, useConfigState } from "@adminui-dev/antd-layout"
4
+ import { LazyAvatar, LazyImage, useConfigState } from "@adminui-dev/antd-layout"
5
5
  import { User2,ArrowUp,ArrowDown,Flag,MoreVertical, Users } from "lucide-react"
6
6
  import type { AppChartOption } from "@/components/AppChart"
7
7
  import AppChart from "@/components/AppChart"
@@ -46,12 +46,11 @@ interface TotalCardProps extends React.HTMLAttributes<HTMLDivElement>{
46
46
  */
47
47
  function WelcomeHeaderPanel(){
48
48
  const { token } = useToken()
49
- const { layoutConfig } = useConfigState()
50
49
  const {xs} = useBreakpoint()
51
50
  const intl = useIntl()
52
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
51
+
53
52
  let headerStyle:React.CSSProperties = {
54
- backgroundColor:bgColor,
53
+ backgroundColor:token.colorBgContainer,
55
54
  padding:token.paddingLG
56
55
  }
57
56
  let itemStyle:React.CSSProperties = {
@@ -136,10 +135,8 @@ function WelcomeHeaderPanel(){
136
135
  */
137
136
  function TotalCard(props:TotalCardProps){
138
137
  const { token } = useToken()
139
- const { layoutConfig } = useConfigState()
140
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
141
138
  const cardStyle:React.CSSProperties = {
142
- backgroundColor:bgColor,
139
+ backgroundColor:token.colorBgContainer,
143
140
  margin:token.marginXS,
144
141
  whiteSpace:"nowrap"
145
142
  }
@@ -356,19 +353,15 @@ const projectMap:Record<string,Project[]>={"en-US": [
356
353
 
357
354
  function ProjectPanel(){
358
355
  const intl = useIntl()
359
- const { token } = useToken()
360
356
  const { locale } = useConfigState()
361
- const { layoutConfig } = useConfigState()
362
357
  let projectData = locale ? projectMap[locale] : projectMap["en-US"]
363
358
  let items:React.ReactNode[]=[]
364
359
  projectData.forEach((item,index)=>{
365
360
  items.push(<ProjectItem project={item} key={index} />)
366
361
  })
367
362
 
368
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
369
-
370
363
  return(
371
- <Card className={styles.projectBox} style={{backgroundColor:bgColor}} title={intl.formatMessage({id:"welcome.project.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>} >
364
+ <Card className={styles.projectBox} title={intl.formatMessage({id:"welcome.project.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>} >
372
365
  {items}
373
366
  </Card>
374
367
  )
@@ -480,31 +473,24 @@ const operationLogMap:Record<string,OperationLog[]> = {
480
473
  */
481
474
  function PaymentChannelPanel(){
482
475
  const intl = useIntl()
483
- const { token } = useToken()
484
- const { layoutConfig } = useConfigState()
485
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
486
-
487
476
  return(
488
- <Card className={styles.projectBox} style={{backgroundColor:bgColor}} title={intl.formatMessage({id:"welcome.playment.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>} >
477
+ <Card className={styles.projectBox} title={intl.formatMessage({id:"welcome.playment.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>} >
489
478
  <AppChart option={paymentChartOption} style={{height:"320px"}} />
490
479
  </Card>
491
480
  )
492
481
  }
493
482
 
494
- function LogsPanel(){
495
- const { token } = useToken()
496
- const { locale } = useConfigState()
497
- const { layoutConfig } = useConfigState()
483
+ function LogsPanel(){
484
+ const { locale } = useConfigState()
498
485
  const {xs} = useBreakpoint()
499
486
  const intl = useIntl()
500
487
  const logsData = locale ? operationLogMap[locale] : operationLogMap["en-US"]
501
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
502
488
  let items:React.ReactNode[]=[]
503
489
  logsData.forEach((item,index)=>{
504
490
  items.push(<LogsItem key={index} log={item} isMobile={xs||false} />)
505
491
  })
506
492
  return(
507
- <Card className={styles.logsCard} style={{backgroundColor:bgColor}} title={intl.formatMessage({id:"welcome.logs.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>}>
493
+ <Card className={styles.logsCard} title={intl.formatMessage({id:"welcome.logs.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>}>
508
494
  {items}
509
495
  </Card>
510
496
  )
@@ -96,9 +96,12 @@ function VistChartDrawer(props:DrawerProps){
96
96
  function SalesReportHeader(){
97
97
  const intl = useIntl()
98
98
  const {xs} = useBreakpoint()
99
+ const {token} = useToken()
99
100
  const boxStyles:React.CSSProperties = {
100
101
  flexWrap:xs ? "wrap" : "inherit",
101
- gap:xs ? "0.5rem" : "0px"
102
+ gap:xs ? "0.5rem" : "0px",
103
+ border:`solid 1px ${token.colorBorderSecondary}`,
104
+ backgroundColor:token.colorBgContainer
102
105
  }
103
106
  const cardStyles:React.CSSProperties = {
104
107
  width:xs? "100%" : "auto",
@@ -276,12 +279,9 @@ const deviceChartOption:AppChartOption = {
276
279
 
277
280
  function SalesOsChart(){
278
281
  const intl = useIntl()
279
- const {token} = useToken()
280
- const {layoutConfig} = useConfigState()
281
282
  const appChart:RefObject<any> = useRef(null)
282
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
283
283
  return(
284
- <Card style={{backgroundColor:bgColor}} title={intl.formatMessage({id:"sales.chart.os.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>}>
284
+ <Card title={intl.formatMessage({id:"sales.chart.os.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>}>
285
285
  <AppChart style={{width:"100%",height:"400px"}} option={osChartOption} ref={appChart} />
286
286
  </Card>
287
287
  )
@@ -289,12 +289,9 @@ function SalesOsChart(){
289
289
 
290
290
  function SalesDeviceChart(){
291
291
  const intl = useIntl()
292
- const {token} = useToken()
293
- const {layoutConfig} = useConfigState()
294
292
  const appChart:RefObject<any> = useRef(null)
295
- const bgColor = layoutConfig.asideBlur || layoutConfig.headerBlur ? hexToRgbaString(token.colorBgContainer,0.6) : token.colorBgContainer
296
293
  return(
297
- <Card style={{backgroundColor:bgColor}} title={intl.formatMessage({id:"sales.chart.device.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>}>
294
+ <Card title={intl.formatMessage({id:"sales.chart.device.title"})} extra={<Tooltip title={intl.formatMessage({id:"global.more"})}><Button type="text" icon={<MoreVertical size={14} />} /></Tooltip>}>
298
295
  <AppChart style={{width:"100%",height:"400px"}} option={deviceChartOption} ref={appChart} />
299
296
  </Card>
300
297
  )
@@ -2,18 +2,18 @@
2
2
  # yarn lockfile v1
3
3
 
4
4
 
5
- "@adminui-dev/antd-layout@^1.4.3":
6
- version "1.4.3"
7
- resolved "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.4.3.tgz"
8
- integrity sha512-PKqMmd2HGac/UC203620Xf17Ib+ZxfL84W41YV71FHfDKCDtL2Lq3/iNAvXOt/hJgPq8pr3pskrHF+/mYr+4bA==
5
+ "@adminui-dev/antd-layout@^1.6.6":
6
+ version "1.6.6"
7
+ resolved "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.6.6.tgz"
8
+ integrity sha512-Yxeed9FStNPiz0I1BIHWPUH3QKGo5C23fjumx8d6s4b3Sk1Av8Cqi9e24z0Knh0wj8j/rOYGwDcRfr7BZWMCMQ==
9
9
  dependencies:
10
- "@adminui-dev/layout" "1.2.4"
10
+ "@adminui-dev/layout" "1.2.9"
11
11
  tslib "^2.6.0"
12
12
 
13
- "@adminui-dev/layout@1.2.4":
14
- version "1.2.4"
15
- resolved "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.4.tgz"
16
- integrity sha512-5GET8nnZ7uKqR8cN0xrwpvRqHiDW8fVpU5EWfyqq/mQq41wM575E/4TCmoTJuyel/9zElwTwWidmhv2GE0t44g==
13
+ "@adminui-dev/layout@1.2.9":
14
+ version "1.2.9"
15
+ resolved "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.9.tgz"
16
+ integrity sha512-z1w2Z8cvIDir6pMhlTZ4S9wc9PQbVaSWnjq3y2XWfCeWIjitykEDb4Ad0CiPjb+gbKFb5JGEw9AIAxvNmXa3CA==
17
17
  dependencies:
18
18
  tslib "^2.6.0"
19
19
 
@@ -8,7 +8,7 @@
8
8
  "name": "adminui-demo-antd-layout-simple",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
- "@adminui-dev/antd-layout": "^1.4.3",
11
+ "@adminui-dev/antd-layout": "^1.6.6",
12
12
  "@ant-design/colors": "^7.2.1",
13
13
  "@ant-design/icons": "^6.1.0",
14
14
  "antd": "^6.1.1",
@@ -36,12 +36,12 @@
36
36
  }
37
37
  },
38
38
  "node_modules/@adminui-dev/antd-layout": {
39
- "version": "1.4.3",
40
- "resolved": "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.4.3.tgz",
41
- "integrity": "sha512-PKqMmd2HGac/UC203620Xf17Ib+ZxfL84W41YV71FHfDKCDtL2Lq3/iNAvXOt/hJgPq8pr3pskrHF+/mYr+4bA==",
39
+ "version": "1.6.6",
40
+ "resolved": "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.6.6.tgz",
41
+ "integrity": "sha512-Yxeed9FStNPiz0I1BIHWPUH3QKGo5C23fjumx8d6s4b3Sk1Av8Cqi9e24z0Knh0wj8j/rOYGwDcRfr7BZWMCMQ==",
42
42
  "license": "MIT",
43
43
  "dependencies": {
44
- "@adminui-dev/layout": "1.2.4",
44
+ "@adminui-dev/layout": "1.2.9",
45
45
  "tslib": "^2.6.0"
46
46
  },
47
47
  "peerDependencies": {
@@ -56,9 +56,9 @@
56
56
  }
57
57
  },
58
58
  "node_modules/@adminui-dev/layout": {
59
- "version": "1.2.4",
60
- "resolved": "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.4.tgz",
61
- "integrity": "sha512-5GET8nnZ7uKqR8cN0xrwpvRqHiDW8fVpU5EWfyqq/mQq41wM575E/4TCmoTJuyel/9zElwTwWidmhv2GE0t44g==",
59
+ "version": "1.2.9",
60
+ "resolved": "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.9.tgz",
61
+ "integrity": "sha512-z1w2Z8cvIDir6pMhlTZ4S9wc9PQbVaSWnjq3y2XWfCeWIjitykEDb4Ad0CiPjb+gbKFb5JGEw9AIAxvNmXa3CA==",
62
62
  "license": "MIT",
63
63
  "dependencies": {
64
64
  "tslib": "^2.6.0"
@@ -10,7 +10,7 @@
10
10
  "preview": "vite preview"
11
11
  },
12
12
  "dependencies": {
13
- "@adminui-dev/antd-layout": "^1.4.3",
13
+ "@adminui-dev/antd-layout": "^1.6.6",
14
14
  "@ant-design/colors": "^7.2.1",
15
15
  "@ant-design/icons": "^6.1.0",
16
16
  "nprogress": "^0.2.0",
@@ -9,8 +9,8 @@ importers:
9
9
  .:
10
10
  dependencies:
11
11
  '@adminui-dev/antd-layout':
12
- specifier: ^1.4.3
13
- version: 1.4.3(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)
12
+ specifier: ^1.6.6
13
+ version: 1.6.6(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)
14
14
  '@ant-design/colors':
15
15
  specifier: ^7.2.1
16
16
  version: 7.2.1
@@ -81,8 +81,8 @@ importers:
81
81
 
82
82
  packages:
83
83
 
84
- '@adminui-dev/antd-layout@1.4.3':
85
- resolution: {integrity: sha512-PKqMmd2HGac/UC203620Xf17Ib+ZxfL84W41YV71FHfDKCDtL2Lq3/iNAvXOt/hJgPq8pr3pskrHF+/mYr+4bA==}
84
+ '@adminui-dev/antd-layout@1.6.6':
85
+ resolution: {integrity: sha512-Yxeed9FStNPiz0I1BIHWPUH3QKGo5C23fjumx8d6s4b3Sk1Av8Cqi9e24z0Knh0wj8j/rOYGwDcRfr7BZWMCMQ==}
86
86
  peerDependencies:
87
87
  '@ant-design/colors': '>=7.2.1'
88
88
  antd: '>=6.1.1'
@@ -93,8 +93,8 @@ packages:
93
93
  react-router: '>=7.11.0'
94
94
  react-router-dom: '>=7.11.0'
95
95
 
96
- '@adminui-dev/layout@1.2.4':
97
- resolution: {integrity: sha512-5GET8nnZ7uKqR8cN0xrwpvRqHiDW8fVpU5EWfyqq/mQq41wM575E/4TCmoTJuyel/9zElwTwWidmhv2GE0t44g==}
96
+ '@adminui-dev/layout@1.2.9':
97
+ resolution: {integrity: sha512-z1w2Z8cvIDir6pMhlTZ4S9wc9PQbVaSWnjq3y2XWfCeWIjitykEDb4Ad0CiPjb+gbKFb5JGEw9AIAxvNmXa3CA==}
98
98
  peerDependencies:
99
99
  react: '>=19.2.0'
100
100
  react-dom: '>=19.2.0'
@@ -1593,9 +1593,9 @@ packages:
1593
1593
 
1594
1594
  snapshots:
1595
1595
 
1596
- '@adminui-dev/antd-layout@1.4.3(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)':
1596
+ '@adminui-dev/antd-layout@1.6.6(@ant-design/colors@7.2.1)(antd@6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(nprogress@0.2.0)(react-dom@19.2.3(react@19.2.3))(react-intl@8.1.1(@types/react@19.2.9)(react@19.2.3)(typescript@5.9.3))(react-router-dom@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-router@7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)':
1597
1597
  dependencies:
1598
- '@adminui-dev/layout': 1.2.4(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1598
+ '@adminui-dev/layout': 1.2.9(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1599
1599
  '@ant-design/colors': 7.2.1
1600
1600
  antd: 6.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1601
1601
  nprogress: 0.2.0
@@ -1606,7 +1606,7 @@ snapshots:
1606
1606
  react-router-dom: 7.12.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
1607
1607
  tslib: 2.8.1
1608
1608
 
1609
- '@adminui-dev/layout@1.2.4(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
1609
+ '@adminui-dev/layout@1.2.9(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
1610
1610
  dependencies:
1611
1611
  react: 19.2.3
1612
1612
  react-dom: 19.2.3(react@19.2.3)
@@ -1,4 +1,5 @@
1
- import { Container, useConfigAction, useConfigState, type AvatarPosition, type LayoutTheme, type LayoutType, type Position, type Theme } from '@adminui-dev/antd-layout';
1
+ import { Container, useConfigAction, useConfigState } from '@adminui-dev/antd-layout';
2
+ import type { AvatarPosition, LayoutType, Position, Theme } from '@adminui-dev/antd-layout';
2
3
  import { Segmented, Switch, theme } from 'antd';
3
4
 
4
5
  const {useToken} = theme
@@ -33,7 +34,7 @@ export default function(){
33
34
  const { token } = useToken()
34
35
  const { setLayoutConfig } = useConfigAction()
35
36
  const { layoutConfig } = useConfigState()
36
-
37
+
37
38
  const data:ConfigData[]=[
38
39
  {title:"Theme",element:(<Segmented options={["light","dark","system"]} defaultValue={layoutConfig.theme} value={layoutConfig.theme} onChange={(e)=>{setLayoutConfig({...layoutConfig,theme: e as Theme})}} />)},
39
40
  {title:"Layout type",element:(<Segmented options={["leftMenu","headMenu"]} defaultValue={layoutConfig.layoutType} value={layoutConfig.layoutType} onChange={(e)=>{setLayoutConfig({...layoutConfig,layoutType: e as LayoutType})}} />)},
@@ -2,18 +2,18 @@
2
2
  # yarn lockfile v1
3
3
 
4
4
 
5
- "@adminui-dev/antd-layout@^1.4.3":
6
- version "1.4.3"
7
- resolved "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.4.3.tgz"
8
- integrity sha512-PKqMmd2HGac/UC203620Xf17Ib+ZxfL84W41YV71FHfDKCDtL2Lq3/iNAvXOt/hJgPq8pr3pskrHF+/mYr+4bA==
5
+ "@adminui-dev/antd-layout@^1.6.6":
6
+ version "1.6.6"
7
+ resolved "https://registry.npmjs.org/@adminui-dev/antd-layout/-/antd-layout-1.6.6.tgz"
8
+ integrity sha512-Yxeed9FStNPiz0I1BIHWPUH3QKGo5C23fjumx8d6s4b3Sk1Av8Cqi9e24z0Knh0wj8j/rOYGwDcRfr7BZWMCMQ==
9
9
  dependencies:
10
- "@adminui-dev/layout" "1.2.4"
10
+ "@adminui-dev/layout" "1.2.9"
11
11
  tslib "^2.6.0"
12
12
 
13
- "@adminui-dev/layout@1.2.4":
14
- version "1.2.4"
15
- resolved "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.4.tgz"
16
- integrity sha512-5GET8nnZ7uKqR8cN0xrwpvRqHiDW8fVpU5EWfyqq/mQq41wM575E/4TCmoTJuyel/9zElwTwWidmhv2GE0t44g==
13
+ "@adminui-dev/layout@1.2.9":
14
+ version "1.2.9"
15
+ resolved "https://registry.npmjs.org/@adminui-dev/layout/-/layout-1.2.9.tgz"
16
+ integrity sha512-z1w2Z8cvIDir6pMhlTZ4S9wc9PQbVaSWnjq3y2XWfCeWIjitykEDb4Ad0CiPjb+gbKFb5JGEw9AIAxvNmXa3CA==
17
17
  dependencies:
18
18
  tslib "^2.6.0"
19
19