@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.
@@ -1,10 +0,0 @@
1
- ._17ay98u0 {
2
- font-style: italic;
3
- quotes: "“" "”" "‘" "’";
4
- }
5
- ._17ay98u0::before {
6
- content: open-quote;
7
- }
8
- ._17ay98u0::after {
9
- content: close-quote;
10
- }
@@ -1,3 +0,0 @@
1
- import { RuntimeFn } from '@vanilla-extract/recipes';
2
- export declare const quoteRecipe: RuntimeFn<Record<string, never>>;
3
- //# sourceMappingURL=quote.css.d.ts.map
@@ -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
@@ -1,2 +0,0 @@
1
- export type { QuoteProps } from './Quote.js';
2
- export { Quote } from './Quote.js';
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
@@ -1,7 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- { "path": "./tsconfig.app.json" },
5
- { "path": "./tsconfig.node.json" }
6
- ]
7
- }
@@ -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
- });