naive-ui 2.22.0 → 2.23.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.
Files changed (84) hide show
  1. package/es/_internal/scrollbar/src/ScrollBar.d.ts +0 -11
  2. package/es/_internal/scrollbar/src/ScrollBar.js +5 -8
  3. package/es/badge/src/Badge.d.ts +6 -6
  4. package/es/badge/src/Badge.js +6 -6
  5. package/es/badge/src/styles/index.cssr.js +15 -15
  6. package/es/button/src/Button.d.ts +10 -5
  7. package/es/button/src/Button.js +21 -14
  8. package/es/data-table/src/TableParts/Body.js +1 -1
  9. package/es/dialog/src/Dialog.js +2 -2
  10. package/es/divider/src/Divider.d.ts +4 -4
  11. package/es/divider/src/Divider.js +4 -4
  12. package/es/divider/src/styles/index.cssr.js +12 -12
  13. package/es/input-number/src/utils.js +1 -1
  14. package/es/switch/src/Switch.js +7 -0
  15. package/es/switch/src/styles/index.cssr.js +2 -0
  16. package/es/typography/src/a.d.ts +2 -2
  17. package/es/typography/src/a.js +2 -2
  18. package/es/typography/src/blockquote.d.ts +5 -5
  19. package/es/typography/src/blockquote.js +5 -5
  20. package/es/typography/src/create-header.d.ts +8 -8
  21. package/es/typography/src/create-header.js +8 -8
  22. package/es/typography/src/headers.d.ts +48 -48
  23. package/es/typography/src/hr.d.ts +2 -1
  24. package/es/typography/src/hr.js +3 -1
  25. package/es/typography/src/ol.d.ts +7 -7
  26. package/es/typography/src/ol.js +7 -7
  27. package/es/typography/src/p.d.ts +5 -5
  28. package/es/typography/src/p.js +5 -5
  29. package/es/typography/src/styles/a.cssr.js +6 -6
  30. package/es/typography/src/styles/blockquote.cssr.js +11 -11
  31. package/es/typography/src/styles/header.cssr.js +19 -19
  32. package/es/typography/src/styles/hr.cssr.js +3 -3
  33. package/es/typography/src/styles/list.cssr.js +15 -15
  34. package/es/typography/src/styles/p.cssr.js +10 -10
  35. package/es/typography/src/styles/text.cssr.js +18 -18
  36. package/es/typography/src/text.d.ts +8 -7
  37. package/es/typography/src/text.js +9 -8
  38. package/es/typography/src/ul.d.ts +7 -7
  39. package/es/typography/src/ul.js +7 -7
  40. package/es/version.d.ts +1 -1
  41. package/es/version.js +1 -1
  42. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +0 -11
  43. package/lib/_internal/scrollbar/src/ScrollBar.js +5 -8
  44. package/lib/badge/src/Badge.d.ts +6 -6
  45. package/lib/badge/src/Badge.js +6 -6
  46. package/lib/badge/src/styles/index.cssr.js +15 -15
  47. package/lib/button/src/Button.d.ts +10 -5
  48. package/lib/button/src/Button.js +20 -13
  49. package/lib/data-table/src/TableParts/Body.js +1 -1
  50. package/lib/dialog/src/Dialog.js +2 -2
  51. package/lib/divider/src/Divider.d.ts +4 -4
  52. package/lib/divider/src/Divider.js +4 -4
  53. package/lib/divider/src/styles/index.cssr.js +12 -12
  54. package/lib/input-number/src/utils.js +1 -1
  55. package/lib/switch/src/Switch.js +7 -0
  56. package/lib/switch/src/styles/index.cssr.js +2 -0
  57. package/lib/typography/src/a.d.ts +2 -2
  58. package/lib/typography/src/a.js +2 -2
  59. package/lib/typography/src/blockquote.d.ts +5 -5
  60. package/lib/typography/src/blockquote.js +5 -5
  61. package/lib/typography/src/create-header.d.ts +8 -8
  62. package/lib/typography/src/create-header.js +8 -8
  63. package/lib/typography/src/headers.d.ts +48 -48
  64. package/lib/typography/src/hr.d.ts +2 -1
  65. package/lib/typography/src/hr.js +3 -1
  66. package/lib/typography/src/ol.d.ts +7 -7
  67. package/lib/typography/src/ol.js +7 -7
  68. package/lib/typography/src/p.d.ts +5 -5
  69. package/lib/typography/src/p.js +5 -5
  70. package/lib/typography/src/styles/a.cssr.js +6 -6
  71. package/lib/typography/src/styles/blockquote.cssr.js +11 -11
  72. package/lib/typography/src/styles/header.cssr.js +19 -19
  73. package/lib/typography/src/styles/hr.cssr.js +3 -3
  74. package/lib/typography/src/styles/list.cssr.js +15 -15
  75. package/lib/typography/src/styles/p.cssr.js +10 -10
  76. package/lib/typography/src/styles/text.cssr.js +18 -18
  77. package/lib/typography/src/text.d.ts +8 -7
  78. package/lib/typography/src/text.js +9 -8
  79. package/lib/typography/src/ul.d.ts +7 -7
  80. package/lib/typography/src/ul.js +7 -7
  81. package/lib/version.d.ts +1 -1
  82. package/lib/version.js +1 -1
  83. package/package.json +2 -2
  84. package/web-types.json +1 -1
