@mlw-packages/react-components 1.7.24 → 1.7.26

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/index.css CHANGED
@@ -1042,9 +1042,6 @@ body {
1042
1042
  .max-h-\[90dvh\] {
1043
1043
  max-height: 90dvh;
1044
1044
  }
1045
- .max-h-\[calc\(100vh-4rem\)\] {
1046
- max-height: calc(100vh - 4rem);
1047
- }
1048
1045
  .max-h-\[var\(--radix-context-menu-content-available-height\)\] {
1049
1046
  max-height: var(--radix-context-menu-content-available-height);
1050
1047
  }
@@ -1069,9 +1066,6 @@ body {
1069
1066
  .min-h-\[300px\] {
1070
1067
  min-height: 300px;
1071
1068
  }
1072
- .min-h-\[36px\] {
1073
- min-height: 36px;
1074
- }
1075
1069
  .min-h-\[3rem\] {
1076
1070
  min-height: 3rem;
1077
1071
  }
@@ -1369,6 +1363,9 @@ body {
1369
1363
  .max-w-\[calc\(100\%-2rem\)\] {
1370
1364
  max-width: calc(100% - 2rem);
1371
1365
  }
1366
+ .max-w-\[calc\(100vw-16px\)\] {
1367
+ max-width: calc(100vw - 16px);
1368
+ }
1372
1369
  .max-w-full {
1373
1370
  max-width: 100%;
1374
1371
  }
@@ -1788,6 +1785,9 @@ body {
1788
1785
  .overflow-y-scroll {
1789
1786
  overflow-y: scroll;
1790
1787
  }
1788
+ .scroll-smooth {
1789
+ scroll-behavior: smooth;
1790
+ }
1791
1791
  .truncate {
1792
1792
  overflow: hidden;
1793
1793
  text-overflow: ellipsis;
@@ -1847,6 +1847,10 @@ body {
1847
1847
  border-bottom-right-radius: calc(var(--radius) - 2px);
1848
1848
  border-bottom-left-radius: calc(var(--radius) - 2px);
1849
1849
  }
1850
+ .rounded-b-none {
1851
+ border-bottom-right-radius: 0px;
1852
+ border-bottom-left-radius: 0px;
1853
+ }
1850
1854
  .rounded-b-xl {
1851
1855
  border-bottom-right-radius: 0.75rem;
1852
1856
  border-bottom-left-radius: 0.75rem;
@@ -1914,6 +1918,9 @@ body {
1914
1918
  .rounded-bl-md {
1915
1919
  border-bottom-left-radius: calc(var(--radius) - 2px);
1916
1920
  }
1921
+ .rounded-tl-none {
1922
+ border-top-left-radius: 0px;
1923
+ }
1917
1924
  .rounded-tl-sm {
1918
1925
  border-top-left-radius: calc(var(--radius) - 4px);
1919
1926
  }
@@ -1937,6 +1944,10 @@ body {
1937
1944
  border-top-width: 1px;
1938
1945
  border-bottom-width: 1px;
1939
1946
  }
1947
+ .border-y-2 {
1948
+ border-top-width: 2px;
1949
+ border-bottom-width: 2px;
1950
+ }
1940
1951
  .border-b {
1941
1952
  border-bottom-width: 1px;
1942
1953
  }
@@ -1946,9 +1957,6 @@ body {
1946
1957
  .border-l {
1947
1958
  border-left-width: 1px;
1948
1959
  }
1949
- .border-l-2 {
1950
- border-left-width: 2px;
1951
- }
1952
1960
  .border-l-4 {
1953
1961
  border-left-width: 4px;
1954
1962
  }
@@ -1958,6 +1966,9 @@ body {
1958
1966
  .border-t {
1959
1967
  border-top-width: 1px;
1960
1968
  }
1969
+ .border-t-0 {
1970
+ border-top-width: 0px;
1971
+ }
1961
1972
  .border-t-2 {
1962
1973
  border-top-width: 2px;
1963
1974
  }
@@ -3638,6 +3649,12 @@ body {
3638
3649
  .ease-out {
3639
3650
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
3640
3651
  }
3652
+ .\[-ms-overflow-style\:none\] {
3653
+ -ms-overflow-style: none;
3654
+ }
3655
+ .\[scrollbar-width\:none\] {
3656
+ scrollbar-width: none;
3657
+ }
3641
3658
  :root {
3642
3659
  --white: #ffffff;
3643
3660
  --purple: #8e68ff;
@@ -5585,9 +5602,6 @@ body {
5585
5602
  .dark\:hover\:bg-emerald-400\/20:hover:is(.dark *) {
5586
5603
  background-color: rgb(52 211 153 / 0.2);
5587
5604
  }
5588
- .dark\:hover\:bg-input\/50:hover:is(.dark *) {
5589
- background-color: hsl(var(--input) / 0.5);
5590
- }
5591
5605
  .dark\:hover\:bg-orange-400\/20:hover:is(.dark *) {
5592
5606
  background-color: rgb(251 146 60 / 0.2);
5593
5607
  }
@@ -5742,9 +5756,6 @@ body {
5742
5756
  .sm\:h-4 {
5743
5757
  height: 1rem;
5744
5758
  }
5745
- .sm\:h-5 {
5746
- height: 1.25rem;
5747
- }
5748
5759
  .sm\:h-6 {
5749
5760
  height: 1.5rem;
5750
5761
  }
@@ -5754,9 +5765,6 @@ body {
5754
5765
  .sm\:h-9 {
5755
5766
  height: 2.25rem;
5756
5767
  }
5757
- .sm\:min-h-\[40px\] {
5758
- min-height: 40px;
5759
- }
5760
5768
  .sm\:min-h-\[calc\(\(var\(--event-height\)\+var\(--event-gap\)\)\*3\)\] {
5761
5769
  min-height: calc((var(--event-height) + var(--event-gap)) * 3);
5762
5770
  }
@@ -5769,9 +5777,6 @@ body {
5769
5777
  .sm\:w-4 {
5770
5778
  width: 1rem;
5771
5779
  }
5772
- .sm\:w-5 {
5773
- width: 1.25rem;
5774
- }
5775
5780
  .sm\:w-6 {
5776
5781
  width: 1.5rem;
5777
5782
  }
@@ -5848,17 +5853,33 @@ body {
5848
5853
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
5849
5854
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
5850
5855
  }
5851
- .sm\:space-y-3 > :not([hidden]) ~ :not([hidden]) {
5852
- --tw-space-y-reverse: 0;
5853
- margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
5854
- margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
5855
- }
5856
5856
  .sm\:whitespace-normal {
5857
5857
  white-space: normal;
5858
5858
  }
5859
5859
  .sm\:rounded-lg {
5860
5860
  border-radius: var(--radius);
5861
5861
  }
5862
+ .sm\:rounded-b-none {
5863
+ border-bottom-right-radius: 0px;
5864
+ border-bottom-left-radius: 0px;
5865
+ }
5866
+ .sm\:rounded-r-md {
5867
+ border-top-right-radius: calc(var(--radius) - 2px);
5868
+ border-bottom-right-radius: calc(var(--radius) - 2px);
5869
+ }
5870
+ .sm\:rounded-r-none {
5871
+ border-top-right-radius: 0px;
5872
+ border-bottom-right-radius: 0px;
5873
+ }
5874
+ .sm\:border-b {
5875
+ border-bottom-width: 1px;
5876
+ }
5877
+ .sm\:border-r {
5878
+ border-right-width: 1px;
5879
+ }
5880
+ .sm\:border-t {
5881
+ border-top-width: 1px;
5882
+ }
5862
5883
  .sm\:p-2 {
5863
5884
  padding: 0.5rem;
5864
5885
  }
@@ -6112,6 +6133,24 @@ body {
6112
6133
  line-height: 2rem;
6113
6134
  }
6114
6135
  }
6136
+ .\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-full::-webkit-scrollbar-thumb {
6137
+ border-radius: 9999px;
6138
+ }
6139
+ .\[\&\:\:-webkit-scrollbar-thumb\]\:bg-muted::-webkit-scrollbar-thumb {
6140
+ background-color: hsl(var(--muted));
6141
+ }
6142
+ .hover\:\[\&\:\:-webkit-scrollbar-thumb\]\:bg-muted-foreground\/50::-webkit-scrollbar-thumb:hover {
6143
+ background-color: hsl(var(--muted-foreground) / 0.5);
6144
+ }
6145
+ .\[\&\:\:-webkit-scrollbar-track\]\:bg-transparent::-webkit-scrollbar-track {
6146
+ background-color: transparent;
6147
+ }
6148
+ .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
6149
+ display: none;
6150
+ }
6151
+ .\[\&\:\:-webkit-scrollbar\]\:w-2::-webkit-scrollbar {
6152
+ width: 0.5rem;
6153
+ }
6115
6154
  .\[\&\:has\(\[aria-selected\]\)\]\:bg-muted:has([aria-selected]) {
6116
6155
  background-color: hsl(var(--muted));
6117
6156
  }
package/dist/index.d.mts CHANGED
@@ -658,7 +658,7 @@ declare const SheetCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.
658
658
  declare const SheetPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
659
659
  declare const SheetOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
660
660
  declare const sheetVariants: (props?: ({
661
- side?: "bottom" | "left" | "right" | "top" | null | undefined;
661
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
662
662
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
663
663
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
664
664
  }
@@ -791,8 +791,9 @@ type BannerProps = {
791
791
 
792
792
  interface DateTimePickerProps extends ErrorMessageProps {
793
793
  label?: string;
794
- date: Date | undefined;
795
- onChange: (date: Date | undefined) => void;
794
+ date: Date | null;
795
+ onChange?: (date: Date | null) => void;
796
+ onConfirm?: (date: Date | null) => void;
796
797
  displayFormat?: boolean;
797
798
  hideTime?: boolean;
798
799
  hideSeconds?: boolean;
@@ -802,24 +803,27 @@ interface DateTimePickerProps extends ErrorMessageProps {
802
803
  className?: string;
803
804
  error?: string;
804
805
  }
805
- declare function DateTimePicker({ label, date, onChange, displayFormat, hideTime, hideSeconds, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
806
+ declare function DateTimePicker({ label, date, onChange, onConfirm, displayFormat, hideTime, hideSeconds, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
806
807
 
807
808
  interface RangePickerProps extends ErrorMessageProps {
808
809
  value?: DateRange;
809
810
  onChange?: (range: DateRange | undefined) => void;
811
+ onConfirm?: (range: DateRange | undefined) => void;
810
812
  label?: string;
811
813
  minDate?: Date;
812
814
  maxDate?: Date;
813
815
  error?: string | undefined;
816
+ disabled?: boolean;
817
+ className?: string;
814
818
  }
815
- declare function RangePicker({ value, onChange, label, minDate, maxDate, error, }: RangePickerProps): react_jsx_runtime.JSX.Element;
819
+ declare function RangePicker({ value, onChange, onConfirm, label, minDate, maxDate, error, disabled, className, }: RangePickerProps): react_jsx_runtime.JSX.Element;
816
820
  declare namespace RangePicker {
817
821
  var displayName: string;
818
822
  }
819
823
 
820
824
  interface TimePickerProps {
821
- date: Date | undefined;
822
- setDate: (date: Date | undefined) => void;
825
+ date: Date | null;
826
+ setDate: (date: Date | null) => void;
823
827
  hideSeconds?: boolean;
824
828
  enableButton?: boolean;
825
829
  }
@@ -879,8 +883,8 @@ declare function display12HourValue(hours: number): string;
879
883
 
880
884
  interface TimePickerInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
881
885
  picker: TimePickerType;
882
- date: Date | undefined;
883
- setDate: (date: Date | undefined) => void;
886
+ date: Date | null;
887
+ setDate: (date: Date | null) => void;
884
888
  period?: Period;
885
889
  onRightFocus?: () => void;
886
890
  onLeftFocus?: () => void;
package/dist/index.d.ts CHANGED
@@ -658,7 +658,7 @@ declare const SheetCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.
658
658
  declare const SheetPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
659
659
  declare const SheetOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
660
660
  declare const sheetVariants: (props?: ({
661
- side?: "bottom" | "left" | "right" | "top" | null | undefined;
661
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
662
662
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
663
663
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
664
664
  }
@@ -791,8 +791,9 @@ type BannerProps = {
791
791
 
792
792
  interface DateTimePickerProps extends ErrorMessageProps {
793
793
  label?: string;
794
- date: Date | undefined;
795
- onChange: (date: Date | undefined) => void;
794
+ date: Date | null;
795
+ onChange?: (date: Date | null) => void;
796
+ onConfirm?: (date: Date | null) => void;
796
797
  displayFormat?: boolean;
797
798
  hideTime?: boolean;
798
799
  hideSeconds?: boolean;
@@ -802,24 +803,27 @@ interface DateTimePickerProps extends ErrorMessageProps {
802
803
  className?: string;
803
804
  error?: string;
804
805
  }
805
- declare function DateTimePicker({ label, date, onChange, displayFormat, hideTime, hideSeconds, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
806
+ declare function DateTimePicker({ label, date, onChange, onConfirm, displayFormat, hideTime, hideSeconds, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
806
807
 
807
808
  interface RangePickerProps extends ErrorMessageProps {
808
809
  value?: DateRange;
809
810
  onChange?: (range: DateRange | undefined) => void;
811
+ onConfirm?: (range: DateRange | undefined) => void;
810
812
  label?: string;
811
813
  minDate?: Date;
812
814
  maxDate?: Date;
813
815
  error?: string | undefined;
816
+ disabled?: boolean;
817
+ className?: string;
814
818
  }
815
- declare function RangePicker({ value, onChange, label, minDate, maxDate, error, }: RangePickerProps): react_jsx_runtime.JSX.Element;
819
+ declare function RangePicker({ value, onChange, onConfirm, label, minDate, maxDate, error, disabled, className, }: RangePickerProps): react_jsx_runtime.JSX.Element;
816
820
  declare namespace RangePicker {
817
821
  var displayName: string;
818
822
  }
819
823
 
820
824
  interface TimePickerProps {
821
- date: Date | undefined;
822
- setDate: (date: Date | undefined) => void;
825
+ date: Date | null;
826
+ setDate: (date: Date | null) => void;
823
827
  hideSeconds?: boolean;
824
828
  enableButton?: boolean;
825
829
  }
@@ -879,8 +883,8 @@ declare function display12HourValue(hours: number): string;
879
883
 
880
884
  interface TimePickerInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
881
885
  picker: TimePickerType;
882
- date: Date | undefined;
883
- setDate: (date: Date | undefined) => void;
886
+ date: Date | null;
887
+ setDate: (date: Date | null) => void;
884
888
  period?: Period;
885
889
  onRightFocus?: () => void;
886
890
  onLeftFocus?: () => void;