@betterinternship/components 1.0.0 → 1.3.1

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.
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
5
+ scheme?: "default" | "primary" | "supportive" | "destructive" | "secondary" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | "md" | "icon" | "xs" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
+ asChild?: boolean;
10
+ }
11
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export { Button, buttonVariants };
@@ -0,0 +1,21 @@
1
+ type ProcessStatus = "pending" | "handled" | "failed";
2
+ interface UseAsyncProcessOptions {
3
+ processId: string;
4
+ baseInterval?: number;
5
+ maxInterval?: number;
6
+ }
7
+ /**
8
+ * Hook for handling async processes on client.
9
+ *
10
+ * @hook
11
+ * @param UseAsyncProcessOptions
12
+ * @returns
13
+ */
14
+ export declare function useAsyncProcess<T>({ processId, baseInterval, maxInterval, }: UseAsyncProcessOptions): {
15
+ status: ProcessStatus;
16
+ attempts: number;
17
+ result: unknown;
18
+ error: string | undefined;
19
+ isFetching: boolean;
20
+ };
21
+ export {};
package/dist/index.css ADDED
@@ -0,0 +1,101 @@
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 */
@@ -0,0 +1,15 @@
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.d.ts CHANGED
@@ -1,34 +1,6 @@
1
- export * as Accordion from '@radix-ui/react-accordion';
2
- export * as AlertDialog from '@radix-ui/react-alert-dialog';
3
- export * as AspectRatio from '@radix-ui/react-aspect-ratio';
4
- export * as Avatar from '@radix-ui/react-avatar';
5
- export * as Checkbox from '@radix-ui/react-checkbox';
6
- export * as Collapsible from '@radix-ui/react-collapsible';
7
- export * as ContextMenu from '@radix-ui/react-context-menu';
8
- export * as Dialog from '@radix-ui/react-dialog';
9
- export * as DropdownMenu from '@radix-ui/react-dropdown-menu';
10
- export * as Form from '@radix-ui/react-form';
11
- export * as HoverCard from '@radix-ui/react-hover-card';
12
- export * as Label from '@radix-ui/react-label';
13
- export * as Menubar from '@radix-ui/react-menubar';
14
- export * as NavigationMenu from '@radix-ui/react-navigation-menu';
15
- export * as Popover from '@radix-ui/react-popover';
16
- export * as Progress from '@radix-ui/react-progress';
17
- export * as RadioGroup from '@radix-ui/react-radio-group';
18
- export * as ScrollArea from '@radix-ui/react-scroll-area';
19
- export * as Select from '@radix-ui/react-select';
20
- export * as Separator from '@radix-ui/react-separator';
21
- export * as Slider from '@radix-ui/react-slider';
22
- export * as Switch from '@radix-ui/react-switch';
23
- export * as Tabs from '@radix-ui/react-tabs';
24
- export * as Toast from '@radix-ui/react-toast';
25
- export * as Toggle from '@radix-ui/react-toggle';
26
- export * as ToggleGroup from '@radix-ui/react-toggle-group';
27
- export * as Toolbar from '@radix-ui/react-toolbar';
28
- export * as Tooltip from '@radix-ui/react-tooltip';
29
- export * as Slot from '@radix-ui/react-slot';
30
- export * as Portal from '@radix-ui/react-portal';
31
- export * as VisuallyHidden from '@radix-ui/react-visually-hidden';
32
- export * as Direction from '@radix-ui/react-direction';
33
- export * as AccessibleIcon from '@radix-ui/react-accessible-icon';
34
- export { Theme, ThemePanel, Box, Flex, Grid, Container, Section, Text, Heading, Code, Em, Strong, Link, Blockquote, Kbd, Quote, Card, Button, IconButton, TextField, TextArea, Table, Callout, Inset, } from '@radix-ui/themes';
1
+ interface PackageConfig {
2
+ orchestratorApi: string;
3
+ }
4
+ export declare let config: PackageConfig;
5
+ export declare const configure: (newConfig: PackageConfig) => void;
6
+ export {};