@mlw-packages/react-components 1.7.25 → 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;
@@ -5739,9 +5756,6 @@ body {
5739
5756
  .sm\:h-4 {
5740
5757
  height: 1rem;
5741
5758
  }
5742
- .sm\:h-5 {
5743
- height: 1.25rem;
5744
- }
5745
5759
  .sm\:h-6 {
5746
5760
  height: 1.5rem;
5747
5761
  }
@@ -5751,9 +5765,6 @@ body {
5751
5765
  .sm\:h-9 {
5752
5766
  height: 2.25rem;
5753
5767
  }
5754
- .sm\:min-h-\[40px\] {
5755
- min-height: 40px;
5756
- }
5757
5768
  .sm\:min-h-\[calc\(\(var\(--event-height\)\+var\(--event-gap\)\)\*3\)\] {
5758
5769
  min-height: calc((var(--event-height) + var(--event-gap)) * 3);
5759
5770
  }
@@ -5766,9 +5777,6 @@ body {
5766
5777
  .sm\:w-4 {
5767
5778
  width: 1rem;
5768
5779
  }
5769
- .sm\:w-5 {
5770
- width: 1.25rem;
5771
- }
5772
5780
  .sm\:w-6 {
5773
5781
  width: 1.5rem;
5774
5782
  }
@@ -5845,17 +5853,33 @@ body {
5845
5853
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
5846
5854
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
5847
5855
  }
5848
- .sm\:space-y-3 > :not([hidden]) ~ :not([hidden]) {
5849
- --tw-space-y-reverse: 0;
5850
- margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
5851
- margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
5852
- }
5853
5856
  .sm\:whitespace-normal {
5854
5857
  white-space: normal;
5855
5858
  }
5856
5859
  .sm\:rounded-lg {
5857
5860
  border-radius: var(--radius);
5858
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
+ }
5859
5883
  .sm\:p-2 {
5860
5884
  padding: 0.5rem;
5861
5885
  }
@@ -6109,6 +6133,24 @@ body {
6109
6133
  line-height: 2rem;
6110
6134
  }
6111
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
+ }
6112
6154
  .\[\&\:has\(\[aria-selected\]\)\]\:bg-muted:has([aria-selected]) {
6113
6155
  background-color: hsl(var(--muted));
6114
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,9 +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;
796
- onConfirm?: (date: Date | undefined) => void;
794
+ date: Date | null;
795
+ onChange?: (date: Date | null) => void;
796
+ onConfirm?: (date: Date | null) => void;
797
797
  displayFormat?: boolean;
798
798
  hideTime?: boolean;
799
799
  hideSeconds?: boolean;
@@ -808,19 +808,22 @@ declare function DateTimePicker({ label, date, onChange, onConfirm, displayForma
808
808
  interface RangePickerProps extends ErrorMessageProps {
809
809
  value?: DateRange;
810
810
  onChange?: (range: DateRange | undefined) => void;
811
+ onConfirm?: (range: DateRange | undefined) => void;
811
812
  label?: string;
812
813
  minDate?: Date;
813
814
  maxDate?: Date;
814
815
  error?: string | undefined;
816
+ disabled?: boolean;
817
+ className?: string;
815
818
  }
816
- 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;
817
820
  declare namespace RangePicker {
818
821
  var displayName: string;
819
822
  }
820
823
 
821
824
  interface TimePickerProps {
822
- date: Date | undefined;
823
- setDate: (date: Date | undefined) => void;
825
+ date: Date | null;
826
+ setDate: (date: Date | null) => void;
824
827
  hideSeconds?: boolean;
825
828
  enableButton?: boolean;
826
829
  }
@@ -880,8 +883,8 @@ declare function display12HourValue(hours: number): string;
880
883
 
881
884
  interface TimePickerInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
882
885
  picker: TimePickerType;
883
- date: Date | undefined;
884
- setDate: (date: Date | undefined) => void;
886
+ date: Date | null;
887
+ setDate: (date: Date | null) => void;
885
888
  period?: Period;
886
889
  onRightFocus?: () => void;
887
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,9 +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;
796
- onConfirm?: (date: Date | undefined) => void;
794
+ date: Date | null;
795
+ onChange?: (date: Date | null) => void;
796
+ onConfirm?: (date: Date | null) => void;
797
797
  displayFormat?: boolean;
798
798
  hideTime?: boolean;
799
799
  hideSeconds?: boolean;
@@ -808,19 +808,22 @@ declare function DateTimePicker({ label, date, onChange, onConfirm, displayForma
808
808
  interface RangePickerProps extends ErrorMessageProps {
809
809
  value?: DateRange;
810
810
  onChange?: (range: DateRange | undefined) => void;
811
+ onConfirm?: (range: DateRange | undefined) => void;
811
812
  label?: string;
812
813
  minDate?: Date;
813
814
  maxDate?: Date;
814
815
  error?: string | undefined;
816
+ disabled?: boolean;
817
+ className?: string;
815
818
  }
816
- 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;
817
820
  declare namespace RangePicker {
818
821
  var displayName: string;
819
822
  }
820
823
 
821
824
  interface TimePickerProps {
822
- date: Date | undefined;
823
- setDate: (date: Date | undefined) => void;
825
+ date: Date | null;
826
+ setDate: (date: Date | null) => void;
824
827
  hideSeconds?: boolean;
825
828
  enableButton?: boolean;
826
829
  }
@@ -880,8 +883,8 @@ declare function display12HourValue(hours: number): string;
880
883
 
881
884
  interface TimePickerInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
882
885
  picker: TimePickerType;
883
- date: Date | undefined;
884
- setDate: (date: Date | undefined) => void;
886
+ date: Date | null;
887
+ setDate: (date: Date | null) => void;
885
888
  period?: Period;
886
889
  onRightFocus?: () => void;
887
890
  onLeftFocus?: () => void;