@charcoal-ui/tailwind-config 3.3.0 → 3.5.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/dist/docs/colors/TextBgColor.d.ts +7 -0
- package/dist/docs/colors/TextBgColor.d.ts.map +1 -0
- package/dist/docs/colors/TextBgColor.story.d.ts +6 -26
- package/dist/docs/colors/TextBgColor.story.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/docs/colors/TextBgColor.story.tsx +19 -28
- package/src/docs/colors/TextBgColor.tsx +20 -0
- package/src/docs/colors/__snapshots__/TextBgColor.story.storyshot +17 -0
- package/src/docs/colors/{index.story.mdx → index.mdx} +2 -6
- package/src/docs/gradient/{index.story.mdx → index.mdx} +1 -3
- package/src/docs/typography/{index.story.mdx → index.mdx} +2 -6
- /package/src/docs/borderRadius/{index.story.mdx → index.mdx} +0 -0
- /package/src/docs/screens/{index.story.mdx → index.mdx} +0 -0
- /package/src/docs/spacing/{index.story.mdx → index.mdx} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextBgColor.d.ts","sourceRoot":"","sources":["../../../src/docs/colors/TextBgColor.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAevC,CAAA"}
|
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type: string;
|
|
8
|
-
options: string[];
|
|
9
|
-
};
|
|
10
|
-
defaultValue: string;
|
|
11
|
-
};
|
|
12
|
-
bgColorClass: {
|
|
13
|
-
control: {
|
|
14
|
-
type: string;
|
|
15
|
-
options: string[];
|
|
16
|
-
};
|
|
17
|
-
defaultValue: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
type Props = Readonly<{
|
|
23
|
-
textColorClass: string;
|
|
24
|
-
bgColorClass: string;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const Playground: Story<Props>;
|
|
1
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
|
2
|
+
import { TextBgColor } from './TextBgColor';
|
|
3
|
+
declare const meta: Meta<typeof TextBgColor>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TextBgColor>;
|
|
6
|
+
export declare const Playground: Story;
|
|
27
7
|
//# sourceMappingURL=TextBgColor.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBgColor.story.d.ts","sourceRoot":"","sources":["../../../src/docs/colors/TextBgColor.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TextBgColor.story.d.ts","sourceRoot":"","sources":["../../../src/docs/colors/TextBgColor.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAalC,CAAA;AACD,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEzC,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charcoal-ui/tailwind-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"typescript": "^4.9.5"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@charcoal-ui/foundation": "^3.
|
|
31
|
-
"@charcoal-ui/theme": "^3.
|
|
32
|
-
"@charcoal-ui/utils": "^3.
|
|
30
|
+
"@charcoal-ui/foundation": "^3.5.0",
|
|
31
|
+
"@charcoal-ui/theme": "^3.5.0",
|
|
32
|
+
"@charcoal-ui/utils": "^3.5.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"csstype": ">=3.0.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"url": "https://github.com/pixiv/charcoal.git",
|
|
49
49
|
"directory": "packages/tailwind-config"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "73956af8afa8f49bb016dd17d3539a7512ad0c42"
|
|
52
52
|
}
|
|
@@ -1,40 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { StoryObj, Meta } from '@storybook/react'
|
|
3
2
|
import { colors } from '.'
|
|
3
|
+
import { TextBgColor } from './TextBgColor'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const meta: Meta<typeof TextBgColor> = {
|
|
6
6
|
title: 'tailwind-config/Colors/Text bg color',
|
|
7
|
+
component: TextBgColor,
|
|
7
8
|
argTypes: {
|
|
8
9
|
textColorClass: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
options: Object.keys(colors).map((color) => `text-${color}`),
|
|
12
|
-
},
|
|
13
|
-
defaultValue: 'text-text1',
|
|
10
|
+
options: Object.keys(colors).map((color) => `text-${color}`),
|
|
11
|
+
control: { type: 'select' },
|
|
14
12
|
},
|
|
15
13
|
bgColorClass: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
options: Object.keys(colors).map((color) => `bg-${color}`),
|
|
19
|
-
},
|
|
20
|
-
defaultValue: 'bg-background1',
|
|
14
|
+
options: Object.keys(colors).map((color) => `bg-${color}`),
|
|
15
|
+
control: { type: 'select' },
|
|
21
16
|
},
|
|
22
17
|
},
|
|
23
18
|
}
|
|
19
|
+
export default meta
|
|
24
20
|
|
|
25
|
-
type
|
|
26
|
-
textColorClass: string
|
|
27
|
-
bgColorClass: string
|
|
28
|
-
}>
|
|
21
|
+
type Story = StoryObj<typeof TextBgColor>
|
|
29
22
|
|
|
30
|
-
export const Playground: Story
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</div>
|
|
40
|
-
)
|
|
23
|
+
export const Playground: Story = {
|
|
24
|
+
args: {
|
|
25
|
+
textColorClass: 'text-text1',
|
|
26
|
+
bgColorClass: 'bg-background1',
|
|
27
|
+
},
|
|
28
|
+
render: ({ bgColorClass, textColorClass }) => (
|
|
29
|
+
<TextBgColor bgColorClass={bgColorClass} textColorClass={textColorClass} />
|
|
30
|
+
),
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
textColorClass: string
|
|
3
|
+
bgColorClass: string
|
|
4
|
+
}
|
|
5
|
+
export const TextBgColor: React.FC<Props> = ({
|
|
6
|
+
textColorClass,
|
|
7
|
+
bgColorClass,
|
|
8
|
+
}) => {
|
|
9
|
+
return (
|
|
10
|
+
<div className={`${bgColorClass} p-64 max-w-2xl`}>
|
|
11
|
+
<p className={`typography-20 ${textColorClass}`}>
|
|
12
|
+
charcoal はピクシブ株式会社のデザインシステムです。ここでは特に、Web
|
|
13
|
+
フロントエンドの実装に用いる npm パッケージ集のことを言います。Lorem
|
|
14
|
+
ipsum dolor sit amet, consectetur adipiscing elit. Aliquam at odio
|
|
15
|
+
bibendum nisl mollis eleifend et quis turpis. Quisque dignissim porta
|
|
16
|
+
justo ut convallis.dipiscing elit.
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Storyshots tailwind-config/Colors/Text bg color Playground 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
data-dark={false}
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
className="bg-background1 p-64 max-w-2xl"
|
|
9
|
+
>
|
|
10
|
+
<p
|
|
11
|
+
className="typography-20 text-text1"
|
|
12
|
+
>
|
|
13
|
+
charcoal はピクシブ株式会社のデザインシステムです。ここでは特に、Web フロントエンドの実装に用いる npm パッケージ集のことを言います。Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam at odio bibendum nisl mollis eleifend et quis turpis. Quisque dignissim porta justo ut convallis.dipiscing elit.
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
`;
|
|
@@ -11,9 +11,7 @@ import { Colors, TextColors } from '.'
|
|
|
11
11
|
|
|
12
12
|
<br />
|
|
13
13
|
|
|
14
|
-
<
|
|
15
|
-
<Colors />
|
|
16
|
-
</Story>
|
|
14
|
+
<Colors />
|
|
17
15
|
|
|
18
16
|
<br />
|
|
19
17
|
<br />
|
|
@@ -22,6 +20,4 @@ import { Colors, TextColors } from '.'
|
|
|
22
20
|
|
|
23
21
|
<br />
|
|
24
22
|
|
|
25
|
-
<
|
|
26
|
-
<TextColors />
|
|
27
|
-
</Story>
|
|
23
|
+
<TextColors />
|
|
@@ -11,9 +11,7 @@ import { Sizes, HalfLeading } from '.'
|
|
|
11
11
|
|
|
12
12
|
<br />
|
|
13
13
|
|
|
14
|
-
<
|
|
15
|
-
<Sizes />
|
|
16
|
-
</Story>
|
|
14
|
+
<Sizes />
|
|
17
15
|
|
|
18
16
|
<br />
|
|
19
17
|
|
|
@@ -21,6 +19,4 @@ import { Sizes, HalfLeading } from '.'
|
|
|
21
19
|
|
|
22
20
|
<br />
|
|
23
21
|
|
|
24
|
-
<
|
|
25
|
-
<HalfLeading />
|
|
26
|
-
</Story>
|
|
22
|
+
<HalfLeading />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|