@charcoal-ui/tailwind-config 2.5.0 → 2.6.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/_lib/TailwindBuild.d.ts +17 -17
- package/dist/_lib/compat.d.ts +13 -13
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/colors/plugin.d.ts +7 -7
- package/dist/colors/plugin.test.d.ts +1 -1
- package/dist/colors/toTailwindConfig.d.ts +5 -5
- package/dist/colors/toTailwindConfig.test.d.ts +1 -1
- package/dist/colors/utils.d.ts +6 -6
- package/dist/colors/utils.d.ts.map +1 -1
- package/dist/docs/borderRadius/BorderRadius.d.ts +2 -2
- package/dist/docs/borderRadius/index.d.ts +2 -2
- package/dist/docs/colors/Colors.d.ts +2 -2
- package/dist/docs/colors/Colors.d.ts.map +1 -1
- package/dist/docs/colors/TextBgColor.story.d.ts +26 -26
- package/dist/docs/colors/TextBgColor.story.d.ts.map +1 -1
- package/dist/docs/colors/TextColors.d.ts +2 -2
- package/dist/docs/colors/index.d.ts +3 -3
- package/dist/docs/gradient/Gradients.d.ts +2 -2
- package/dist/docs/gradient/index.d.ts +9 -9
- package/dist/docs/gradient/index.d.ts.map +1 -1
- package/dist/docs/gradient/utils.d.ts +1 -1
- package/dist/docs/index.d.ts +8 -8
- package/dist/docs/index.d.ts.map +1 -1
- package/dist/docs/screens/Screens.d.ts +2 -2
- package/dist/docs/screens/index.d.ts +2 -2
- package/dist/docs/spacing/Spacing.d.ts +2 -2
- package/dist/docs/spacing/index.d.ts +2 -2
- package/dist/docs/typography/HalfLeading.d.ts +2 -2
- package/dist/docs/typography/Sizes.d.ts +2 -2
- package/dist/docs/typography/index.d.ts +8 -8
- package/dist/docs/typography/index.d.ts.map +1 -1
- package/dist/foundation.d.ts +5 -5
- package/dist/foundation.d.ts.map +1 -1
- package/dist/gradient/plugin.d.ts +18 -18
- package/dist/gradient/plugin.d.ts.map +1 -1
- package/dist/gradient/plugin.test.d.ts +1 -1
- package/dist/index.cjs.js +377 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.esm.js +359 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.test.d.ts +1 -1
- package/dist/types.d.ts +29 -29
- package/dist/types.d.ts.map +1 -1
- package/dist/typography/plugin.d.ts +2 -2
- package/dist/util.d.ts +11 -11
- package/package.json +16 -16
- package/src/docs/colors/Colors.tsx +1 -0
- package/src/docs/gradient/index.ts +1 -1
- package/dist/index.cjs +0 -488
- package/dist/index.cjs.map +0 -1
- package/dist/index.modern.js +0 -444
- package/dist/index.modern.js.map +0 -1
- package/dist/index.module.js +0 -483
- package/dist/index.module.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { TailwindConfig } from 'tailwindcss/tailwind-config';
|
|
2
|
-
/**
|
|
3
|
-
* テスト用に tailwind.css のビルドを走らせる
|
|
4
|
-
*
|
|
5
|
-
* クラス一覧を得たりするたびにビルドが走らないことを保証するために、new した時点でビルドが完了するように作っている
|
|
6
|
-
*/
|
|
7
|
-
export declare class TailwindBuild {
|
|
8
|
-
private result;
|
|
9
|
-
private readonly parsedCss;
|
|
10
|
-
private constructor();
|
|
11
|
-
static run(config: TailwindConfig, css: string): Promise<TailwindBuild>;
|
|
12
|
-
get css(): string;
|
|
13
|
-
get classNames(): string[];
|
|
14
|
-
getStylesByClassName(className: string): string[] | undefined;
|
|
15
|
-
getCssVariables(): string[];
|
|
16
|
-
getCssVariable(varName: `--${string}`): string[];
|
|
17
|
-
}
|
|
1
|
+
import { TailwindConfig } from 'tailwindcss/tailwind-config';
|
|
2
|
+
/**
|
|
3
|
+
* テスト用に tailwind.css のビルドを走らせる
|
|
4
|
+
*
|
|
5
|
+
* クラス一覧を得たりするたびにビルドが走らないことを保証するために、new した時点でビルドが完了するように作っている
|
|
6
|
+
*/
|
|
7
|
+
export declare class TailwindBuild {
|
|
8
|
+
private result;
|
|
9
|
+
private readonly parsedCss;
|
|
10
|
+
private constructor();
|
|
11
|
+
static run(config: TailwindConfig, css: string): Promise<TailwindBuild>;
|
|
12
|
+
get css(): string;
|
|
13
|
+
get classNames(): string[];
|
|
14
|
+
getStylesByClassName(className: string): string[] | undefined;
|
|
15
|
+
getCssVariables(): string[];
|
|
16
|
+
getCssVariable(varName: `--${string}`): string[];
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=TailwindBuild.d.ts.map
|
package/dist/_lib/compat.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* import { Story } from '@storybook/react/types-6-0'
|
|
4
|
-
*
|
|
5
|
-
* をするとstyled-componentsが壊れるので代替品を作った
|
|
6
|
-
*
|
|
7
|
-
* エラー:
|
|
8
|
-
* node_modules/@types/styled-components/ts3.7/index.d.ts
|
|
9
|
-
* `Type alias 'Interpolation' circularly references itself. ts(2456)`
|
|
10
|
-
*/
|
|
11
|
-
export
|
|
12
|
-
args?: P;
|
|
13
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* import { Story } from '@storybook/react/types-6-0'
|
|
4
|
+
*
|
|
5
|
+
* をするとstyled-componentsが壊れるので代替品を作った
|
|
6
|
+
*
|
|
7
|
+
* エラー:
|
|
8
|
+
* node_modules/@types/styled-components/ts3.7/index.d.ts
|
|
9
|
+
* `Type alias 'Interpolation' circularly references itself. ts(2456)`
|
|
10
|
+
*/
|
|
11
|
+
export type Story<P> = React.ComponentType<P> & {
|
|
12
|
+
args?: P;
|
|
13
|
+
};
|
|
14
14
|
//# sourceMappingURL=compat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/_lib/compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;GAQG;AACH,
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/_lib/compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;GAQG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,CAAA"}
|
package/dist/colors/plugin.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TailwindPlugin } from 'tailwindcss/plugin';
|
|
2
|
-
import { Definition, ThemeMap } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* `:root` 以外のケースで各 CSS Variable がどういう値を取るかを定義する
|
|
5
|
-
*/
|
|
6
|
-
export default function cssVariableColorPlugin({ ':root': _defaultTheme, ...themes }: ThemeMap): TailwindPlugin;
|
|
7
|
-
export declare function defineCssVariables(themes: Omit<ThemeMap, ':root'>): Definition;
|
|
1
|
+
import { TailwindPlugin } from 'tailwindcss/plugin';
|
|
2
|
+
import { Definition, ThemeMap } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* `:root` 以外のケースで各 CSS Variable がどういう値を取るかを定義する
|
|
5
|
+
*/
|
|
6
|
+
export default function cssVariableColorPlugin({ ':root': _defaultTheme, ...themes }: ThemeMap): TailwindPlugin;
|
|
7
|
+
export declare function defineCssVariables(themes: Omit<ThemeMap, ':root'>): Definition;
|
|
8
8
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=plugin.test.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TailwindConfig } from 'tailwindcss/tailwind-config';
|
|
2
|
-
import { MergedEffect } from '../foundation';
|
|
3
|
-
import { TailwindVersion } from '../types';
|
|
4
|
-
import { AnyColorTheme } from './utils';
|
|
5
|
-
export declare function colorsToTailwindConfig(version: TailwindVersion, colors: AnyColorTheme, effects: MergedEffect): TailwindConfig['theme']['colors'];
|
|
1
|
+
import { TailwindConfig } from 'tailwindcss/tailwind-config';
|
|
2
|
+
import { MergedEffect } from '../foundation';
|
|
3
|
+
import { TailwindVersion } from '../types';
|
|
4
|
+
import { AnyColorTheme } from './utils';
|
|
5
|
+
export declare function colorsToTailwindConfig(version: TailwindVersion, colors: AnyColorTheme, effects: MergedEffect): TailwindConfig['theme']['colors'];
|
|
6
6
|
//# sourceMappingURL=toTailwindConfig.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=toTailwindConfig.test.d.ts.map
|
package/dist/colors/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GradientMaterial, Material } from '@charcoal-ui/foundation';
|
|
2
|
-
export declare const COLOR_PREFIX = "--tailwind-color-";
|
|
3
|
-
export declare function isSingleColor(color: AnyColor): color is Material;
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export {};
|
|
1
|
+
import { GradientMaterial, Material } from '@charcoal-ui/foundation';
|
|
2
|
+
export declare const COLOR_PREFIX = "--tailwind-color-";
|
|
3
|
+
export declare function isSingleColor(color: AnyColor): color is Material;
|
|
4
|
+
type AnyColor = Material | GradientMaterial;
|
|
5
|
+
export type AnyColorTheme = Record<string, AnyColor>;
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/colors/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAEpE,eAAO,MAAM,YAAY,sBAAsB,CAAA;AAE/C,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,IAAI,QAAQ,CAEhE;AAED,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/colors/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAEpE,eAAO,MAAM,YAAY,sBAAsB,CAAA;AAE/C,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,IAAI,QAAQ,CAEhE;AAED,KAAK,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const BorderRadius: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const BorderRadius: React.FC;
|
|
3
3
|
//# sourceMappingURL=BorderRadius.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const borderRadius: import("tailwindcss/tailwind-config").TailwindThemeValue;
|
|
2
|
-
export { BorderRadius } from './BorderRadius';
|
|
1
|
+
export declare const borderRadius: import("tailwindcss/tailwind-config").TailwindThemeValue;
|
|
2
|
+
export { BorderRadius } from './BorderRadius';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Colors: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Colors: React.FC;
|
|
3
3
|
//# sourceMappingURL=Colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../src/docs/colors/Colors.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAoDzB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../src/docs/colors/Colors.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAoDzB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAiC1B,CAAA"}
|
|
@@ -1,27 +1,27 @@
|
|
|
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
|
-
|
|
23
|
-
textColorClass: string;
|
|
24
|
-
bgColorClass: string;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const Playground: Story<Props>;
|
|
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>;
|
|
27
27
|
//# 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":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;;AAI9C,wBAkBC;AAED,
|
|
1
|
+
{"version":3,"file":"TextBgColor.story.d.ts","sourceRoot":"","sources":["../../../src/docs/colors/TextBgColor.story.tsx"],"names":[],"mappings":"AACA,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,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const TextColors: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const TextColors: React.FC;
|
|
3
3
|
//# sourceMappingURL=TextColors.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const colors: import("tailwindcss/tailwind-config").TailwindThemeColors;
|
|
2
|
-
export { Colors } from './Colors';
|
|
3
|
-
export { TextColors } from './TextColors';
|
|
1
|
+
export declare const colors: import("tailwindcss/tailwind-config").TailwindThemeColors;
|
|
2
|
+
export { Colors } from './Colors';
|
|
3
|
+
export { TextColors } from './TextColors';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Gradients: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Gradients: React.FC;
|
|
3
3
|
//# sourceMappingURL=Gradients.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EffectType } from '@charcoal-ui/theme';
|
|
2
|
-
export { Gradients } from './Gradients';
|
|
3
|
-
export declare const utilityClasses: Record<string, Record<string, unknown>>;
|
|
4
|
-
export declare const directions: readonly ["top", "bottom", "right", "left"];
|
|
5
|
-
export
|
|
6
|
-
export type { EffectType };
|
|
7
|
-
export declare const effectTypes: {
|
|
8
|
-
[type in EffectType]: null;
|
|
9
|
-
};
|
|
1
|
+
import { EffectType } from '@charcoal-ui/theme';
|
|
2
|
+
export { Gradients } from './Gradients';
|
|
3
|
+
export declare const utilityClasses: Record<string, Record<string, unknown>>;
|
|
4
|
+
export declare const directions: readonly ["top", "bottom", "right", "left"];
|
|
5
|
+
export type Direction = (typeof directions)[number];
|
|
6
|
+
export type { EffectType };
|
|
7
|
+
export declare const effectTypes: {
|
|
8
|
+
[type in EffectType]: null;
|
|
9
|
+
};
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs/gradient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAWvC,eAAO,MAAM,cAAc,yCAA+B,CAAA;AAE1D,eAAO,MAAM,UAAU,6CAA8C,CAAA;AACrE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs/gradient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAWvC,eAAO,MAAM,cAAc,yCAA+B,CAAA;AAE1D,eAAO,MAAM,UAAU,6CAA8C,CAAA;AACrE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnD,YAAY,EAAE,UAAU,EAAE,CAAA;AAC1B,eAAO,MAAM,WAAW,EAAE;KAAG,IAAI,IAAI,UAAU,GAAG,IAAI;CAIrD,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getUniqueGradientNames: (utilityClasses: string[]) => string[];
|
|
1
|
+
export declare const getUniqueGradientNames: (utilityClasses: string[]) => string[];
|
|
2
2
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
handler: ({ addBase, addUtilities, }: {
|
|
3
|
-
addBase: unknown;
|
|
4
|
-
addUtilities: unknown;
|
|
5
|
-
}) => void;
|
|
6
|
-
};
|
|
7
|
-
export
|
|
8
|
-
export declare const getUtilities: (plugin: TailwindPlugin) => Record<string, Record<string, unknown>>;
|
|
1
|
+
export type TailwindPlugin = {
|
|
2
|
+
handler: ({ addBase, addUtilities, }: {
|
|
3
|
+
addBase: unknown;
|
|
4
|
+
addUtilities: unknown;
|
|
5
|
+
}) => void;
|
|
6
|
+
};
|
|
7
|
+
export type UtilityClasses = Record<string, Record<string, unknown>>;
|
|
8
|
+
export declare const getUtilities: (plugin: TailwindPlugin) => Record<string, Record<string, unknown>>;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/docs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,CAAC,EACR,OAAO,EACP,YAAY,GACb,EAAE;QACD,OAAO,EAAE,OAAO,CAAA;QAChB,YAAY,EAAE,OAAO,CAAA;KACtB,KAAK,IAAI,CAAA;CACX,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAEpE,eAAO,MAAM,YAAY,WAAY,cAAc,4CAmBlD,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Screens: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Screens: React.FC;
|
|
3
3
|
//# sourceMappingURL=Screens.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const screens: import("tailwindcss/tailwind-config").TailwindThemeValue;
|
|
2
|
-
export { Screens } from './Screens';
|
|
1
|
+
export declare const screens: import("tailwindcss/tailwind-config").TailwindThemeValue;
|
|
2
|
+
export { Screens } from './Screens';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Spacing: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Spacing: React.FC;
|
|
3
3
|
//# sourceMappingURL=Spacing.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const spacing: import("tailwindcss/tailwind-config").TailwindThemeValue;
|
|
2
|
-
export { Spacing } from './Spacing';
|
|
1
|
+
export declare const spacing: import("tailwindcss/tailwind-config").TailwindThemeValue;
|
|
2
|
+
export { Spacing } from './Spacing';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const HalfLeading: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const HalfLeading: React.FC;
|
|
3
3
|
//# sourceMappingURL=HalfLeading.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Sizes: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Sizes: React.FC;
|
|
3
3
|
//# sourceMappingURL=Sizes.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Sizes } from './Sizes';
|
|
2
|
-
export { HalfLeading } from './HalfLeading';
|
|
3
|
-
export declare const utilityClasses: Record<string, Record<string, unknown>>;
|
|
4
|
-
|
|
5
|
-
'font-size': string;
|
|
6
|
-
'line-height': string;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const sizeClasses: Record<string, SizeClassValue>;
|
|
1
|
+
export { Sizes } from './Sizes';
|
|
2
|
+
export { HalfLeading } from './HalfLeading';
|
|
3
|
+
export declare const utilityClasses: Record<string, Record<string, unknown>>;
|
|
4
|
+
type SizeClassValue = Readonly<{
|
|
5
|
+
'font-size': string;
|
|
6
|
+
'line-height': string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const sizeClasses: Record<string, SizeClassValue>;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs/typography/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAW3C,eAAO,MAAM,cAAc,yCAAiC,CAAA;AAE5D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs/typography/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAW3C,eAAO,MAAM,cAAc,yCAAiC,CAAA;AAE5D,KAAK,cAAc,GAAG,QAAQ,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC,CAAA;AACF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAIpB,CAAA"}
|
package/dist/foundation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Effect } from '@charcoal-ui/foundation';
|
|
2
|
-
import { CharcoalTheme as Theme } from '@charcoal-ui/theme';
|
|
3
|
-
export declare const GRID_COUNT = 12;
|
|
4
|
-
export declare function mergeEffect({ elementEffect, effect, }: Pick<Theme, 'elementEffect' | 'effect'>): MergedEffect;
|
|
5
|
-
export
|
|
1
|
+
import { Effect } from '@charcoal-ui/foundation';
|
|
2
|
+
import { CharcoalTheme as Theme } from '@charcoal-ui/theme';
|
|
3
|
+
export declare const GRID_COUNT = 12;
|
|
4
|
+
export declare function mergeEffect({ elementEffect, effect, }: Pick<Theme, 'elementEffect' | 'effect'>): MergedEffect;
|
|
5
|
+
export type MergedEffect = Record<string, Effect>;
|
|
6
6
|
//# sourceMappingURL=foundation.d.ts.map
|
package/dist/foundation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation.d.ts","sourceRoot":"","sources":["../src/foundation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE3D,eAAO,MAAM,UAAU,KAAK,CAAA;AAE5B,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,MAAM,GACP,EAAE,IAAI,CAAC,KAAK,EAAE,eAAe,GAAG,QAAQ,CAAC,GAAG,YAAY,CASxD;AAED,
|
|
1
|
+
{"version":3,"file":"foundation.d.ts","sourceRoot":"","sources":["../src/foundation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE3D,eAAO,MAAM,UAAU,KAAK,CAAA;AAE5B,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,MAAM,GACP,EAAE,IAAI,CAAC,KAAK,EAAE,eAAe,GAAG,QAAQ,CAAC,GAAG,YAAY,CASxD;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { GradientMaterial } from '@charcoal-ui/foundation';
|
|
2
|
-
import { ThemeColorGradient } from '@charcoal-ui/theme';
|
|
3
|
-
import { MergedEffect } from '../foundation';
|
|
4
|
-
export default function cssVariableColorPlugin(gradients: ThemeColorGradient, effects: MergedEffect, selectorOrMediaQuery: string): import("tailwindcss/plugin").TailwindPlugin;
|
|
5
|
-
/**
|
|
6
|
-
* こういう感じのやつ。この時点では `--tailwind-gradient-` のような CSS 変数名になってない
|
|
7
|
-
*
|
|
8
|
-
* ```js
|
|
9
|
-
* {
|
|
10
|
-
* 'hoge1': 'linear-gradient(to top, ...)',
|
|
11
|
-
* ...
|
|
12
|
-
* }
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare function getUtilities(gradients: Record<string, GradientMaterial>, effect: MergedEffect): Utilities;
|
|
18
|
-
export {};
|
|
1
|
+
import { GradientMaterial } from '@charcoal-ui/foundation';
|
|
2
|
+
import { ThemeColorGradient } from '@charcoal-ui/theme';
|
|
3
|
+
import { MergedEffect } from '../foundation';
|
|
4
|
+
export default function cssVariableColorPlugin(gradients: ThemeColorGradient, effects: MergedEffect, selectorOrMediaQuery: string): import("tailwindcss/plugin").TailwindPlugin;
|
|
5
|
+
/**
|
|
6
|
+
* こういう感じのやつ。この時点では `--tailwind-gradient-` のような CSS 変数名になってない
|
|
7
|
+
*
|
|
8
|
+
* ```js
|
|
9
|
+
* {
|
|
10
|
+
* 'hoge1': 'linear-gradient(to top, ...)',
|
|
11
|
+
* ...
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
type Utilities = Record<string, LinearGradient>;
|
|
16
|
+
type LinearGradient = `linear-gradient(${string})`;
|
|
17
|
+
export declare function getUtilities(gradients: Record<string, GradientMaterial>, effect: MergedEffect): Utilities;
|
|
18
|
+
export {};
|
|
19
19
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/gradient/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAUvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAI5C,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,YAAY,EACrB,oBAAoB,EAAE,MAAM,+CA8B7B;AASD;;;;;;;;;GASG;AACH,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/gradient/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAUvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAI5C,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,YAAY,EACrB,oBAAoB,EAAE,MAAM,+CA8B7B;AASD;;;;;;;;;GASG;AACH,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;AAE/C,KAAK,cAAc,GAAG,mBAAmB,MAAM,GAAG,CAAA;AAElD,wBAAgB,YAAY,CAC1B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAC3C,MAAM,EAAE,YAAY,GACnB,SAAS,CAqCX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=plugin.test.d.ts.map
|