scoobie 18.0.1 → 18.1.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.
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "18.
|
|
7
|
+
"version": "18.1.1",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@capsizecss/core": "^4.0.0",
|
|
10
10
|
"@vanilla-extract/css": "^1.2.3",
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
"polished": "^4.1.3",
|
|
15
15
|
"prism-react-renderer": "2.4.0",
|
|
16
16
|
"react-keyed-flatten-children": "^3.0.0",
|
|
17
|
-
"refractor": "^3.4.0"
|
|
18
|
-
"remark-slug": "^6.1.0"
|
|
17
|
+
"refractor": "^3.4.0"
|
|
19
18
|
},
|
|
20
19
|
"devDependencies": {
|
|
21
20
|
"@changesets/cli": "2.27.8",
|
|
@@ -25,20 +24,19 @@
|
|
|
25
24
|
"@storybook/react": "8.3.2",
|
|
26
25
|
"@storybook/react-webpack5": "8.3.2",
|
|
27
26
|
"@types/react": "18.3.11",
|
|
28
|
-
"@types/react-dom": "18.3.
|
|
29
|
-
"braid-design-system": "
|
|
27
|
+
"@types/react-dom": "18.3.1",
|
|
28
|
+
"braid-design-system": "33.0.0",
|
|
30
29
|
"loki": "0.35.1",
|
|
31
30
|
"react": "18.3.1",
|
|
32
31
|
"react-dom": "18.3.1",
|
|
33
32
|
"react-helmet-async": "1.3.0",
|
|
34
33
|
"react-router-dom": "6.26.2",
|
|
35
|
-
"sku": "13.
|
|
34
|
+
"sku": "13.2.0",
|
|
36
35
|
"storybook": "8.3.2",
|
|
37
36
|
"webpack": "5.94.0"
|
|
38
37
|
},
|
|
39
38
|
"files": [
|
|
40
39
|
"src",
|
|
41
|
-
"remark",
|
|
42
40
|
"styles",
|
|
43
41
|
"webpack",
|
|
44
42
|
"types.d.ts",
|
package/src/private/types.ts
CHANGED
package/styles/img.css.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { atoms, vars } from 'braid-design-system/css';
|
|
|
3
3
|
|
|
4
4
|
const atomStyle = atoms({
|
|
5
5
|
borderRadius: 'large',
|
|
6
|
-
boxShadow: 'small',
|
|
7
6
|
display: 'block',
|
|
8
7
|
});
|
|
9
8
|
|
|
@@ -11,7 +10,6 @@ const rawStyle = style({
|
|
|
11
10
|
borderColor: vars.borderColor.neutralLight,
|
|
12
11
|
borderWidth: vars.borderWidth.standard,
|
|
13
12
|
borderStyle: 'solid',
|
|
14
|
-
maxWidth: '100%',
|
|
15
13
|
});
|
|
16
14
|
|
|
17
15
|
export const img = composeStyles(atomStyle, rawStyle);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from 'braid-design-system/css';
|
|
3
|
-
|
|
4
|
-
export const headingSpacer = style({
|
|
5
|
-
marginTop: vars.space.small,
|
|
6
|
-
selectors: {
|
|
7
|
-
':first-child > &': {
|
|
8
|
-
marginTop: 0,
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const headingAnchor = style({
|
|
14
|
-
visibility: 'hidden',
|
|
15
|
-
selectors: {
|
|
16
|
-
[`${headingSpacer}:hover &, ${headingSpacer}:focus &`]: {
|
|
17
|
-
visibility: 'visible',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Box, Heading, IconLink, Text } from 'braid-design-system';
|
|
2
|
-
import React, { type FunctionComponent, type ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
import { SmartTextLink } from '../components/SmartTextLink';
|
|
5
|
-
|
|
6
|
-
import type { HeadingLevel } from './types';
|
|
7
|
-
|
|
8
|
-
import * as styles from './SpacedHeading.css';
|
|
9
|
-
|
|
10
|
-
const headingForLevel: Record<
|
|
11
|
-
HeadingLevel,
|
|
12
|
-
FunctionComponent<{ children: ReactNode }>
|
|
13
|
-
> = {
|
|
14
|
-
1: ({ children }) => <Heading level="2">{children}</Heading>,
|
|
15
|
-
2: ({ children }) => <Heading level="3">{children}</Heading>,
|
|
16
|
-
3: ({ children }) => <Heading level="4">{children}</Heading>,
|
|
17
|
-
4: ({ children }) => <Text weight="strong">{children}</Text>,
|
|
18
|
-
5: ({ children }) => (
|
|
19
|
-
<Text weight="strong">
|
|
20
|
-
<span>| </span>
|
|
21
|
-
{children}
|
|
22
|
-
</Text>
|
|
23
|
-
),
|
|
24
|
-
6: ({ children }) => (
|
|
25
|
-
<Text weight="strong">
|
|
26
|
-
<span>‖ </span>
|
|
27
|
-
{children}
|
|
28
|
-
</Text>
|
|
29
|
-
),
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
interface Props {
|
|
33
|
-
children: ReactNode;
|
|
34
|
-
id: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const createSpacedHeading = (level: HeadingLevel) => {
|
|
38
|
-
const LevelHeading = headingForLevel[level];
|
|
39
|
-
|
|
40
|
-
return ({ children, id }: Props) => (
|
|
41
|
-
<Box className={styles.headingSpacer} id={id} tabIndex={0}>
|
|
42
|
-
<LevelHeading>
|
|
43
|
-
{children}{' '}
|
|
44
|
-
<SmartTextLink href={`#${id}`}>
|
|
45
|
-
<Box className={styles.headingAnchor} component="span">
|
|
46
|
-
<IconLink alignY="lowercase" />
|
|
47
|
-
</Box>
|
|
48
|
-
</SmartTextLink>
|
|
49
|
-
</LevelHeading>
|
|
50
|
-
</Box>
|
|
51
|
-
);
|
|
52
|
-
};
|