@nuskin/foundation-ui-components 1.22.3 → 1.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from '@nuskin/foundation-theme';
|
|
2
2
|
|
|
3
|
-
import { AccordionVariant, AccordionVariantType, NsAccordionHeaderProps, NsIcon, NsIconProps, NsTypography } from '
|
|
3
|
+
import { AccordionVariant, AccordionVariantType, NsAccordionHeaderProps, NsIcon, NsIconProps, NsTypography } from '../';
|
|
4
4
|
import { isValidIconName } from '../icon/NsIconVariants';
|
|
5
5
|
import { getAccordionColor } from './colorMap';
|
|
6
6
|
|
|
@@ -21,6 +21,9 @@ const StyledHeader = styled('header')<StyledType>(({ theme, variant, invert }) =
|
|
|
21
21
|
gridTemplateColumns: 'auto 1fr 24px',
|
|
22
22
|
padding: '9px 16px',
|
|
23
23
|
borderBottom,
|
|
24
|
+
'.nsa-item-title': {
|
|
25
|
+
color: headText,
|
|
26
|
+
},
|
|
24
27
|
} as any;
|
|
25
28
|
});
|
|
26
29
|
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import { styled } from '@nuskin/foundation-theme';
|
|
2
1
|
import { isValidElement, ReactElement, useMemo } from 'react';
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import { styled } from '@nuskin/foundation-theme';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
AccordionContentTypeObject,
|
|
7
|
+
AccordionItem,
|
|
8
|
+
AccordionVariant,
|
|
9
|
+
AccordionVariantType,
|
|
10
|
+
NsAccordion,
|
|
11
|
+
NsCollapseProps,
|
|
12
|
+
NsTypography,
|
|
13
|
+
} from '../';
|
|
5
14
|
import { getAccordionColor } from './colorMap';
|
|
6
15
|
|
|
7
16
|
const getLevelOffset = (level: number) => {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AllColorKeyType,
|
|
3
|
+
ColorUtils,
|
|
4
|
+
} from '@nuskin/foundation-theme';
|
|
2
5
|
|
|
3
6
|
import { Themed } from '../common.types';
|
|
4
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
AccordionVariant,
|
|
9
|
+
AccordionVariantType,
|
|
10
|
+
} from './enums';
|
|
5
11
|
|
|
6
12
|
const { getGenomeColor } = ColorUtils;
|
|
7
13
|
const compKeys = ['contentBg', 'contentText', 'headBg', 'headText'];
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
ColorUtils,
|
|
10
|
-
styled,
|
|
11
|
-
} from '@nuskin/foundation-theme';
|
|
8
|
+
import { ColorUtils, styled } from '@nuskin/foundation-theme';
|
|
12
9
|
|
|
13
10
|
import { NsLink } from '../link';
|
|
14
11
|
import { NsTypography } from '../typography';
|
|
@@ -46,12 +43,12 @@ const NsTextStrip = (props: NsTextStripProps) => {
|
|
|
46
43
|
>
|
|
47
44
|
{link?.title ? (
|
|
48
45
|
<NsTypography weight="bold" variant="label-m" className="text-strip-title whitespace-nowrap" noSpacing>
|
|
49
|
-
|
|
46
|
+
{link.title}
|
|
50
47
|
</NsTypography>
|
|
51
48
|
) : null}
|
|
52
49
|
{description ? (
|
|
53
50
|
<NsTypography className="text-strip-description whitespace-nowrap" variant="body-m" noSpacing>
|
|
54
|
-
|
|
51
|
+
{description}
|
|
55
52
|
</NsTypography>
|
|
56
53
|
) : null}
|
|
57
54
|
</StyledHeader>
|