@@ -206,14 +206,14 @@ export declare const NH1: import("vue").DefineComponent<{
206
206
  }, {
207
207
  mergedClsPrefix: import("vue").ComputedRef<string>;
208
208
  cssVars: import("vue").ComputedRef<{
209
- '--bezier': string;
210
- '--font-size': string;
211
- '--margin': string;
212
- '--bar-color': string;
213
- '--bar-width': string;
214
- '--font-weight': string;
215
- '--text-color': string;
216
- '--prefix-width': string;
209
+ '--n-bezier': string;
210
+ '--n-font-size': string;
211
+ '--n-margin': string;
212
+ '--n-bar-color': string;
213
+ '--n-bar-width': string;
214
+ '--n-font-weight': string;
215
+ '--n-text-color': string;
216
+ '--n-prefix-width': string;
217
217
  }>;
218
218
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
219
219
  readonly type?: unknown;
@@ -637,14 +637,14 @@ export declare const NH2: import("vue").DefineComponent<{
637
637
  }, {
638
638
  mergedClsPrefix: import("vue").ComputedRef<string>;
639
639
  cssVars: import("vue").ComputedRef<{
640
- '--bezier': string;
641
- '--font-size': string;
642
- '--margin': string;
643
- '--bar-color': string;
644
- '--bar-width': string;
645
- '--font-weight': string;
646
- '--text-color': string;
647
- '--prefix-width': string;
640
+ '--n-bezier': string;
641
+ '--n-font-size': string;
642
+ '--n-margin': string;
643
+ '--n-bar-color': string;
644
+ '--n-bar-width': string;
645
+ '--n-font-weight': string;
646
+ '--n-text-color': string;
647
+ '--n-prefix-width': string;
648
648
  }>;
649
649
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
650
650
  readonly type?: unknown;
@@ -1068,14 +1068,14 @@ export declare const NH3: import("vue").DefineComponent<{
1068
1068
  }, {
1069
1069
  mergedClsPrefix: import("vue").ComputedRef<string>;
1070
1070
  cssVars: import("vue").ComputedRef<{
1071
- '--bezier': string;
1072
- '--font-size': string;
1073
- '--margin': string;
1074
- '--bar-color': string;
1075
- '--bar-width': string;
1076
- '--font-weight': string;
1077
- '--text-color': string;
1078
- '--prefix-width': string;
1071
+ '--n-bezier': string;
1072
+ '--n-font-size': string;
1073
+ '--n-margin': string;
1074
+ '--n-bar-color': string;
1075
+ '--n-bar-width': string;
1076
+ '--n-font-weight': string;
1077
+ '--n-text-color': string;
1078
+ '--n-prefix-width': string;
1079
1079
  }>;
1080
1080
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
1081
1081
  readonly type?: unknown;
@@ -1499,14 +1499,14 @@ export declare const NH4: import("vue").DefineComponent<{
1499
1499
  }, {
1500
1500
  mergedClsPrefix: import("vue").ComputedRef<string>;
1501
1501
  cssVars: import("vue").ComputedRef<{
1502
- '--bezier': string;
1503
- '--font-size': string;
1504
- '--margin': string;
1505
- '--bar-color': string;
1506
- '--bar-width': string;
1507
- '--font-weight': string;
1508
- '--text-color': string;
1509
- '--prefix-width': string;
1502
+ '--n-bezier': string;
1503
+ '--n-font-size': string;
1504
+ '--n-margin': string;
1505
+ '--n-bar-color': string;
1506
+ '--n-bar-width': string;
1507
+ '--n-font-weight': string;
1508
+ '--n-text-color': string;
1509
+ '--n-prefix-width': string;
1510
1510
  }>;
1511
1511
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
1512
1512
  readonly type?: unknown;
@@ -1930,14 +1930,14 @@ export declare const NH5: import("vue").DefineComponent<{
1930
1930
  }, {
1931
1931
  mergedClsPrefix: import("vue").ComputedRef<string>;
1932
1932
  cssVars: import("vue").ComputedRef<{
1933
- '--bezier': string;
1934
- '--font-size': string;
1935
- '--margin': string;
1936
- '--bar-color': string;
1937
- '--bar-width': string;
1938
- '--font-weight': string;
1939
- '--text-color': string;
1940
- '--prefix-width': string;
1933
+ '--n-bezier': string;
1934
+ '--n-font-size': string;
1935
+ '--n-margin': string;
1936
+ '--n-bar-color': string;
1937
+ '--n-bar-width': string;
1938
+ '--n-font-weight': string;
1939
+ '--n-text-color': string;
1940
+ '--n-prefix-width': string;
1941
1941
  }>;
1942
1942
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
1943
1943
  readonly type?: unknown;
@@ -2361,14 +2361,14 @@ export declare const NH6: import("vue").DefineComponent<{
2361
2361
  }, {
2362
2362
  mergedClsPrefix: import("vue").ComputedRef<string>;
2363
2363
  cssVars: import("vue").ComputedRef<{
2364
- '--bezier': string;
2365
- '--font-size': string;
2366
- '--margin': string;
2367
- '--bar-color': string;
2368
- '--bar-width': string;
2369
- '--font-weight': string;
2370
- '--text-color': string;
2371
- '--prefix-width': string;
2364
+ '--n-bezier': string;
2365
+ '--n-font-size': string;
2366
+ '--n-margin': string;
2367
+ '--n-bar-color': string;
2368
+ '--n-bar-width': string;
2369
+ '--n-font-weight': string;
2370
+ '--n-text-color': string;
2371
+ '--n-prefix-width': string;
2372
2372
  }>;
2373
2373
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
2374
2374
  readonly type?: unknown;
@@ -200,7 +200,8 @@ declare const _default: import("vue").DefineComponent<{
200
200
  }, {
201
201
  mergedClsPrefix: import("vue").ComputedRef<string>;
202
202
  cssVars: import("vue").ComputedRef<{
203
- '--color': string;
203
+ '--n-bezier': string;
204
+ '--n-color': string;
204
205
  }>;
205
206
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
206
207
  theme?: unknown;
@@ -11,8 +11,10 @@ export default defineComponent({
11
11
  return {
12
12
  mergedClsPrefix: mergedClsPrefixRef,
13
13
  cssVars: computed(() => {
14
+ const { common: { cubicBezierEaseInOut }, self: { hrColor } } = themeRef.value;
14
15
  return {
15
- '--color': themeRef.value.self.hrColor
16
+ '--n-bezier': cubicBezierEaseInOut,
17
+ '--n-color': hrColor
16
18
  };
17
19
  })
18
20
  };
@@ -404,13 +404,13 @@ declare const _default: import("vue").DefineComponent<{
404
404
  }, {
405
405
  mergedClsPrefix: import("vue").ComputedRef<string>;
406
406
  cssVars: import("vue").ComputedRef<{
407
- '--bezier': string;
408
- '--font-size': string;
409
- '--line-height': string;
410
- '--text-color': string;
411
- '--li-margin': string;
412
- '--ol-padding': string;
413
- '--ul-padding': string;
407
+ '--n-bezier': string;
408
+ '--n-font-size': string;
409
+ '--n-line-height': string;
410
+ '--n-text-color': string;
411
+ '--n-li-margin': string;
412
+ '--n-ol-padding': string;
413
+ '--n-ul-padding': string;
414
414
  }>;
415
415
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
416
416
  alignText?: unknown;
@@ -14,13 +14,13 @@ export default defineComponent({
14
14
  cssVars: computed(() => {
15
15
  const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
16
16
  return {
17
- '--bezier': cubicBezierEaseInOut,
18
- '--font-size': liFontSize,
19
- '--line-height': liLineHeight,
20
- '--text-color': liTextColor,
21
- '--li-margin': liMargin,
22
- '--ol-padding': olPadding,
23
- '--ul-padding': ulPadding
17
+ '--n-bezier': cubicBezierEaseInOut,
18
+ '--n-font-size': liFontSize,
19
+ '--n-line-height': liLineHeight,
20
+ '--n-text-color': liTextColor,
21
+ '--n-li-margin': liMargin,
22
+ '--n-ol-padding': olPadding,
23
+ '--n-ul-padding': ulPadding
24
24
  };
25
25
  })
26
26
  };
@@ -405,11 +405,11 @@ declare const _default: import("vue").DefineComponent<{
405
405
  }, {
406
406
  mergedClsPrefix: import("vue").ComputedRef<string>;
407
407
  cssVars: import("vue").ComputedRef<{
408
- '--bezier': string;
409
- '--font-size': string;
410
- '--line-height': string;
411
- '--margin': string;
412
- '--text-color': string;
408
+ '--n-bezier': string;
409
+ '--n-font-size': string;
410
+ '--n-line-height': string;
411
+ '--n-margin': string;
412
+ '--n-text-color': string;
413
413
  }>;
414
414
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
415
415
  depth?: unknown;
@@ -16,11 +16,11 @@ export default defineComponent({
16
16
  const typeSafeDepth = depth || '1';
17
17
  const { common: { cubicBezierEaseInOut }, self: { pFontSize, pLineHeight, pMargin, pTextColor, [`pTextColor${typeSafeDepth}Depth`]: depthTextColor } } = themeRef.value;
18
18
  return {
19
- '--bezier': cubicBezierEaseInOut,
20
- '--font-size': pFontSize,
21
- '--line-height': pLineHeight,
22
- '--margin': pMargin,
23
- '--text-color': depth === undefined ? pTextColor : depthTextColor
19
+ '--n-bezier': cubicBezierEaseInOut,
20
+ '--n-font-size': pFontSize,
21
+ '--n-line-height': pLineHeight,
22
+ '--n-margin': pMargin,
23
+ '--n-text-color': depth === undefined ? pTextColor : depthTextColor
24
24
  };
25
25
  })
26
26
  };
@@ -1,12 +1,12 @@
1
1
  import { cB } from '../../../_utils/cssr'; // vars:
2
- // --text-color
3
- // --bezier
2
+ // --n-text-color
3
+ // --n-bezier
4
4
 
5
5
  export default cB('a', `
6
6
  cursor: pointer;
7
7
  transition:
8
- color .3s var(--bezier),
9
- text-decoration-color .3s var(--bezier);
10
- text-decoration-color: var(--text-color);
11
- color: var(--text-color);
8
+ color .3s var(--n-bezier),
9
+ text-decoration-color .3s var(--n-bezier);
10
+ text-decoration-color: var(--n-text-color);
11
+ color: var(--n-text-color);
12
12
  `);
@@ -1,23 +1,23 @@
1
1
  import { c, cB, cM } from '../../../_utils/cssr'; // vars:
2
- // --bezier
3
- // --font-size
4
- // --line-height
5
- // --prefix-color
6
- // --text-color
2
+ // --n-bezier
3
+ // --n-font-size
4
+ // --n-line-height
5
+ // --n-prefix-color
6
+ // --n-text-color
7
7
 
8
8
  export default cB('blockquote', `
9
- font-size: var(--font-size);
10
- line-height: var(--line-height);
9
+ font-size: var(--n-font-size);
10
+ line-height: var(--n-line-height);
11
11
  margin: 0;
12
12
  margin-top: 12px;
13
13
  margin-bottom: 12px;
14
14
  box-sizing: border-box;
15
15
  padding-left: 12px;
16
- border-left: 4px solid var(--prefix-color);
17
- color: var(--text-color);
16
+ border-left: 4px solid var(--n-prefix-color);
17
+ color: var(--n-text-color);
18
18
  transition:
19
- color .3s var(--bezier),
20
- border-color .3s var(--bezier);
19
+ color .3s var(--n-bezier),
20
+ border-color .3s var(--n-bezier);
21
21
  `, [c('&:first-child', {
22
22
  marginTop: 0
23
23
  }), c('&:last-child', {
@@ -1,37 +1,37 @@
1
1
  import { c, cB, cM } from '../../../_utils/cssr'; // vars:
2
- // --bezier
3
- // --font-size
4
- // --margin
5
- // --bar-color
6
- // --bar-width
7
- // --font-weight
8
- // --text-color
9
- // --prefix-width
2
+ // --n-bezier
3
+ // --n-font-size
4
+ // --n-margin
5
+ // --n-bar-color
6
+ // --n-bar-width
7
+ // --n-font-weight
8
+ // --n-text-color
9
+ // --n-prefix-width
10
10
 
11
11
  export default cB('h', `
12
- font-size: var(--font-size);
13
- font-weight: var(--font-weight);
14
- margin: var(--margin);
15
- transition: color .3s var(--bezier);
16
- color: var(--text-color);
12
+ font-size: var(--n-font-size);
13
+ font-weight: var(--n-font-weight);
14
+ margin: var(--n-margin);
15
+ transition: color .3s var(--n-bezier);
16
+ color: var(--n-text-color);
17
17
  `, [c('&:first-child', {
18
18
  marginTop: 0
19
19
  }), cM('prefix-bar', {
20
20
  position: 'relative',
21
- paddingLeft: 'var(--prefix-width)'
21
+ paddingLeft: 'var(--n-prefix-width)'
22
22
  }, [cM('align-text', {
23
23
  paddingLeft: 0
24
24
  }, [c('&::before', {
25
- left: 'calc(-1 * var(--prefix-width))'
25
+ left: 'calc(-1 * var(--n-prefix-width))'
26
26
  })]), c('&::before', `
27
27
  content: "";
28
- width: var(--bar-width);
29
- border-radius: calc(var(--bar-width) / 2);
30
- transition: background-color .3s var(--bezier);
28
+ width: var(--n-bar-width);
29
+ border-radius: calc(var(--n-bar-width) / 2);
30
+ transition: background-color .3s var(--n-bezier);
31
31
  left: 0;
32
32
  top: 0;
33
33
  bottom: 0;
34
34
  position: absolute;
35
35
  `), c('&::before', {
36
- backgroundColor: 'var(--bar-color)'
36
+ backgroundColor: 'var(--n-bar-color)'
37
37
  })])]);
@@ -1,11 +1,11 @@
1
1
  import { cB } from '../../../_utils/cssr'; // vars:
2
- // --color
2
+ // --n-color
3
3
 
4
4
  export default cB('hr', `
5
5
  margin: 12px 0;
6
- transition: border-color .3s var(--bezier);
6
+ transition: border-color .3s var(--n-bezier);
7
7
  border-left: none;
8
8
  border-right: none;
9
9
  border-bottom: none;
10
- border-top: 1px solid var(--color);
10
+ border-top: 1px solid var(--n-color);
11
11
  `);
@@ -1,32 +1,32 @@
1
1
  import { c, cB, cM } from '../../../_utils/cssr';
2
2
  const liStyle = c('li', {
3
- transition: 'color .3s var(--bezier)',
4
- lineHeight: 'var(--line-height)',
5
- margin: 'var(--li-margin)',
3
+ transition: 'color .3s var(--n-bezier)',
4
+ lineHeight: 'var(--n-line-height)',
5
+ margin: 'var(--n-li-margin)',
6
6
  marginBottom: 0,
7
- color: 'var(--text-color)'
7
+ color: 'var(--n-text-color)'
8
8
  });
9
9
  const childStyle = [c('&:first-child', `
10
10
  margin-top: 0;
11
11
  `), c('&:last-child', `
12
12
  margin-bottom: 0;
13
13
  `)]; // vars:
14
- // --bezier
15
- // --font-size
16
- // --line-height
17
- // --text-color
18
- // --li-margin
19
- // --ol-padding
20
- // --ul-padding
14
+ // --n-bezier
15
+ // --n-font-size
16
+ // --n-line-height
17
+ // --n-text-color
18
+ // --n-li-margin
19
+ // --n-ol-padding
20
+ // --n-ul-padding
21
21
 
22
22
  export default c([cB('ol', {
23
- fontSize: 'var(--font-size)',
24
- padding: 'var(--ol-padding)'
23
+ fontSize: 'var(--n-font-size)',
24
+ padding: 'var(--n-ol-padding)'
25
25
  }, [cM('align-text', {
26
26
  paddingLeft: 0
27
27
  }), liStyle, childStyle]), cB('ul', {
28
- fontSize: 'var(--font-size)',
29
- padding: 'var(--ul-padding)'
28
+ fontSize: 'var(--n-font-size)',
29
+ padding: 'var(--n-ul-padding)'
30
30
  }, [cM('align-text', {
31
31
  paddingLeft: 0
32
32
  }), liStyle, childStyle])]);
@@ -1,15 +1,15 @@
1
1
  import { c, cB } from '../../../_utils/cssr'; // vars:
2
- // --bezier
3
- // --font-size
4
- // --line-height
5
- // --margin
6
- // --text-color
2
+ // --n-bezier
3
+ // --n-font-size
4
+ // --n-line-height
5
+ // --n-margin
6
+ // --n-text-color
7
7
 
8
8
  export default cB('p', `
9
9
  box-sizing: border-box;
10
- transition: color .3s var(--bezier);
11
- margin: var(--margin);
12
- font-size: var(--font-size);
13
- line-height: var(--line-height);
14
- color: var(--text-color);
10
+ transition: color .3s var(--n-bezier);
11
+ margin: var(--n-margin);
12
+ font-size: var(--n-font-size);
13
+ line-height: var(--n-line-height);
14
+ color: var(--n-text-color);
15
15
  `, [c('&:first-child', 'margin-top: 0;'), c('&:last-child', 'margin-bottom: 0;')]);
@@ -1,17 +1,17 @@
1
1
  import { cB, cM } from '../../../_utils/cssr'; // vars:
2
- // --text-color
3
- // --font-weight-strong
4
- // --font-famliy-mono
5
- // --code-border-radius
6
- // --code-text-color
7
- // --code-color
8
- // --code-border
2
+ // --n-text-color
3
+ // --n-font-weight-strong
4
+ // --n-font-famliy-mono
5
+ // --n-code-border-radius
6
+ // --n-code-text-color
7
+ // --n-code-color
8
+ // --n-code-border
9
9
 
10
10
  export default cB('text', `
11
- transition: color .3s var(--bezier);
12
- color: var(--text-color);
11
+ transition: color .3s var(--n-bezier);
12
+ color: var(--n-text-color);
13
13
  `, [cM('strong', `
14
- font-weight: var(--font-weight-strong);
14
+ font-weight: var(--n-font-weight-strong);
15
15
  `), cM('italic', {
16
16
  fontStyle: 'italic'
17
17
  }), cM('underline', {
@@ -19,16 +19,16 @@ export default cB('text', `
19
19
  }), cM('code', `
20
20
  line-height: 1.4;
21
21
  display: inline-block;
22
- font-family: var(--font-famliy-mono);
22
+ font-family: var(--n-font-famliy-mono);
23
23
  transition:
24
- color .3s var(--bezier),
25
- border-color .3s var(--bezier),
26
- background-color .3s var(--bezier);
24
+ color .3s var(--n-bezier),
25
+ border-color .3s var(--n-bezier),
26
+ background-color .3s var(--n-bezier);
27
27
  box-sizing: border-box;
28
28
  padding: .05em .35em 0 .35em;
29
- border-radius: var(--code-border-radius);
29
+ border-radius: var(--n-code-border-radius);
30
30
  font-size: .9em;
31
- color: var(--code-text-color);
32
- background-color: var(--code-color);
33
- border: var(--code-border);
31
+ color: var(--n-code-text-color);
32
+ background-color: var(--n-code-color);
33
+ border: var(--n-code-border);
34
34
  `)]);
@@ -436,13 +436,14 @@ declare const _default: import("vue").DefineComponent<{
436
436
  mergedClsPrefix: import("vue").ComputedRef<string>;
437
437
  compitableTag: import("vue").ComputedRef<string | undefined>;
438
438
  cssVars: import("vue").ComputedRef<{
439
- '--text-color': string;
440
- '--font-weight-strong': string;
441
- '--font-famliy-mono': string;
442
- '--code-border-radius': string;
443
- '--code-text-color': string;
444
- '--code-color': string;
445
- '--code-border': string;
439
+ '--n-bezier': string;
440
+ '--n-text-color': string;
441
+ '--n-font-weight-strong': string;
442
+ '--n-font-famliy-mono': string;
443
+ '--n-code-border-radius': string;
444
+ '--n-code-text-color': string;
445
+ '--n-code-color': string;
446
+ '--n-code-border': string;
446
447
  }>;
447
448
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
448
449
  readonly code?: unknown;
@@ -35,15 +35,16 @@ export default defineComponent({
35
35
  ? 'textColor'
36
36
  : `textColor${depth}Depth`
37
37
  : createKey('textColor', type);
38
- const { common: { fontWeightStrong, fontFamilyMono }, self: { codeTextColor, codeBorderRadius, codeColor, codeBorder, [textColorKey]: textColor } } = themeRef.value;
38
+ const { common: { fontWeightStrong, fontFamilyMono, cubicBezierEaseInOut }, self: { codeTextColor, codeBorderRadius, codeColor, codeBorder, [textColorKey]: textColor } } = themeRef.value;
39
39
  return {
40
- '--text-color': textColor,
41
- '--font-weight-strong': fontWeightStrong,
42
- '--font-famliy-mono': fontFamilyMono,
43
- '--code-border-radius': codeBorderRadius,
44
- '--code-text-color': codeTextColor,
45
- '--code-color': codeColor,
46
- '--code-border': codeBorder
40
+ '--n-bezier': cubicBezierEaseInOut,
41
+ '--n-text-color': textColor,
42
+ '--n-font-weight-strong': fontWeightStrong,
43
+ '--n-font-famliy-mono': fontFamilyMono,
44
+ '--n-code-border-radius': codeBorderRadius,
45
+ '--n-code-text-color': codeTextColor,
46
+ '--n-code-color': codeColor,
47
+ '--n-code-border': codeBorder
47
48
  };
48
49
  })
49
50
  };
@@ -404,13 +404,13 @@ declare const _default: import("vue").DefineComponent<{
404
404
  }, {
405
405
  mergedClsPrefix: import("vue").ComputedRef<string>;
406
406
  cssVars: import("vue").ComputedRef<{
407
- '--bezier': string;
408
- '--font-size': string;
409
- '--line-height': string;
410
- '--text-color': string;
411
- '--li-margin': string;
412
- '--ol-padding': string;
413
- '--ul-padding': string;
407
+ '--n-bezier': string;
408
+ '--n-font-size': string;
409
+ '--n-line-height': string;
410
+ '--n-text-color': string;
411
+ '--n-li-margin': string;
412
+ '--n-ol-padding': string;
413
+ '--n-ul-padding': string;
414
414
  }>;
415
415
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
416
416
  readonly alignText?: unknown;
@@ -14,13 +14,13 @@ export default defineComponent({
14
14
  cssVars: computed(() => {
15
15
  const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
16
16
  return {
17
- '--bezier': cubicBezierEaseInOut,
18
- '--font-size': liFontSize,
19
- '--line-height': liLineHeight,
20
- '--text-color': liTextColor,
21
- '--li-margin': liMargin,
22
- '--ol-padding': olPadding,
23
- '--ul-padding': ulPadding
17
+ '--n-bezier': cubicBezierEaseInOut,
18
+ '--n-font-size': liFontSize,
19
+ '--n-line-height': liLineHeight,
20
+ '--n-text-color': liTextColor,
21
+ '--n-li-margin': liMargin,
22
+ '--n-ol-padding': olPadding,
23
+ '--n-ul-padding': ulPadding
24
24
  };
25
25
  })
26
26
  };
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.22.0";
1
+ declare const _default: "2.23.0";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '2.22.0';
1
+ export default '2.23.0';