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.
Files changed (48) hide show
  1. package/dist/index.d.mts +5 -0
  2. package/dist/index.d.ts +5 -1
  3. package/dist/index.js +668 -1
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +631 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +11 -11
  8. package/{components → src/components}/config-button.tsx +1 -1
  9. package/src/index.ts +1 -0
  10. package/{lines-overlay.tsx → src/lines-overlay.tsx} +1 -1
  11. package/tsconfig.json +2 -2
  12. package/tsup.config.ts +17 -0
  13. package/dist/components/config-button.d.ts +0 -6
  14. package/dist/components/config-button.js +0 -51
  15. package/dist/components/config-options.d.ts +0 -2
  16. package/dist/components/config-options.js +0 -101
  17. package/dist/components/data.d.ts +0 -25
  18. package/dist/components/data.js +0 -28
  19. package/dist/components/index.d.ts +0 -3
  20. package/dist/components/index.js +0 -3
  21. package/dist/components/move-lines-button.d.ts +0 -4
  22. package/dist/components/move-lines-button.js +0 -44
  23. package/dist/lines-overlay.d.ts +0 -1
  24. package/dist/lines-overlay.js +0 -65
  25. package/dist/types.d.ts +0 -3
  26. package/dist/types.js +0 -1
  27. package/dist/ui/button.d.ts +0 -22
  28. package/dist/ui/button.js +0 -93
  29. package/dist/ui/buttons-wrapper.d.ts +0 -8
  30. package/dist/ui/buttons-wrapper.js +0 -13
  31. package/dist/ui/index.d.ts +0 -3
  32. package/dist/ui/index.js +0 -3
  33. package/dist/ui/lucide-icon.d.ts +0 -34
  34. package/dist/ui/lucide-icon.js +0 -37
  35. package/dist/ui/separator.d.ts +0 -6
  36. package/dist/ui/separator.js +0 -28
  37. package/index.css +0 -0
  38. package/index.ts +0 -1
  39. /package/{comandos.txt → src/comandos.txt} +0 -0
  40. /package/{components → src/components}/config-options.tsx +0 -0
  41. /package/{components → src/components}/data.ts +0 -0
  42. /package/{components → src/components}/index.ts +0 -0
  43. /package/{components → src/components}/move-lines-button.tsx +0 -0
  44. /package/{ui → src/ui}/button.tsx +0 -0
  45. /package/{ui → src/ui}/buttons-wrapper.tsx +0 -0
  46. /package/{ui → src/ui}/index.ts +0 -0
  47. /package/{ui → src/ui}/lucide-icon.tsx +0 -0
  48. /package/{ui → src/ui}/separator.tsx +0 -0
@@ -1,8 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface ButtonsWrapperProps {
3
- children: ReactNode;
4
- className?: string;
5
- gap?: number;
6
- }
7
- export declare const ButtonsWrapper: React.FC<ButtonsWrapperProps>;
8
- export {};
@@ -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
- };
@@ -1,3 +0,0 @@
1
- export * from './button';
2
- export * from './lucide-icon';
3
- export * from './separator';
package/dist/ui/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './button';
2
- export * from './lucide-icon';
3
- export * from './separator';
@@ -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 {};
@@ -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
- };
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- declare const Separator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
3
- orientation?: "horizontal" | "vertical";
4
- decorative?: boolean;
5
- } & React.RefAttributes<HTMLDivElement>>;
6
- export { Separator };
@@ -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
File without changes