h2o-library 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.
Files changed (86) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/dist/components/index.d.ts +21 -0
  4. package/dist/components/src/accordion.d.ts +9 -0
  5. package/dist/components/src/button.d.ts +14 -0
  6. package/dist/components/src/checkbox.d.ts +17 -0
  7. package/dist/components/src/content-switch.d.ts +14 -0
  8. package/dist/components/src/date-picker.d.ts +13 -0
  9. package/dist/components/src/dropdown.d.ts +19 -0
  10. package/dist/components/src/expandable.d.ts +8 -0
  11. package/dist/components/src/icon.d.ts +9 -0
  12. package/dist/components/src/input.d.ts +16 -0
  13. package/dist/components/src/modal.d.ts +10 -0
  14. package/dist/components/src/multi-select.d.ts +16 -0
  15. package/dist/components/src/popover.d.ts +14 -0
  16. package/dist/components/src/radio-group.d.ts +17 -0
  17. package/dist/components/src/radio.d.ts +6 -0
  18. package/dist/components/src/side-panel.d.ts +10 -0
  19. package/dist/components/src/status.d.ts +8 -0
  20. package/dist/components/src/tabs.d.ts +10 -0
  21. package/dist/components/src/tag.d.ts +9 -0
  22. package/dist/components/src/textarea.d.ts +13 -0
  23. package/dist/components/src/toggle.d.ts +8 -0
  24. package/dist/components/src/tooltip.d.ts +9 -0
  25. package/dist/css/index.css +1 -0
  26. package/dist/css/src/accordion.css +45 -0
  27. package/dist/css/src/button.css +195 -0
  28. package/dist/css/src/calendar.css +16 -0
  29. package/dist/css/src/checkbox.css +150 -0
  30. package/dist/css/src/content-switch.css +77 -0
  31. package/dist/css/src/dropdown.css +220 -0
  32. package/dist/css/src/index.css +56 -0
  33. package/dist/css/src/input.css +192 -0
  34. package/dist/css/src/modal.css +86 -0
  35. package/dist/css/src/multi-select.css +84 -0
  36. package/dist/css/src/popover.css +17 -0
  37. package/dist/css/src/radio-group.css +44 -0
  38. package/dist/css/src/radio.css +146 -0
  39. package/dist/css/src/search.css +148 -0
  40. package/dist/css/src/side-panel.css +76 -0
  41. package/dist/css/src/status.css +31 -0
  42. package/dist/css/src/tabs.css +33 -0
  43. package/dist/css/src/tag.css +52 -0
  44. package/dist/css/src/textarea.css +156 -0
  45. package/dist/css/src/toggle.css +122 -0
  46. package/dist/css/src/tooltip.css +103 -0
  47. package/dist/esm/components/index.d.ts +21 -0
  48. package/dist/esm/components/src/accordion.d.ts +9 -0
  49. package/dist/esm/components/src/button.d.ts +14 -0
  50. package/dist/esm/components/src/checkbox.d.ts +17 -0
  51. package/dist/esm/components/src/content-switch.d.ts +14 -0
  52. package/dist/esm/components/src/date-picker.d.ts +13 -0
  53. package/dist/esm/components/src/dropdown.d.ts +19 -0
  54. package/dist/esm/components/src/expandable.d.ts +8 -0
  55. package/dist/esm/components/src/icon.d.ts +9 -0
  56. package/dist/esm/components/src/input.d.ts +16 -0
  57. package/dist/esm/components/src/modal.d.ts +10 -0
  58. package/dist/esm/components/src/multi-select.d.ts +16 -0
  59. package/dist/esm/components/src/popover.d.ts +14 -0
  60. package/dist/esm/components/src/radio-group.d.ts +17 -0
  61. package/dist/esm/components/src/radio.d.ts +6 -0
  62. package/dist/esm/components/src/side-panel.d.ts +10 -0
  63. package/dist/esm/components/src/status.d.ts +8 -0
  64. package/dist/esm/components/src/tabs.d.ts +10 -0
  65. package/dist/esm/components/src/tag.d.ts +9 -0
  66. package/dist/esm/components/src/textarea.d.ts +13 -0
  67. package/dist/esm/components/src/toggle.d.ts +8 -0
  68. package/dist/esm/components/src/tooltip.d.ts +9 -0
  69. package/dist/esm/css/index.css +1 -0
  70. package/dist/esm/hooks/index.d.ts +1 -0
  71. package/dist/esm/hooks/src/use-click-outside.d.ts +4 -0
  72. package/dist/esm/index.d.ts +5 -0
  73. package/dist/esm/index.js +2 -0
  74. package/dist/esm/index.js.map +1 -0
  75. package/dist/esm/types/index.d.ts +2 -0
  76. package/dist/esm/types/src/icon.d.ts +1 -0
  77. package/dist/esm/utils/index.d.ts +2 -0
  78. package/dist/hooks/index.d.ts +1 -0
  79. package/dist/hooks/src/use-click-outside.d.ts +4 -0
  80. package/dist/index.cjs.js +2 -0
  81. package/dist/index.cjs.js.map +1 -0
  82. package/dist/index.d.ts +5 -0
  83. package/dist/types/index.d.ts +2 -0
  84. package/dist/types/src/icon.d.ts +1 -0
  85. package/dist/utils/index.d.ts +2 -0
  86. package/package.json +43 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 veltiston.ai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # H2O Library
