@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.
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ textColorClass: string;
3
+ bgColorClass: string;
4
+ };
5
+ export declare const TextBgColor: React.FC<Props>;
6
+ export {};
7
+ //# sourceMappingURL=TextBgColor.d.ts.map
@@ -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 { Story } from '../../_lib/compat';
2
- declare const _default: {
3
- title: string;
4
- argTypes: {
5
- textColorClass: {
6
- control: {
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,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;;AAI9C,wBAkBC;AAED,KAAK,KAAK,GAAG,QAAQ,CAAC;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,KAAK,CAUnC,CAAA"}
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.0",
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.3.0",
31
- "@charcoal-ui/theme": "^3.3.0",
32
- "@charcoal-ui/utils": "^3.3.0"
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": "60cfc06dc31206cb629f762f263be3fe46a13808"
51
+ "gitHead": "73956af8afa8f49bb016dd17d3539a7512ad0c42"
52
52
  }
@@ -1,40 +1,31 @@
1
- import type { Story } from '../../_lib/compat'
2
-
1
+ import type { StoryObj, Meta } from '@storybook/react'
3
2
  import { colors } from '.'
3
+ import { TextBgColor } from './TextBgColor'
4
4
 
5
- export default {
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
- control: {
10
- type: 'select',
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
- control: {
17
- type: 'select',
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 Props = Readonly<{
26
- textColorClass: string
27
- bgColorClass: string
28
- }>
21
+ type Story = StoryObj<typeof TextBgColor>
29
22
 
30
- export const Playground: Story<Props> = ({ textColorClass, bgColorClass }) => (
31
- <div className={`${bgColorClass} p-64 max-w-2xl`}>
32
- <p className={`typography-20 ${textColorClass}`}>
33
- charcoal はピクシブ株式会社のデザインシステムです。ここでは特に、Web
34
- フロントエンドの実装に用いる npm パッケージ集のことを言います。Lorem ipsum
35
- dolor sit amet, consectetur adipiscing elit. Aliquam at odio bibendum nisl
36
- mollis eleifend et quis turpis. Quisque dignissim porta justo ut
37
- convallis.dipiscing elit.
38
- </p>
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
- <Story name="Colors">
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
- <Story name="Text colors">
26
- <TextColors />
27
- </Story>
23
+ <TextColors />
@@ -7,6 +7,4 @@ import { Gradients } from '.'
7
7
 
8
8
  <br />
9
9
 
10
- <Story name="Gradients">
11
- <Gradients />
12
- </Story>
10
+ <Gradients />
@@ -11,9 +11,7 @@ import { Sizes, HalfLeading } from '.'
11
11
 
12
12
  <br />
13
13
 
14
- <Story name="Sizes">
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
- <Story name="Half leading">
25
- <HalfLeading />
26
- </Story>
22
+ <HalfLeading />
File without changes
File without changes