@betterinternship/components 1.3.1 → 1.3.3

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/utils.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import { type ClassValue } from "clsx";
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@betterinternship/components",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "main": "dist/index.esm.js",
5
5
  "module": "dist/index.esm.js",
6
- "types": "dist/index.d.mts",
6
+ "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "rollup -c",
9
9
  "prepare": "npm run build"
package/dist/index.css DELETED
@@ -1,101 +0,0 @@
1
- /* stylePlugin:C:\Users\SeriousDev\Documents\BetterInternship\Package.Components\styles\tailwind.css */
2
- @layer properties;
3
- .inline-flex {
4
- display: inline-flex;
5
- }
6
- .items-center {
7
- align-items: center;
8
- }
9
- .justify-center {
10
- justify-content: center;
11
- }
12
- .rounded-\[0\.33em\] {
13
- border-radius: 0.33em;
14
- }
15
- .border {
16
- border-style: var(--tw-border-style);
17
- border-width: 1px;
18
- }
19
- .px-\[1em\] {
20
- padding-inline: 1em;
21
- }
22
- .py-\[0\.33em\] {
23
- padding-block: 0.33em;
24
- }
25
- .whitespace-nowrap {
26
- white-space: nowrap;
27
- }
28
- .underline-offset-4 {
29
- text-underline-offset: 4px;
30
- }
31
- .outline {
32
- outline-style: var(--tw-outline-style);
33
- outline-width: 1px;
34
- }
35
- .transition-colors {
36
- transition-property:
37
- color,
38
- background-color,
39
- border-color,
40
- outline-color,
41
- text-decoration-color,
42
- fill,
43
- stroke,
44
- --tw-gradient-from,
45
- --tw-gradient-via,
46
- --tw-gradient-to;
47
- transition-timing-function: var(--tw-ease, ease);
48
- transition-duration: var(--tw-duration, 0s);
49
- }
50
- .hover\:underline {
51
- &:hover {
52
- @media (hover: hover) {
53
- text-decoration-line: underline;
54
- }
55
- }
56
- }
57
- .focus\:ring-transparent {
58
- &:focus {
59
- --tw-ring-color: transparent;
60
- }
61
- }
62
- .focus\:outline-none {
63
- &:focus {
64
- --tw-outline-style: none;
65
- outline-style: none;
66
- }
67
- }
68
- .disabled\:pointer-events-none {
69
- &:disabled {
70
- pointer-events: none;
71
- }
72
- }
73
- .disabled\:opacity-50 {
74
- &:disabled {
75
- opacity: 50%;
76
- }
77
- }
78
- .\[\&_svg\]\:pointer-events-none {
79
- & svg {
80
- pointer-events: none;
81
- }
82
- }
83
- .\[\&_svg\]\:shrink-0 {
84
- & svg {
85
- flex-shrink: 0;
86
- }
87
- }
88
- @property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
89
- @property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
90
- @layer properties {
91
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
92
- *,
93
- ::before,
94
- ::after,
95
- ::backdrop {
96
- --tw-border-style: solid;
97
- --tw-outline-style: solid;
98
- }
99
- }
100
- }
101
- /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
package/dist/index.d.mts DELETED
@@ -1,15 +0,0 @@
1
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
- import React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const buttonVariants: (props?: ({
6
- variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
7
- scheme?: "default" | "primary" | "supportive" | "destructive" | "secondary" | null | undefined;
8
- size?: "default" | "sm" | "lg" | "md" | "icon" | "xs" | null | undefined;
9
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
10
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
11
- asChild?: boolean;
12
- }
13
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
14
-
15
- export { Button, type ButtonProps, buttonVariants };
package/dist/index.mjs DELETED
@@ -1,98 +0,0 @@
1
- // src/components/Button.tsx
2
- import React from "react";
3
- import { Slot } from "@radix-ui/react-slot";
4
- import { cva } from "class-variance-authority";
5
-
6
- // src/utils.ts
7
- import { clsx } from "clsx";
8
- import { twMerge } from "tailwind-merge";
9
- function cn(...inputs) {
10
- return twMerge(clsx(inputs));
11
- }
12
-
13
- // src/components/Button.tsx
14
- import { jsx } from "react/jsx-runtime";
15
- var buttonVariants = cva(
16
- [
17
- "inline-flex",
18
- "items-center",
19
- "justify-center",
20
- "gap-2",
21
- "whitespace-nowrap",
22
- "rounded-[0.33em]",
23
- "text-sm",
24
- "font-medium",
25
- "transition-colors",
26
- "focus:outline-none",
27
- "focus:ring-transparent",
28
- "disabled:pointer-events-none",
29
- "disabled:opacity-50",
30
- "[&_svg]:pointer-events-none",
31
- "[&_svg]:size-4",
32
- "[&_svg]:shrink-0"
33
- ],
34
- {
35
- variants: {
36
- variant: {
37
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
38
- outline: "border border-gray-300 text-gray-700 bg-background hover:bg-accent",
39
- ghost: "hover:bg-accent text-gray-700 hover:text-accent-foreground",
40
- link: "text-primary underline-offset-4 hover:underline"
41
- },
42
- scheme: {
43
- default: "",
44
- primary: "bg-primary text-primary-foreground hover:bg-primary/90",
45
- supportive: "bg-supportive text-supportive-foreground hover:bg-supportive/90",
46
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
47
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80"
48
- },
49
- size: {
50
- default: "h-8 px-[1em] py-[0.33em]",
51
- sm: "h-8 px-3",
52
- lg: "h-11 px-8",
53
- md: "h-10 px-6",
54
- icon: "h-10 w-10",
55
- xs: "h-6 px-3 text-xs"
56
- }
57
- },
58
- compoundVariants: [
59
- {
60
- variant: "outline",
61
- scheme: "primary",
62
- class: "bg-background border border-primary text-primary hover:bg-blue-50"
63
- },
64
- {
65
- variant: "outline",
66
- scheme: "supportive",
67
- class: "bg-background border border-supportive text-supportive hover:bg-green-50"
68
- },
69
- {
70
- variant: "outline",
71
- scheme: "destructive",
72
- class: "bg-background border border-destructive text-destructive hover:bg-red-50"
73
- }
74
- ],
75
- defaultVariants: {
76
- variant: "default",
77
- size: "default"
78
- }
79
- }
80
- );
81
- var Button = React.forwardRef(
82
- ({ className, variant, scheme, size, asChild = false, ...props }, ref) => {
83
- const Comp = asChild ? Slot : "button";
84
- return /* @__PURE__ */ jsx(
85
- Comp,
86
- {
87
- className: cn(buttonVariants({ variant, scheme, size, className })),
88
- ref,
89
- ...props
90
- }
91
- );
92
- }
93
- );
94
- Button.displayName = "Button";
95
- export {
96
- Button,
97
- buttonVariants
98
- };
package/dist/tailwind.css DELETED
@@ -1,126 +0,0 @@
1
- /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
- @layer properties;
3
- .inline-flex {
4
- display: inline-flex;
5
- }
6
- .flex-shrink {
7
- flex-shrink: 1;
8
- }
9
- .transform {
10
- transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
11
- }
12
- .items-center {
13
- align-items: center;
14
- }
15
- .justify-center {
16
- justify-content: center;
17
- }
18
- .rounded-\[0\.33em\] {
19
- border-radius: 0.33em;
20
- }
21
- .border {
22
- border-style: var(--tw-border-style);
23
- border-width: 1px;
24
- }
25
- .px-\[1em\] {
26
- padding-inline: 1em;
27
- }
28
- .py-\[0\.33em\] {
29
- padding-block: 0.33em;
30
- }
31
- .whitespace-nowrap {
32
- white-space: nowrap;
33
- }
34
- .underline-offset-4 {
35
- text-underline-offset: 4px;
36
- }
37
- .outline {
38
- outline-style: var(--tw-outline-style);
39
- outline-width: 1px;
40
- }
41
- .transition-colors {
42
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
43
- transition-timing-function: var(--tw-ease, ease);
44
- transition-duration: var(--tw-duration, 0s);
45
- }
46
- .hover\:underline {
47
- &:hover {
48
- @media (hover: hover) {
49
- text-decoration-line: underline;
50
- }
51
- }
52
- }
53
- .focus\:ring-transparent {
54
- &:focus {
55
- --tw-ring-color: transparent;
56
- }
57
- }
58
- .focus\:outline-none {
59
- &:focus {
60
- --tw-outline-style: none;
61
- outline-style: none;
62
- }
63
- }
64
- .disabled\:pointer-events-none {
65
- &:disabled {
66
- pointer-events: none;
67
- }
68
- }
69
- .disabled\:opacity-50 {
70
- &:disabled {
71
- opacity: 50%;
72
- }
73
- }
74
- .\[\&_svg\]\:pointer-events-none {
75
- & svg {
76
- pointer-events: none;
77
- }
78
- }
79
- .\[\&_svg\]\:shrink-0 {
80
- & svg {
81
- flex-shrink: 0;
82
- }
83
- }
84
- @property --tw-rotate-x {
85
- syntax: "*";
86
- inherits: false;
87
- }
88
- @property --tw-rotate-y {
89
- syntax: "*";
90
- inherits: false;
91
- }
92
- @property --tw-rotate-z {
93
- syntax: "*";
94
- inherits: false;
95
- }
96
- @property --tw-skew-x {
97
- syntax: "*";
98
- inherits: false;
99
- }
100
- @property --tw-skew-y {
101
- syntax: "*";
102
- inherits: false;
103
- }
104
- @property --tw-border-style {
105
- syntax: "*";
106
- inherits: false;
107
- initial-value: solid;
108
- }
109
- @property --tw-outline-style {
110
- syntax: "*";
111
- inherits: false;
112
- initial-value: solid;
113
- }
114
- @layer properties {
115
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
116
- *, ::before, ::after, ::backdrop {
117
- --tw-rotate-x: initial;
118
- --tw-rotate-y: initial;
119
- --tw-rotate-z: initial;
120
- --tw-skew-x: initial;
121
- --tw-skew-y: initial;
122
- --tw-border-style: solid;
123
- --tw-outline-style: solid;
124
- }
125
- }
126
- }