2
+
3
+ A set of components for H2O App development.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install h2o-library
9
+ ```
@@ -0,0 +1,21 @@
1
+ export * from "./src/button";
2
+ export * from "./src/checkbox";
3
+ export * from "./src/icon";
4
+ export * from "./src/radio";
5
+ export * from "./src/tooltip";
6
+ export * from "./src/toggle";
7
+ export * from "./src/expandable";
8
+ export * from "./src/content-switch";
9
+ export * from "./src/input";
10
+ export * from "./src/textarea";
11
+ export * from "./src/dropdown";
12
+ export * from "./src/side-panel";
13
+ export * from "./src/modal";
14
+ export * from "./src/tag";
15
+ export * from "./src/accordion";
16
+ export * from "./src/date-picker";
17
+ export * from "./src/multi-select";
18
+ export * from "./src/radio-group";
19
+ export * from "./src/tabs";
20
+ export * from "./src/status";
21
+ export * from "./src/popover";
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface AccordionProps {
3
+ title: string;
4
+ isOpen: boolean;
5
+ setIsOpen: (isOpen: boolean) => void;
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare const Accordion: ({ title, isOpen, setIsOpen, children, className, }: AccordionProps) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { IconType, TooltipPosition } from "../../types";
2
+ import React from "react";
3
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: "primary" | "secondary" | "ghost" | "danger";
5
+ size?: "sm" | "md" | "lg";
6
+ label?: string;
7
+ icon?: IconType;
8
+ iconOnly?: boolean;
9
+ isLoading?: boolean;
10
+ tooltip?: string;
11
+ tooltipPosition?: TooltipPosition;
12
+ className?: string;
13
+ }
14
+ export declare function Button({ variant, size, label, icon, iconOnly, isLoading, tooltip, tooltipPosition, className, disabled, children, ...props }: ButtonProps): React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
3
+ label?: string;
4
+ className?: string;
5
+ isCard?: boolean;
6
+ isIndeterminate?: boolean;
7
+ }
8
+ export declare const Checkbox: React.FC<CheckboxProps>;
9
+ export interface CheckboxGroupProps {
10
+ label: string;
11
+ children: React.ReactNode;
12
+ className?: string;
13
+ checked?: boolean;
14
+ indeterminate?: boolean;
15
+ onChange?: (checked: boolean) => void;
16
+ }
17
+ export declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ type ContentSwitchProps = {
3
+ options: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ variant?: "primary" | "secondary";
8
+ className?: string;
9
+ optionClassName?: string;
10
+ selected: string;
11
+ onChange: (value: string) => void;
12
+ };
13
+ export declare const ContentSwitch: ({ options, selected, onChange, variant, className, optionClassName, }: ContentSwitchProps) => React.JSX.Element;
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface DatePickerProps {
3
+ initialDate: Date;
4
+ onDateChange: (date: Date, view: string) => void;
5
+ view?: string;
6
+ onViewChange?: (view: string) => void;
7
+ icons?: Record<string, string>;
8
+ externalView?: string;
9
+ startDay?: number;
10
+ weekDuration?: number;
11
+ }
12
+ declare const DatePicker: React.FC<DatePickerProps>;
13
+ export { DatePicker };
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export interface DropdownOption {
3
+ label: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface DropdownProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "value" | "onChange"> {
8
+ size?: "sm" | "md" | "lg";
9
+ label?: string;
10
+ showClear?: boolean;
11
+ note?: string;
12
+ error?: string;
13
+ containerClassName?: string;
14
+ options: DropdownOption[];
15
+ placeholder?: string;
16
+ value?: string;
17
+ onChange?: (value: string) => void;
18
+ }
19
+ export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export interface ExpandableSearchProps {
3
+ onSearch?: (value: string) => void;
4
+ placeholder?: string;
5
+ className?: string;
6
+ value?: string;
7
+ }
8
+ export declare const ExpandableSearch: React.FC<ExpandableSearchProps>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { IconType, TooltipPosition } from "../../types";
3
+ export interface IconProps extends React.SVGProps<SVGSVGElement> {
4
+ icon: IconType;
5
+ size?: number;
6
+ tooltip?: string;
7
+ tooltipPosition?: TooltipPosition;
8
+ }
9
+ export declare const Icon: React.FC<IconProps>;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { IconType, TooltipPosition } from "../../types";
3
+ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
4
+ size?: "sm" | "md" | "lg";
5
+ label?: string;
6
+ leftIcon?: IconType;
7
+ rightIcon?: IconType;
8
+ onRightIconClick?: () => void;
9
+ showClear?: boolean;
10
+ note?: string;
11
+ error?: string;
12
+ containerClassName?: string;
13
+ tooltip?: string;
14
+ tooltipPosition?: TooltipPosition;
15
+ }
16
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface ModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ title?: string;
6
+ description?: string;
7
+ children: React.ReactNode;
8
+ className?: string;
9
+ }
10
+ export declare const Modal: ({ isOpen, onClose, title, description, children, className, }: ModalProps) => React.ReactPortal | null;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ interface Option {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ interface MultiSelectProps {
7
+ options: Option[];
8
+ selectedOptions: Option[];
9
+ setSelectedOptions: (options: Option[]) => void;
10
+ optionsType: string;
11
+ maxSelectedOptions?: number;
12
+ toggleLabel?: string;
13
+ onToggle?: (checked: boolean) => void;
14
+ }
15
+ declare const MultiSelect: ({ options, selectedOptions, setSelectedOptions, optionsType, maxSelectedOptions, toggleLabel, onToggle, }: MultiSelectProps) => React.JSX.Element;
16
+ export { MultiSelect };
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ interface PopOverProps {
3
+ isOpen: boolean;
4
+ setIsOpen: (isOpen: boolean) => void;
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const PopOver: ({ children, isOpen, setIsOpen }: PopOverProps) => React.JSX.Element;
8
+ export declare const PopOverTrigger: ({ children }: {
9
+ children: React.ReactNode;
10
+ }) => React.JSX.Element;
11
+ export declare const PopOverContent: ({ children }: {
12
+ children: React.ReactNode;
13
+ }) => React.ReactPortal | null;
14
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { IconType } from "../../types";
3
+ interface RadioOption {
4
+ label: string;
5
+ value: string;
6
+ icon?: IconType;
7
+ dot?: "active" | "inactive";
8
+ }
9
+ interface RadioGroupProps {
10
+ options: RadioOption[];
11
+ selected: string;
12
+ onSelect: (value: string) => void;
13
+ className?: string;
14
+ optionClassName?: string;
15
+ }
16
+ export declare const RadioGroup: ({ options, selected, onSelect, className, optionClassName, }: RadioGroupProps) => React.JSX.Element;
17
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
3
+ label?: string;
4
+ className?: string;
5
+ }
6
+ export declare const Radio: React.FC<RadioProps>;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface SidePanelProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ title?: string;
6
+ description?: string;
7
+ children: React.ReactNode;
8
+ className?: string;
9
+ }
10
+ export declare const SidePanel: ({ isOpen, onClose, title, description, children, className, }: SidePanelProps) => React.ReactPortal | null;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface StatusProps {
3
+ variant: "active" | "muted" | "destructive";
4
+ className?: string;
5
+ label?: string;
6
+ }
7
+ export declare const Status: ({ variant, className, label, }: StatusProps) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface TabsProps {
3
+ tabs: string[];
4
+ selectedTab: string;
5
+ onSelectTab: (tab: string) => void;
6
+ tabClassName?: string;
7
+ className?: string;
8
+ }
9
+ export declare const Tabs: ({ tabs, selectedTab, onSelectTab, tabClassName, className, }: TabsProps) => React.JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type TagProps = {
3
+ label: string;
4
+ variant?: "primary" | "secondary";
5
+ onRemove: () => void;
6
+ className?: string;
7
+ };
8
+ export declare const Tag: ({ label, variant, onRemove, className, }: TagProps) => React.JSX.Element;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { TooltipPosition } from "../../types";
3
+ export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
4
+ size?: "sm" | "md" | "lg";
5
+ label?: string;
6
+ showClear?: boolean;
7
+ note?: string;
8
+ error?: string;
9
+ containerClassName?: string;
10
+ tooltip?: string;
11
+ tooltipPosition?: TooltipPosition;
12
+ }
13
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export interface ToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
3
+ label?: string;
4
+ className?: string;
5
+ isCard?: boolean;
6
+ isDraggable?: boolean;
7
+ }
8
+ export declare const Toggle: React.FC<ToggleProps>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { TooltipPosition } from "../../types";
3
+ export interface TooltipProps {
4
+ text: string;
5
+ position?: TooltipPosition;
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ }
9
+ export declare const Tooltip: React.FC<TooltipProps>;
@@ -0,0 +1 @@
1
+ :root{--background:0 0% 100%;--foreground:160 10% 10%;--primary-disabled:225 100% 88%;--primary-muted:221 100% 95%;--primary:225 91% 59%;--primary-200:225 100% 43%;--primary-300:225 91% 40%;--primary-400:225 91% 18%;--success-bg:143 26% 86%;--success:130 35% 46%;--success-200:130 76% 26%;--success-300:130 100% 18%;--warn-bg:45 100% 84%;--warn:45 100% 61%;--warn-200:45 100% 45%;--warn-300:45 100% 32%;--destructive-bg:357 100% 92%;--destructive:0 83% 60%;--destructive-200:0 100% 42%;--destructive-300:0 100% 29%;--muted-25:0 0 98%;--muted-50:0 0 96%;--muted:0 0 80%;--muted-200:0 0 67%;--radius-sm:0.25rem;--radius-md:0.375rem;--radius-lg:0.5rem;--radius-full:9999px}@import "./src/accordion.css";@import "./src/button.css";@import "./src/calendar.css";@import "./src/checkbox.css";@import "./src/content-switch.css";@import "./src/dropdown.css";@import "./src/input.css";@import "./src/modal.css";@import "./src/multi-select.css";@import "./src/popover.css";@import "./src/radio.css";@import "./src/search.css";@import "./src/side-panel.css";@import "./src/status.css";@import "./src/tabs.css";@import "./src/tag.css";@import "./src/textarea.css";@import "./src/toggle.css";@import "./src/tooltip.css";
@@ -0,0 +1,45 @@
1
+ .accordion {
2
+ width: 100%;
3
+ overflow: hidden;
4
+ }
5
+
6
+ .accordion-trigger {
7
+ width: 100%;
8
+ display: flex;
9
+ justify-content: space-between;
10
+ align-items: center;
11
+ background: none;
12
+ border: none;
13
+ cursor: pointer;
14
+ color: hsl(var(--foreground));
15
+ transition: all 0.2s;
16
+ font-weight: 500;
17
+ }
18
+
19
+ .accordion-icon {
20
+ color: hsl(var(--muted-200));
21
+ transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
22
+ }
23
+
24
+ .accordion-trigger:hover {
25
+ color: hsl(var(--primary));
26
+ }
27
+
28
+ .accordion-trigger:hover .accordion-icon {
29
+ color: hsl(var(--primary));
30
+ }
31
+
32
+ .accordion-icon-open {
33
+ transform: rotate(180deg);
34
+ }
35
+
36
+ .accordion-content {
37
+ height: 0;
38
+ overflow: hidden;
39
+ transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
40
+ margin-top: 0.5rem;
41
+ }
42
+
43
+ .accordion-content-inner {
44
+ background-color: hsl(var(--background));
45
+ }
@@ -0,0 +1,195 @@
1
+ .button {
2
+ border-radius: var(--radius-md);
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ transition: all 0.3s;
7
+ cursor: pointer;
8
+ min-width: fit-content;
9
+ }
10
+
11
+ .button:focus {
12
+ outline: none;
13
+ }
14
+
15
+ .button:disabled {
16
+ cursor: not-allowed;
17
+ }
18
+
19
+ /* Variants */
20
+ .button--primary {
21
+ background-color: hsl(var(--primary));
22
+ color: white;
23
+ }
24
+
25
+ .button--primary:hover:not(:disabled) {
26
+ background-color: hsl(var(--primary-200));
27
+ }
28
+
29
+ .button--primary:active:not(:disabled) {
30
+ background-color: hsl(var(--primary-300));
31
+ }
32
+
33
+ .button--primary:disabled {
34
+ background-color: hsl(var(--primary-disabled));
35
+ }
36
+
37
+ .button--secondary {
38
+ background-color: transparent;
39
+ border: 1px solid hsl(var(--muted));
40
+ color: hsl(var(--primary));
41
+ }
42
+
43
+ .button--secondary:hover:not(:disabled) {
44
+ border-color: hsl(var(--primary-200));
45
+ color: hsl(var(--primary-200));
46
+ }
47
+
48
+ .button--secondary:active:not(:disabled) {
49
+ border-color: hsl(var(--primary-300));
50
+ color: hsl(var(--primary-300));
51
+ }
52
+
53
+ .button--secondary:disabled {
54
+ color: hsl(var(--primary-disabled));
55
+ border: none;
56
+ }
57
+
58
+ .button--ghost {
59
+ background-color: transparent;
60
+ color: hsl(var(--primary));
61
+ }
62
+
63
+ .button--ghost:hover:not(:disabled) {
64
+ color: hsl(var(--primary-200));
65
+ }
66
+
67
+ .button--ghost:active:not(:disabled) {
68
+ color: hsl(var(--primary-300));
69
+ }
70
+
71
+ .button--ghost:disabled {
72
+ opacity: 0.5;
73
+ color: hsl(var(--primary-disabled));
74
+ }
75
+
76
+ .button--danger {
77
+ background-color: hsl(var(--destructive));
78
+ color: white;
79
+ }
80
+
81
+ .button--danger:hover:not(:disabled) {
82
+ background-color: hsl(var(--destructive-200));
83
+ }
84
+
85
+ .button--danger:active:not(:disabled) {
86
+ background-color: hsl(var(--destructive-300));
87
+ }
88
+
89
+ .button--danger:disabled {
90
+ opacity: 0.5;
91
+ }
92
+
93
+ /* Sizes */
94
+ .button--sm {
95
+ font-size: 0.875rem;
96
+ height: 2rem;
97
+ }
98
+
99
+ .button--sm.button--icon-only {
100
+ width: 2rem;
101
+ padding: 0;
102
+ }
103
+
104
+ .button--sm:not(.button--icon-only) {
105
+ padding: 0 0.75rem;
106
+ }
107
+
108
+ .button--md {
109
+ font-size: 1rem;
110
+ height: 2.5rem;
111
+ }
112
+
113
+ .button--md.button--icon-only {
114
+ width: 2.5rem;
115
+ padding: 0;
116
+ }
117
+
118
+ .button--md:not(.button--icon-only) {
119
+ padding: 0 1rem;
120
+ }
121
+
122
+ .button--lg {
123
+ font-size: 1.125rem;
124
+ height: 3rem;
125
+ }
126
+
127
+ .button--lg.button--icon-only {
128
+ width: 3rem;
129
+ padding: 0;
130
+ }
131
+
132
+ .button--lg:not(.button--icon-only) {
133
+ padding: 0 1.5rem;
134
+ }
135
+
136
+ /* Loading state */
137
+ .button--loading {
138
+ opacity: 0.7;
139
+ cursor: not-allowed;
140
+ }
141
+
142
+ .button--loading .button__content {
143
+ min-width: fit-content;
144
+ white-space: nowrap;
145
+ }
146
+
147
+ /* Content layout */
148
+ .button__content {
149
+ display: flex;
150
+ align-items: center;
151
+ justify-content: center;
152
+ gap: 0.5rem;
153
+ min-width: fit-content;
154
+ }
155
+
156
+ /* Loading spinner */
157
+ .button__spinner {
158
+ animation: spin 1s linear infinite;
159
+ width: 1.25rem;
160
+ height: 1.25rem;
161
+ flex-shrink: 0;
162
+ }
163
+
164
+ .button__spinner-circle {
165
+ opacity: 0.25;
166
+ }
167
+
168
+ .button__spinner-path {
169
+ opacity: 0.75;
170
+ }
171
+
172
+ @keyframes spin {
173
+ from {
174
+ transform: rotate(0deg);
175
+ }
176
+ to {
177
+ transform: rotate(360deg);
178
+ }
179
+ }
180
+
181
+ /* Icon sizes */
182
+ .button--sm .button__icon {
183
+ width: 20px;
184
+ height: 20px;
185
+ }
186
+
187
+ .button--md .button__icon {
188
+ width: 24px;
189
+ height: 24px;
190
+ }
191
+
192
+ .button--lg .button__icon {
193
+ width: 28px;
194
+ height: 28px;
195
+ }
@@ -0,0 +1,16 @@
1
+ .calendar-day-today {
2
+ color: hsl(var(--primary));
3
+ font-weight: 500;
4
+ }
5
+
6
+ .calendar-day-today::before {
7
+ content: "";
8
+ position: absolute;
9
+ width: 4px;
10
+ height: 4px;
11
+ bottom: 4px;
12
+ left: 50%;
13
+ transform: translateX(-50%);
14
+ background-color: hsl(var(--primary));
15
+ border-radius: 50%;
16
+ }