lines-overlay 0.1.19 → 0.1.21
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/index.d.mts +5 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +668 -1
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +631 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +11 -11
- package/{components → src/components}/config-button.tsx +1 -1
- package/src/index.ts +1 -0
- package/{lines-overlay.tsx → src/lines-overlay.tsx} +1 -1
- package/tsconfig.json +2 -2
- package/tsup.config.ts +17 -0
- package/dist/components/config-button.d.ts +0 -6
- package/dist/components/config-button.js +0 -51
- package/dist/components/config-options.d.ts +0 -2
- package/dist/components/config-options.js +0 -101
- package/dist/components/data.d.ts +0 -25
- package/dist/components/data.js +0 -28
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +0 -3
- package/dist/components/move-lines-button.d.ts +0 -4
- package/dist/components/move-lines-button.js +0 -44
- package/dist/lines-overlay.d.ts +0 -1
- package/dist/lines-overlay.js +0 -65
- package/dist/types.d.ts +0 -3
- package/dist/types.js +0 -1
- package/dist/ui/button.d.ts +0 -22
- package/dist/ui/button.js +0 -93
- package/dist/ui/buttons-wrapper.d.ts +0 -8
- package/dist/ui/buttons-wrapper.js +0 -13
- package/dist/ui/index.d.ts +0 -3
- package/dist/ui/index.js +0 -3
- package/dist/ui/lucide-icon.d.ts +0 -34
- package/dist/ui/lucide-icon.js +0 -37
- package/dist/ui/separator.d.ts +0 -6
- package/dist/ui/separator.js +0 -28
- package/index.css +0 -0
- package/index.ts +0 -1
- /package/{comandos.txt → src/comandos.txt} +0 -0
- /package/{components → src/components}/config-options.tsx +0 -0
- /package/{components → src/components}/data.ts +0 -0
- /package/{components → src/components}/index.ts +0 -0
- /package/{components → src/components}/move-lines-button.tsx +0 -0
- /package/{ui → src/ui}/button.tsx +0 -0
- /package/{ui → src/ui}/buttons-wrapper.tsx +0 -0
- /package/{ui → src/ui}/index.ts +0 -0
- /package/{ui → src/ui}/lucide-icon.tsx +0 -0
- /package/{ui → src/ui}/separator.tsx +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const ButtonsWrapper = ({ children, className = '', gap = 3, }) => {
|
|
3
|
-
const css = {
|
|
4
|
-
container: {
|
|
5
|
-
height: 'auto',
|
|
6
|
-
display: 'flex',
|
|
7
|
-
flexWrap: 'wrap',
|
|
8
|
-
alignItems: 'center',
|
|
9
|
-
gap: `${gap * 0.25}rem`,
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
return (_jsx("div", { style: css.container, className: className, children: children }));
|
|
13
|
-
};
|
package/dist/ui/index.d.ts
DELETED
package/dist/ui/index.js
DELETED
package/dist/ui/lucide-icon.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { LucideIcon as LucideIconType, LucideProps } from 'lucide-react';
|
|
2
|
-
type StrokeWidthValue = keyof typeof weights;
|
|
3
|
-
declare const weights: {
|
|
4
|
-
thin: number;
|
|
5
|
-
light: number;
|
|
6
|
-
normal: number;
|
|
7
|
-
semibold: number;
|
|
8
|
-
bold: number;
|
|
9
|
-
extrabold: number;
|
|
10
|
-
};
|
|
11
|
-
type SizeValue = keyof typeof iconSizes;
|
|
12
|
-
declare const iconSizes: {
|
|
13
|
-
xs: string;
|
|
14
|
-
sm: string;
|
|
15
|
-
base: string;
|
|
16
|
-
md: string;
|
|
17
|
-
lg: string;
|
|
18
|
-
xl: string;
|
|
19
|
-
'2xl': string;
|
|
20
|
-
'3xl': string;
|
|
21
|
-
h6: string;
|
|
22
|
-
h5: string;
|
|
23
|
-
h4: string;
|
|
24
|
-
h3: string;
|
|
25
|
-
h2: string;
|
|
26
|
-
h1: string;
|
|
27
|
-
};
|
|
28
|
-
interface IconProps extends Omit<LucideProps, 'size' | 'strokeWidth'> {
|
|
29
|
-
Icon: LucideIconType;
|
|
30
|
-
size?: SizeValue | string;
|
|
31
|
-
strokeWidth?: StrokeWidthValue | string;
|
|
32
|
-
}
|
|
33
|
-
export declare const Icon: ({ Icon, size, className, strokeWidth, fill }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export {};
|
package/dist/ui/lucide-icon.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const weights = {
|
|
3
|
-
thin: 2.25,
|
|
4
|
-
light: 2.35,
|
|
5
|
-
normal: 2.65,
|
|
6
|
-
semibold: 2.75,
|
|
7
|
-
bold: 2.85,
|
|
8
|
-
extrabold: 3,
|
|
9
|
-
};
|
|
10
|
-
const iconSizes = {
|
|
11
|
-
xs: '0.937em',
|
|
12
|
-
sm: '0.968em',
|
|
13
|
-
base: '1em',
|
|
14
|
-
md: '1.033em',
|
|
15
|
-
lg: '1.067em',
|
|
16
|
-
xl: '1.138em',
|
|
17
|
-
'2xl': '1.215em',
|
|
18
|
-
'3xl': '1.296em',
|
|
19
|
-
h6: '1.067em',
|
|
20
|
-
h5: '1.138em',
|
|
21
|
-
h4: '1.215em',
|
|
22
|
-
h3: '1.296em',
|
|
23
|
-
h2: '1.383em',
|
|
24
|
-
h1: '1.4757em',
|
|
25
|
-
};
|
|
26
|
-
const css = {
|
|
27
|
-
wrapper: {
|
|
28
|
-
height: '0.75rem',
|
|
29
|
-
display: 'inline-flex',
|
|
30
|
-
justifyContent: 'center',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
overflow: 'visible',
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
export const Icon = ({ Icon, size, className, strokeWidth, fill }) => {
|
|
36
|
-
return (_jsx("div", { "data-icon": true, style: css.wrapper, children: _jsx(Icon, { size: iconSizes[size] || size || '1.067em', strokeWidth: weights[strokeWidth] || strokeWidth || 2.6, className: className, fill: fill || 'none' }) }));
|
|
37
|
-
};
|
package/dist/ui/separator.d.ts
DELETED
package/dist/ui/separator.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
const css = {
|
|
4
|
-
base: {
|
|
5
|
-
flexShrink: 0,
|
|
6
|
-
backgroundColor: '#e5e7eb',
|
|
7
|
-
},
|
|
8
|
-
horizontal: {
|
|
9
|
-
height: 1,
|
|
10
|
-
width: '100%',
|
|
11
|
-
},
|
|
12
|
-
vertical: {
|
|
13
|
-
height: '100%',
|
|
14
|
-
width: 1,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
const Separator = React.forwardRef(({ className, orientation = 'horizontal', decorative = true, style, ...props }, ref) => {
|
|
18
|
-
const dimensionStyle = orientation === 'horizontal' ? css.horizontal : css.vertical;
|
|
19
|
-
const ariaProps = decorative
|
|
20
|
-
? { role: 'none' }
|
|
21
|
-
: {
|
|
22
|
-
role: 'separator',
|
|
23
|
-
'aria-orientation': orientation,
|
|
24
|
-
};
|
|
25
|
-
return (_jsx("div", { ref: ref, style: { ...css.base, ...dimensionStyle, ...style }, className: className, ...ariaProps, ...props }));
|
|
26
|
-
});
|
|
27
|
-
Separator.displayName = 'Separator';
|
|
28
|
-
export { Separator };
|
package/index.css
DELETED
|
File without changes
|
package/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lines-overlay';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{ui → src/ui}/index.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|