@akinon/ui-breadcrumb 1.0.0 → 1.0.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU,UAAW,eAAe,sBAgGhD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU,UAAW,eAAe,sBAiGhD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -27,6 +27,7 @@ const Breadcrumb = (props) => {
27
27
  }, () => {
28
28
  const prefixCls = `:where(.${hashId}).${getPrefixCls()}-breadcrumb`;
29
29
  const prefixClsWithoutHash = `.${getPrefixCls()}-breadcrumb`;
30
+ const customTokens = theme.CustomTokens || {};
30
31
  return {
31
32
  [prefixCls]: {
32
33
  paddingBottom: breadcrumbToken.paddingBottom,
@@ -44,23 +45,23 @@ const Breadcrumb = (props) => {
44
45
  paddingRight: breadcrumbToken.paddingRight,
45
46
  [`li ${prefixClsWithoutHash}-link`]: {
46
47
  ['&:hover']: {
47
- cursor: 'pointer'
48
+ cursor: customTokens.others.cursorPointer
48
49
  }
49
50
  },
50
51
  [`li:last-child ${prefixClsWithoutHash}-link`]: {
51
52
  ['&:hover']: {
52
- cursor: 'unset'
53
+ cursor: customTokens.others.valueUnset
53
54
  }
54
55
  },
55
56
  ['a']: {
56
57
  color: breadcrumbToken.itemColor,
57
- paddingLeft: 0,
58
- paddingRight: 0,
59
- marginInline: breadcrumbToken.marginInline,
60
- height: breadcrumbToken.height,
58
+ paddingLeft: customTokens.sizing.valueZero,
59
+ paddingRight: customTokens.sizing.valueZero,
60
+ marginInline: customTokens.sizing.valueZero,
61
+ height: customTokens.sizing.valueAuto,
61
62
  ['&:hover']: {
62
- color: 'unset',
63
- backgroundColor: 'unset'
63
+ color: customTokens.others.valueUnset,
64
+ backgroundColor: customTokens.others.valueUnset
64
65
  }
65
66
  },
66
67
  [`${prefixClsWithoutHash}-separator`]: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU,UAAW,eAAe,sBAgGhD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU,UAAW,eAAe,sBAiGhD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
package/dist/esm/index.js CHANGED
@@ -24,6 +24,7 @@ export const Breadcrumb = (props) => {
24
24
  }, () => {
25
25
  const prefixCls = `:where(.${hashId}).${getPrefixCls()}-breadcrumb`;
26
26
  const prefixClsWithoutHash = `.${getPrefixCls()}-breadcrumb`;
27
+ const customTokens = theme.CustomTokens || {};
27
28
  return {
28
29
  [prefixCls]: {
29
30
  paddingBottom: breadcrumbToken.paddingBottom,
@@ -41,23 +42,23 @@ export const Breadcrumb = (props) => {
41
42
  paddingRight: breadcrumbToken.paddingRight,
42
43
  [`li ${prefixClsWithoutHash}-link`]: {
43
44
  ['&:hover']: {
44
- cursor: 'pointer'
45
+ cursor: customTokens.others.cursorPointer
45
46
  }
46
47
  },
47
48
  [`li:last-child ${prefixClsWithoutHash}-link`]: {
48
49
  ['&:hover']: {
49
- cursor: 'unset'
50
+ cursor: customTokens.others.valueUnset
50
51
  }
51
52
  },
52
53
  ['a']: {
53
54
  color: breadcrumbToken.itemColor,
54
- paddingLeft: 0,
55
- paddingRight: 0,
56
- marginInline: breadcrumbToken.marginInline,
57
- height: breadcrumbToken.height,
55
+ paddingLeft: customTokens.sizing.valueZero,
56
+ paddingRight: customTokens.sizing.valueZero,
57
+ marginInline: customTokens.sizing.valueZero,
58
+ height: customTokens.sizing.valueAuto,
58
59
  ['&:hover']: {
59
- color: 'unset',
60
- backgroundColor: 'unset'
60
+ color: customTokens.others.valueUnset,
61
+ backgroundColor: customTokens.others.valueUnset
61
62
  }
62
63
  },
63
64
  [`${prefixClsWithoutHash}-separator`]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-breadcrumb",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "A basic button react component.",
6
6
  "type": "module",
@@ -11,14 +11,14 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "antd": "5.22.6",
14
- "@akinon/ui-theme": "1.0.0"
14
+ "@akinon/ui-theme": "1.0.1"
15
15
  },
16
16
  "devDependencies": {
17
17
  "clean-package": "2.2.0",
18
18
  "copyfiles": "^2.4.1",
19
19
  "rimraf": "^5.0.5",
20
20
  "typescript": "*",
21
- "@akinon/typescript-config": "1.0.0"
21
+ "@akinon/typescript-config": "1.0.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=18",