rupoui 1.0.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.
- package/LICENSE +21 -0
- package/README.md +611 -0
- package/dist/components/button/Button.d.ts +17 -0
- package/dist/components/button/button.styles.d.ts +217 -0
- package/dist/components/button/button.types.d.ts +17 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.d.ts +3 -0
- package/dist/components/checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/components/checkbox/checkbox-group-context.d.ts +17 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +377 -0
- package/dist/components/checkbox/checkbox.types.d.ts +159 -0
- package/dist/components/checkbox/example.d.ts +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/useCheckbox.d.ts +314 -0
- package/dist/components/checkbox/useCheckboxGroup.d.ts +283 -0
- package/dist/components/input/Input.d.ts +18 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/input.styles.d.ts +301 -0
- package/dist/components/input/input.types.d.ts +61 -0
- package/dist/components/input-number/InputNumber.d.ts +30 -0
- package/dist/components/input-number/index.d.ts +2 -0
- package/dist/components/input-number/input-number.styles.d.ts +403 -0
- package/dist/components/input-number/input-number.types.d.ts +120 -0
- package/dist/components/input-number/utils.d.ts +6 -0
- package/dist/components/radio/Radio.d.ts +3 -0
- package/dist/components/radio/RadioGroup.d.ts +3 -0
- package/dist/components/radio/index.d.ts +5 -0
- package/dist/components/radio/radio-group-context.d.ts +17 -0
- package/dist/components/radio/radio.styles.d.ts +371 -0
- package/dist/components/radio/radio.types.d.ts +143 -0
- package/dist/components/radio/useRadio.d.ts +314 -0
- package/dist/components/radio/useRadioGroup.d.ts +284 -0
- package/dist/components/select/Select.d.ts +4 -0
- package/dist/components/select/SelectItem.d.ts +6 -0
- package/dist/components/select/index.d.ts +5 -0
- package/dist/components/select/select.styles.d.ts +286 -0
- package/dist/components/select/select.types.d.ts +63 -0
- package/dist/components/select/useSelect.d.ts +19 -0
- package/dist/components/spinner/Spinner.d.ts +6 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/spinner.styles.d.ts +103 -0
- package/dist/components/spinner/spinner.types.d.ts +6 -0
- package/dist/components/switch/Switch.d.ts +3 -0
- package/dist/components/switch/index.d.ts +4 -0
- package/dist/components/switch/switch.styles.d.ts +190 -0
- package/dist/components/switch/switch.types.d.ts +83 -0
- package/dist/components/switch/useSwitch.d.ts +314 -0
- package/dist/components/textarea/Textarea.d.ts +17 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.styles.d.ts +352 -0
- package/dist/components/textarea/textarea.types.d.ts +58 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +5821 -0
- package/dist/motion/focus.d.ts +8 -0
- package/dist/motion/hover.d.ts +9 -0
- package/dist/motion/index.d.ts +5 -0
- package/dist/motion/press.d.ts +9 -0
- package/dist/motion/reveal.d.ts +18 -0
- package/dist/motion/tokens.d.ts +11 -0
- package/dist/provider/RupoUIContext.d.ts +3 -0
- package/dist/provider/RupoUIProvider.d.ts +8 -0
- package/dist/provider/types.d.ts +31 -0
- package/dist/provider/useRupoUI.d.ts +3 -0
- package/dist/style.css +1 -0
- package/dist/styles/tokens/colors.d.ts +26 -0
- package/dist/styles/tokens/index.d.ts +5 -0
- package/dist/styles/tokens/motion.d.ts +11 -0
- package/dist/styles/tokens/radius.d.ts +8 -0
- package/dist/styles/tokens/spacing.d.ts +13 -0
- package/dist/styles/tokens/typography.d.ts +34 -0
- package/dist/tailwind/index.cjs +1 -0
- package/dist/tailwind/index.d.ts +5 -0
- package/dist/tailwind/index.js +112 -0
- package/dist/tailwind/plugin-utils.d.ts +5 -0
- package/dist/tailwind/theme.d.ts +33 -0
- package/package.json +54 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const revealMotion: {
|
|
2
|
+
initial: {
|
|
3
|
+
opacity: number;
|
|
4
|
+
scale: number;
|
|
5
|
+
};
|
|
6
|
+
animate: {
|
|
7
|
+
opacity: number;
|
|
8
|
+
scale: number;
|
|
9
|
+
};
|
|
10
|
+
exit: {
|
|
11
|
+
opacity: number;
|
|
12
|
+
scale: number;
|
|
13
|
+
};
|
|
14
|
+
transition: {
|
|
15
|
+
duration: 0.25;
|
|
16
|
+
ease: readonly [0.4, 0, 0.2, 1];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RupoUIConfig } from './types';
|
|
3
|
+
|
|
4
|
+
export interface RupoUIProviderProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
config?: RupoUIConfig;
|
|
7
|
+
}
|
|
8
|
+
export declare function RupoUIProvider({ children, config }: RupoUIProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ButtonProps } from '../components/button/button.types';
|
|
2
|
+
import { InputProps } from '../components/input/input.types';
|
|
3
|
+
import { InputNumberProps } from '../components/input-number/input-number.types';
|
|
4
|
+
import { SelectProps } from '../components/select/select.types';
|
|
5
|
+
import { TextareaProps } from '../components/textarea/textarea.types';
|
|
6
|
+
import { CheckboxProps, CheckboxGroupProps } from '../components/checkbox/checkbox.types';
|
|
7
|
+
import { RadioGroupProps, RadioProps } from '../components/radio/radio.types';
|
|
8
|
+
import { SwitchProps } from '../components/switch/switch.types';
|
|
9
|
+
|
|
10
|
+
export type ButtonConfig = Omit<ButtonProps, "children" | "onClick" | "className" | "style">;
|
|
11
|
+
export type InputConfig = Omit<InputProps, "onChange" | "className" | "style">;
|
|
12
|
+
export type TextareaConfig = Omit<TextareaProps, "onChange" | "className" | "style">;
|
|
13
|
+
export type InputNumberConfig = Omit<InputNumberProps, "onChange" | "className" | "style" | "value" | "defaultValue">;
|
|
14
|
+
export type SelectConfig = Omit<SelectProps, "onChange" | "className" | "style" | "value" | "defaultValue">;
|
|
15
|
+
export type CheckboxConfig = Omit<CheckboxProps, "children" | "onChange" | "value" | "onValueChange" | "ref">;
|
|
16
|
+
export type CheckboxGroupConfig = Omit<CheckboxGroupProps, "children" | "onChange" | "value" | "defaultValue" | "onValueChange" | "ref">;
|
|
17
|
+
export type RadioConfig = Omit<RadioProps, "children" | "onChange" | "value" | "onValueChange" | "ref">;
|
|
18
|
+
export type RadioGroupConfig = Omit<RadioGroupProps, "children" | "onChange" | "value" | "defaultValue" | "onValueChange" | "ref">;
|
|
19
|
+
export type SwitchConfig = Omit<SwitchProps, "children" | "onChange" | "value" | "onValueChange" | "ref">;
|
|
20
|
+
export interface RupoUIConfig {
|
|
21
|
+
Button?: ButtonConfig;
|
|
22
|
+
Input?: InputConfig;
|
|
23
|
+
Textarea?: TextareaConfig;
|
|
24
|
+
InputNumber?: InputNumberConfig;
|
|
25
|
+
Select?: SelectConfig;
|
|
26
|
+
Checkbox?: CheckboxConfig;
|
|
27
|
+
CheckboxGroup?: CheckboxGroupConfig;
|
|
28
|
+
Radio?: RadioConfig;
|
|
29
|
+
RadioGroup?: RadioGroupConfig;
|
|
30
|
+
Switch?: SwitchConfig;
|
|
31
|
+
}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-100:oklch(96.7% .003 264.542);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.right-1\.5{right:calc(var(--spacing)*1.5)}.right-3{right:calc(var(--spacing)*3)}.left-1\.5{left:calc(var(--spacing)*1.5)}.z-10{z-index:10}.z-50{z-index:50}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-1\/2{height:50%}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\[80\%\]{height:80%}.h-full{height:100%}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-10{min-height:calc(var(--spacing)*10)}.min-h-12{min-height:calc(var(--spacing)*12)}.min-h-\[40px\]{min-height:40px}.min-h-\[60px\]{min-height:60px}.min-h-\[80px\]{min-height:80px}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-\[80\%\]{width:80%}.w-\[calc\(100\%_-_theme\(spacing\.6\)\)\]{width:calc(100% - 1.5rem)}.w-full{width:100%}.max-w-fit{max-width:fit-content}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.scale-50{--tw-scale-x:50%;--tw-scale-y:50%;--tw-scale-z:50%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.resize-x{resize:horizontal}.resize-y{resize:vertical}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\[20px\]{border-radius:20px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-hidden{--tw-border-style:hidden;border-style:hidden}.border-transparent{border-color:#0000}.bg-current{background-color:currentColor}.bg-gray-100{background-color:var(--color-gray-100)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pr-0{padding-right:calc(var(--spacing)*0)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.6rem\]{font-size:.6rem}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-current{color:currentColor}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-data-\[open\=true\]\:rotate-180:is(:where(.group)[data-open=true] *){rotate:180deg}.group-data-\[pressed\=true\]\:w-6:is(:where(.group)[data-pressed=true] *){width:calc(var(--spacing)*6)}.group-data-\[selected\=true\]\:border-current:is(:where(.group)[data-selected=true] *){border-color:currentColor}.group-data-\[selected\=true\]\:bg-transparent:is(:where(.group)[data-selected=true] *){background-color:#0000}.peer-focus-visible\:ring-2:is(:where(.peer):focus-visible~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus-visible\:ring-offset-2:is(:where(.peer):focus-visible~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:right-0:after{content:var(--tw-content);right:calc(var(--spacing)*0)}.after\:bottom-0:after{content:var(--tw-content);bottom:calc(var(--spacing)*0)}.after\:left-0:after{content:var(--tw-content);left:calc(var(--spacing)*0)}.after\:h-\[2px\]:after{content:var(--tw-content);height:2px}.after\:origin-center:after{content:var(--tw-content);transform-origin:50%}.after\:scale-x-0:after{content:var(--tw-content);--tw-scale-x:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.after\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:after\:scale-x-100:focus-within:after{content:var(--tw-content);--tw-scale-x:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\:scale-100:active{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[selected\=true\]\:font-semibold[data-selected=true]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}@media (prefers-color-scheme:dark){.dark\:bg-gray-800{background-color:var(--color-gray-800)}}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
readonly background: {
|
|
3
|
+
readonly DEFAULT: "#ffffff";
|
|
4
|
+
readonly foreground: "#0f172a";
|
|
5
|
+
};
|
|
6
|
+
readonly foreground: {
|
|
7
|
+
readonly DEFAULT: "#0f172a";
|
|
8
|
+
readonly foreground: "#ffffff";
|
|
9
|
+
};
|
|
10
|
+
readonly muted: {
|
|
11
|
+
readonly DEFAULT: "#94a3b8";
|
|
12
|
+
readonly foreground: "#0f172a";
|
|
13
|
+
};
|
|
14
|
+
readonly primary: {
|
|
15
|
+
readonly DEFAULT: "#6366f1";
|
|
16
|
+
readonly foreground: "#ffffff";
|
|
17
|
+
};
|
|
18
|
+
readonly danger: {
|
|
19
|
+
readonly DEFAULT: "#f43f5e";
|
|
20
|
+
readonly foreground: "#ffffff";
|
|
21
|
+
};
|
|
22
|
+
readonly success: {
|
|
23
|
+
readonly DEFAULT: "#10b981";
|
|
24
|
+
readonly foreground: "#ffffff";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const motion: {
|
|
2
|
+
readonly duration: {
|
|
3
|
+
readonly fast: "150ms";
|
|
4
|
+
readonly normal: "300ms";
|
|
5
|
+
readonly slow: "500ms";
|
|
6
|
+
};
|
|
7
|
+
readonly easing: {
|
|
8
|
+
readonly standard: "cubic-bezier(0.4, 0.0, 0.2, 1)";
|
|
9
|
+
readonly emphasized: "cubic-bezier(0.4, 0.0, 0.6, 1)";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const spacing: {
|
|
2
|
+
readonly 0: "0px";
|
|
3
|
+
readonly 1: "0.25rem";
|
|
4
|
+
readonly 2: "0.5rem";
|
|
5
|
+
readonly 3: "0.75rem";
|
|
6
|
+
readonly 4: "1rem";
|
|
7
|
+
readonly 5: "1.25rem";
|
|
8
|
+
readonly 6: "1.5rem";
|
|
9
|
+
readonly 8: "2rem";
|
|
10
|
+
readonly 10: "2.5rem";
|
|
11
|
+
readonly 12: "3rem";
|
|
12
|
+
readonly 16: "4rem";
|
|
13
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const typography: {
|
|
2
|
+
readonly fontFamily: {
|
|
3
|
+
readonly sans: readonly ["Inter", "ui-sans-serif", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "sans-serif"];
|
|
4
|
+
};
|
|
5
|
+
readonly fontSize: {
|
|
6
|
+
readonly xs: readonly ["0.75rem", {
|
|
7
|
+
readonly lineHeight: "1rem";
|
|
8
|
+
}];
|
|
9
|
+
readonly sm: readonly ["0.875rem", {
|
|
10
|
+
readonly lineHeight: "1.25rem";
|
|
11
|
+
}];
|
|
12
|
+
readonly base: readonly ["1rem", {
|
|
13
|
+
readonly lineHeight: "1.5rem";
|
|
14
|
+
}];
|
|
15
|
+
readonly lg: readonly ["1.125rem", {
|
|
16
|
+
readonly lineHeight: "1.75rem";
|
|
17
|
+
}];
|
|
18
|
+
readonly xl: readonly ["1.25rem", {
|
|
19
|
+
readonly lineHeight: "1.75rem";
|
|
20
|
+
}];
|
|
21
|
+
readonly "2xl": readonly ["1.5rem", {
|
|
22
|
+
readonly lineHeight: "2rem";
|
|
23
|
+
}];
|
|
24
|
+
readonly "3xl": readonly ["1.875rem", {
|
|
25
|
+
readonly lineHeight: "2.25rem";
|
|
26
|
+
}];
|
|
27
|
+
};
|
|
28
|
+
readonly fontWeight: {
|
|
29
|
+
readonly normal: "400";
|
|
30
|
+
readonly medium: "500";
|
|
31
|
+
readonly semibold: "600";
|
|
32
|
+
readonly bold: "700";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(n,a){return{handler:n,config:a}}s.withOptions=function(n,a=()=>({})){function e(c){return{handler:n(c),config:a(c)}}return e.__isOptionsFunction=!0,e};var u=s;const r=n=>{var e;const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return a?[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)].join(" "):n.startsWith("rgb")&&((e=n.match(/\d+/g))==null?void 0:e.join(" "))||""},o={background:{DEFAULT:"#ffffff"},foreground:{DEFAULT:"#0f172a"},primary:{DEFAULT:"#6366f1"},secondary:{DEFAULT:"#ec4899"},success:{DEFAULT:"#10b981"},warning:{DEFAULT:"#f59e0b"},danger:{DEFAULT:"#f43f5e"},focus:{DEFAULT:"#6366f1"}},l=u.withOptions((n={})=>({addBase:a,addUtilities:e})=>{const{prefix:c=""}=n,t={"--color-background":r(o.background.DEFAULT),"--color-foreground":r(o.foreground.DEFAULT),"--color-primary":r(o.primary.DEFAULT),"--color-secondary":r(o.secondary.DEFAULT),"--color-success":r(o.success.DEFAULT),"--color-warning":r(o.warning.DEFAULT),"--color-danger":r(o.danger.DEFAULT),"--color-focus":r(o.focus.DEFAULT)},i={"--color-background":r(o.foreground.DEFAULT),"--color-foreground":r(o.background.DEFAULT),"--color-primary":r(o.primary.DEFAULT),"--color-secondary":r(o.secondary.DEFAULT),"--color-success":r(o.success.DEFAULT),"--color-warning":r(o.warning.DEFAULT),"--color-danger":r(o.danger.DEFAULT),"--color-focus":r(o.focus.DEFAULT)};a({":root":t,".dark":i,"@keyframes rupo-spin":{"100%":{transform:"rotate(360deg)"}}}),e({[`.${c}focus-ring`]:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(var(--color-focus) / 1)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"},".rupo-spinner":{width:"1em",height:"1em",borderWidth:"2.5px",borderStyle:"solid",borderColor:"currentColor",borderTopColor:"transparent",borderRadius:"9999px",animation:"rupo-spin 0.8s linear infinite"}})},(n={})=>({theme:{extend:{colors:{primary:"rgb(var(--color-primary) / <alpha-value>)",secondary:"rgb(var(--color-secondary) / <alpha-value>)",background:"rgb(var(--color-background) / <alpha-value>)",foreground:"rgb(var(--color-foreground) / <alpha-value>)",success:"rgb(var(--color-success) / <alpha-value>)",warning:"rgb(var(--color-warning) / <alpha-value>)",danger:"rgb(var(--color-danger) / <alpha-value>)",focus:"rgb(var(--color-focus) / <alpha-value>)"}}}}));exports.rupoUI=l;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
function s(n, a) {
|
|
2
|
+
return { handler: n, config: a };
|
|
3
|
+
}
|
|
4
|
+
s.withOptions = function(n, a = () => ({})) {
|
|
5
|
+
function e(c) {
|
|
6
|
+
return { handler: n(c), config: a(c) };
|
|
7
|
+
}
|
|
8
|
+
return e.__isOptionsFunction = !0, e;
|
|
9
|
+
};
|
|
10
|
+
var f = s;
|
|
11
|
+
const r = (n) => {
|
|
12
|
+
var e;
|
|
13
|
+
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
|
|
14
|
+
return a ? [parseInt(a[1], 16), parseInt(a[2], 16), parseInt(a[3], 16)].join(" ") : n.startsWith("rgb") && ((e = n.match(/\d+/g)) == null ? void 0 : e.join(" ")) || "";
|
|
15
|
+
}, o = {
|
|
16
|
+
background: {
|
|
17
|
+
DEFAULT: "#ffffff"
|
|
18
|
+
},
|
|
19
|
+
foreground: {
|
|
20
|
+
DEFAULT: "#0f172a"
|
|
21
|
+
},
|
|
22
|
+
primary: {
|
|
23
|
+
DEFAULT: "#6366f1"
|
|
24
|
+
},
|
|
25
|
+
secondary: {
|
|
26
|
+
DEFAULT: "#ec4899"
|
|
27
|
+
},
|
|
28
|
+
success: {
|
|
29
|
+
DEFAULT: "#10b981"
|
|
30
|
+
},
|
|
31
|
+
warning: {
|
|
32
|
+
DEFAULT: "#f59e0b"
|
|
33
|
+
},
|
|
34
|
+
danger: {
|
|
35
|
+
DEFAULT: "#f43f5e"
|
|
36
|
+
},
|
|
37
|
+
focus: {
|
|
38
|
+
DEFAULT: "#6366f1"
|
|
39
|
+
// Same as primary for now
|
|
40
|
+
}
|
|
41
|
+
}, l = f.withOptions(
|
|
42
|
+
(n = {}) => ({ addBase: a, addUtilities: e }) => {
|
|
43
|
+
const { prefix: c = "" } = n, t = {
|
|
44
|
+
"--color-background": r(o.background.DEFAULT),
|
|
45
|
+
"--color-foreground": r(o.foreground.DEFAULT),
|
|
46
|
+
"--color-primary": r(o.primary.DEFAULT),
|
|
47
|
+
"--color-secondary": r(o.secondary.DEFAULT),
|
|
48
|
+
"--color-success": r(o.success.DEFAULT),
|
|
49
|
+
"--color-warning": r(o.warning.DEFAULT),
|
|
50
|
+
"--color-danger": r(o.danger.DEFAULT),
|
|
51
|
+
"--color-focus": r(o.focus.DEFAULT)
|
|
52
|
+
}, i = {
|
|
53
|
+
"--color-background": r(o.foreground.DEFAULT),
|
|
54
|
+
// Inverse
|
|
55
|
+
"--color-foreground": r(o.background.DEFAULT),
|
|
56
|
+
// Inverse
|
|
57
|
+
"--color-primary": r(o.primary.DEFAULT),
|
|
58
|
+
"--color-secondary": r(o.secondary.DEFAULT),
|
|
59
|
+
"--color-success": r(o.success.DEFAULT),
|
|
60
|
+
"--color-warning": r(o.warning.DEFAULT),
|
|
61
|
+
"--color-danger": r(o.danger.DEFAULT),
|
|
62
|
+
"--color-focus": r(o.focus.DEFAULT)
|
|
63
|
+
};
|
|
64
|
+
a({
|
|
65
|
+
":root": t,
|
|
66
|
+
".dark": i,
|
|
67
|
+
"@keyframes rupo-spin": {
|
|
68
|
+
"100%": { transform: "rotate(360deg)" }
|
|
69
|
+
}
|
|
70
|
+
}), e({
|
|
71
|
+
[`.${c}focus-ring`]: {
|
|
72
|
+
outline: "2px solid transparent",
|
|
73
|
+
"outline-offset": "2px",
|
|
74
|
+
"--tw-ring-offset-width": "0px",
|
|
75
|
+
"--tw-ring-offset-color": "#fff",
|
|
76
|
+
"--tw-ring-color": "rgb(var(--color-focus) / 1)",
|
|
77
|
+
"--tw-ring-offset-shadow": "var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)",
|
|
78
|
+
"--tw-ring-shadow": "var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",
|
|
79
|
+
"box-shadow": "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"
|
|
80
|
+
},
|
|
81
|
+
".rupo-spinner": {
|
|
82
|
+
width: "1em",
|
|
83
|
+
height: "1em",
|
|
84
|
+
borderWidth: "2.5px",
|
|
85
|
+
borderStyle: "solid",
|
|
86
|
+
borderColor: "currentColor",
|
|
87
|
+
borderTopColor: "transparent",
|
|
88
|
+
borderRadius: "9999px",
|
|
89
|
+
animation: "rupo-spin 0.8s linear infinite"
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
(n = {}) => ({
|
|
94
|
+
theme: {
|
|
95
|
+
extend: {
|
|
96
|
+
colors: {
|
|
97
|
+
primary: "rgb(var(--color-primary) / <alpha-value>)",
|
|
98
|
+
secondary: "rgb(var(--color-secondary) / <alpha-value>)",
|
|
99
|
+
background: "rgb(var(--color-background) / <alpha-value>)",
|
|
100
|
+
foreground: "rgb(var(--color-foreground) / <alpha-value>)",
|
|
101
|
+
success: "rgb(var(--color-success) / <alpha-value>)",
|
|
102
|
+
warning: "rgb(var(--color-warning) / <alpha-value>)",
|
|
103
|
+
danger: "rgb(var(--color-danger) / <alpha-value>)",
|
|
104
|
+
focus: "rgb(var(--color-focus) / <alpha-value>)"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
export {
|
|
111
|
+
l as rupoUI
|
|
112
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const semanticColors: {
|
|
2
|
+
background: {
|
|
3
|
+
DEFAULT: string;
|
|
4
|
+
foreground: string;
|
|
5
|
+
};
|
|
6
|
+
foreground: {
|
|
7
|
+
DEFAULT: string;
|
|
8
|
+
foreground: string;
|
|
9
|
+
};
|
|
10
|
+
primary: {
|
|
11
|
+
DEFAULT: string;
|
|
12
|
+
foreground: string;
|
|
13
|
+
};
|
|
14
|
+
secondary: {
|
|
15
|
+
DEFAULT: string;
|
|
16
|
+
foreground: string;
|
|
17
|
+
};
|
|
18
|
+
success: {
|
|
19
|
+
DEFAULT: string;
|
|
20
|
+
foreground: string;
|
|
21
|
+
};
|
|
22
|
+
warning: {
|
|
23
|
+
DEFAULT: string;
|
|
24
|
+
foreground: string;
|
|
25
|
+
};
|
|
26
|
+
danger: {
|
|
27
|
+
DEFAULT: string;
|
|
28
|
+
foreground: string;
|
|
29
|
+
};
|
|
30
|
+
focus: {
|
|
31
|
+
DEFAULT: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rupoui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./tailwind": {
|
|
16
|
+
"types": "./dist/tailwind/index.d.ts",
|
|
17
|
+
"import": "./dist/tailwind/index.js",
|
|
18
|
+
"require": "./dist/tailwind/index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./style.css": "./dist/style.css"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite",
|
|
27
|
+
"build": "vite build",
|
|
28
|
+
"lint": "eslint ."
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"framer-motion": ">=11.0.0",
|
|
32
|
+
"react": ">=18.0.0",
|
|
33
|
+
"react-dom": ">=18.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
37
|
+
"@types/node": "^25.1.0",
|
|
38
|
+
"@types/react": "^18.0.0",
|
|
39
|
+
"@types/react-dom": "^18.0.0",
|
|
40
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
41
|
+
"eslint": "^8.0.0",
|
|
42
|
+
"tailwindcss": "^4.0.0",
|
|
43
|
+
"typescript": "^5.0.0",
|
|
44
|
+
"vite": "^5.0.0",
|
|
45
|
+
"vite-plugin-dts": "^3.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@floating-ui/react": "^0.27.17",
|
|
49
|
+
"clsx": "^2.1.1",
|
|
50
|
+
"date-fns": "^4.1.0",
|
|
51
|
+
"tailwind-merge": "^3.4.0",
|
|
52
|
+
"tailwind-variants": "^3.2.2"
|
|
53
|
+
}
|
|
54
|
+
}
|