@pittorica/quote-react 0.21.0 → 0.22.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/README.md +24 -0
- package/dist/Quote.d.ts +5 -7
- package/dist/Quote.d.ts.map +1 -1
- package/dist/Quote.stories.d.ts +7 -0
- package/dist/Quote.stories.d.ts.map +1 -0
- package/dist/Quote.test.d.ts +5 -0
- package/dist/Quote.test.d.ts.map +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +136 -8056
- package/package.json +26 -30
- package/.turbo/turbo-build.log +0 -18
- package/dist/index.cjs +0 -8064
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/quote-react.css +0 -10
- package/dist/quote.css.d.ts +0 -3
- package/dist/quote.css.d.ts.map +0 -1
- package/src/Quote.tsx +0 -30
- package/src/index.ts +0 -2
- package/src/quote.css.ts +0 -16
- package/tsconfig.app.json +0 -33
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -37
package/dist/quote-react.css
DELETED
package/dist/quote.css.d.ts
DELETED
package/dist/quote.css.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote.css.d.ts","sourceRoot":"","sources":["../src/quote.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAavD,CAAC"}
|
package/src/Quote.tsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { type QuoteHTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
|
|
5
|
-
import { Box, type BoxProps } from '@pittorica/box-react';
|
|
6
|
-
|
|
7
|
-
import { quoteRecipe } from './quote.css.js';
|
|
8
|
-
|
|
9
|
-
export interface QuoteProps extends Omit<
|
|
10
|
-
BoxProps & QuoteHTMLAttributes<HTMLQuoteElement>,
|
|
11
|
-
'as' | 'children' | 'cite'
|
|
12
|
-
> {
|
|
13
|
-
cite: string;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const Quote: React.FC<QuoteProps> = ({
|
|
18
|
-
className,
|
|
19
|
-
children,
|
|
20
|
-
cite,
|
|
21
|
-
...props
|
|
22
|
-
}) => {
|
|
23
|
-
const recipeClass = quoteRecipe();
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Box as="q" className={clsx(recipeClass, className)} cite={cite} {...props}>
|
|
27
|
-
{children}
|
|
28
|
-
</Box>
|
|
29
|
-
);
|
|
30
|
-
};
|
package/src/index.ts
DELETED
package/src/quote.css.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { recipe, type RuntimeFn } from '@vanilla-extract/recipes';
|
|
2
|
-
|
|
3
|
-
export const quoteRecipe: RuntimeFn<Record<string, never>> = recipe({
|
|
4
|
-
base: {
|
|
5
|
-
fontStyle: 'italic',
|
|
6
|
-
quotes: '"“" "”" "‘" "’"',
|
|
7
|
-
selectors: {
|
|
8
|
-
'&::before': {
|
|
9
|
-
content: 'open-quote',
|
|
10
|
-
},
|
|
11
|
-
'&::after': {
|
|
12
|
-
content: 'close-quote',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
});
|
package/tsconfig.app.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "dist",
|
|
4
|
-
"rootDir": "src",
|
|
5
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
6
|
-
"target": "ES2022",
|
|
7
|
-
"useDefineForClassFields": true,
|
|
8
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"types": ["vite/client"],
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
|
|
13
|
-
/* Bundler mode */
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"allowImportingTsExtensions": false,
|
|
16
|
-
"verbatimModuleSyntax": true,
|
|
17
|
-
"moduleDetection": "force",
|
|
18
|
-
"noEmit": false,
|
|
19
|
-
"emitDeclarationOnly": true,
|
|
20
|
-
"declaration": true,
|
|
21
|
-
"declarationMap": true,
|
|
22
|
-
"jsx": "react-jsx",
|
|
23
|
-
|
|
24
|
-
/* Linting */
|
|
25
|
-
"strict": true,
|
|
26
|
-
"noUnusedLocals": true,
|
|
27
|
-
"noUnusedParameters": true,
|
|
28
|
-
"erasableSyntaxOnly": true,
|
|
29
|
-
"noFallthroughCasesInSwitch": true,
|
|
30
|
-
"noUncheckedSideEffectImports": true
|
|
31
|
-
},
|
|
32
|
-
"include": ["src"]
|
|
33
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": false,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"erasableSyntaxOnly": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["vite.config.ts"]
|
|
26
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from 'vite';
|
|
4
|
-
import dts from 'vite-plugin-dts';
|
|
5
|
-
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
|
|
6
|
-
import react from '@vitejs/plugin-react';
|
|
7
|
-
|
|
8
|
-
// https://vite.dev/config/
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
plugins: [
|
|
11
|
-
vanillaExtractPlugin(),
|
|
12
|
-
react({
|
|
13
|
-
babel: {
|
|
14
|
-
plugins: [['babel-plugin-react-compiler']],
|
|
15
|
-
},
|
|
16
|
-
}),
|
|
17
|
-
dts({
|
|
18
|
-
insertTypesEntry: true,
|
|
19
|
-
include: ['src'],
|
|
20
|
-
rollupTypes: false,
|
|
21
|
-
outDir: 'dist',
|
|
22
|
-
tsconfigPath: './tsconfig.app.json',
|
|
23
|
-
}),
|
|
24
|
-
],
|
|
25
|
-
|
|
26
|
-
build: {
|
|
27
|
-
lib: {
|
|
28
|
-
entry: path.resolve(import.meta.dirname, 'src/index.ts'),
|
|
29
|
-
name: '@pittorica/quote-react',
|
|
30
|
-
formats: ['es', 'cjs'],
|
|
31
|
-
fileName: (format: string): string =>
|
|
32
|
-
`index.${format === 'es' ? 'js' : 'cjs'}`,
|
|
33
|
-
},
|
|
34
|
-
sourcemap: true,
|
|
35
|
-
minify: false,
|
|
36
|
-
},
|
|
37
|
-
});
|