@jackcrane/ui 0.1.10 → 0.1.11

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/jcui.cjs.js CHANGED
@@ -795,7 +795,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
795
795
  inherits: true;
796
796
  initial-value: transparent;
797
797
  }
798
- ._trigger_1q8xu_7 {
798
+ ._trigger_7ctf7_7 {
799
799
  display: inline-flex;
800
800
  align-items: center;
801
801
  justify-content: space-between;
@@ -808,29 +808,38 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
808
808
  color: var(--button-color, inherit);
809
809
  cursor: pointer;
810
810
  }
811
- ._trigger_1q8xu_7:hover {
811
+ ._trigger_7ctf7_7:hover {
812
812
  --dropdown-bg: var(--secondary-color-100);
813
813
  }
814
- ._trigger_1q8xu_7:active {
814
+ ._trigger_7ctf7_7:active {
815
815
  --dropdown-bg: var(--secondary-color-200);
816
816
  }
817
- ._large_1q8xu_29 {
817
+ ._pageBackground_7ctf7_29 {
818
+ --dropdown-bg: var(--body-bg);
819
+ --button-bg: var(--body-bg);
820
+ }
821
+ ._pageBackground_7ctf7_29:hover,
822
+ ._pageBackground_7ctf7_29:active {
823
+ --dropdown-bg: var(--body-bg);
824
+ --button-bg: var(--body-bg);
825
+ }
826
+ ._large_7ctf7_40 {
818
827
  font-size: 1.25rem;
819
828
  padding: 0.75rem 1.25rem;
820
829
  }
821
- ._small_1q8xu_34 {
830
+ ._small_7ctf7_45 {
822
831
  font-size: 0.75rem;
823
832
  padding: 0.25rem 0.5rem;
824
833
  }
825
- ._disabled_1q8xu_39 {
834
+ ._disabled_7ctf7_50 {
826
835
  opacity: 0.5;
827
836
  cursor: not-allowed;
828
837
  }
829
- ._icon_1q8xu_44 {
838
+ ._icon_7ctf7_55 {
830
839
  opacity: 0.65;
831
840
  font-size: 0.85rem;
832
841
  }
833
- ._content_1q8xu_49 {
842
+ ._content_7ctf7_60 {
834
843
  background-color: var(--body-bg);
835
844
  border: var(--border-thickness) solid var(--border-color);
836
845
  --button-bg: var(--body-bg);
@@ -844,26 +853,26 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
844
853
  will-change: transform, opacity;
845
854
  transform: translateY(-1px);
846
855
  }
847
- ._content_1q8xu_49[data-state="closed"] ._viewport_1q8xu_64 {
856
+ ._content_7ctf7_60[data-state="closed"] ._viewport_7ctf7_75 {
848
857
  animation: none;
849
858
  }
850
- ._content_1q8xu_49[data-state="open"][data-side="bottom"] ._viewport_1q8xu_64 {
851
- animation: _slideUpAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
859
+ ._content_7ctf7_60[data-state="open"][data-side="bottom"] ._viewport_7ctf7_75 {
860
+ animation: _slideUpAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
852
861
  transform-origin: top center;
853
862
  }
854
- ._content_1q8xu_49[data-state="open"][data-side="top"] ._viewport_1q8xu_64 {
855
- animation: _slideDownAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
863
+ ._content_7ctf7_60[data-state="open"][data-side="top"] ._viewport_7ctf7_75 {
864
+ animation: _slideDownAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
856
865
  transform-origin: bottom center;
857
866
  }
858
- ._content_1q8xu_49[data-state="open"][data-side="left"] ._viewport_1q8xu_64 {
859
- animation: _slideRightAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
867
+ ._content_7ctf7_60[data-state="open"][data-side="left"] ._viewport_7ctf7_75 {
868
+ animation: _slideRightAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
860
869
  transform-origin: right center;
861
870
  }
862
- ._content_1q8xu_49[data-state="open"][data-side="right"] ._viewport_1q8xu_64 {
863
- animation: _slideLeftAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
871
+ ._content_7ctf7_60[data-state="open"][data-side="right"] ._viewport_7ctf7_75 {
872
+ animation: _slideLeftAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
864
873
  transform-origin: left center;
865
874
  }
866
- ._viewport_1q8xu_64 {
875
+ ._viewport_7ctf7_75 {
867
876
  display: flex;
868
877
  flex-direction: column;
869
878
  animation-duration: 180ms;
@@ -872,7 +881,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
872
881
  will-change: transform, opacity;
873
882
  transform: none;
874
883
  }
875
- ._item_1q8xu_98 {
884
+ ._item_7ctf7_109 {
876
885
  display: flex;
877
886
  align-items: center;
878
887
  justify-content: flex-start;
@@ -885,91 +894,91 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
885
894
  background: transparent;
886
895
  text-decoration: none;
887
896
  }
888
- ._item_1q8xu_98[data-highlighted] {
897
+ ._item_7ctf7_109[data-highlighted] {
889
898
  background-color: var(--secondary-color-100);
890
899
  }
891
- ._item_1q8xu_98[data-disabled] {
900
+ ._item_7ctf7_109[data-disabled] {
892
901
  opacity: 0.5;
893
902
  cursor: not-allowed;
894
903
  }
895
- ._itemLabel_1q8xu_121 {
904
+ ._itemLabel_7ctf7_132 {
896
905
  flex: 1;
897
906
  }
898
- ._itemIcon_1q8xu_125 {
907
+ ._itemIcon_7ctf7_136 {
899
908
  display: inline-flex;
900
909
  align-items: center;
901
910
  justify-content: center;
902
911
  width: 1.25rem;
903
912
  height: 1.25rem;
904
913
  }
905
- ._itemIcon_1q8xu_125 svg {
914
+ ._itemIcon_7ctf7_136 svg {
906
915
  height: 1.25rem;
907
916
  }
908
- ._separator_1q8xu_137 {
917
+ ._separator_7ctf7_148 {
909
918
  height: var(--border-thickness);
910
919
  background-color: var(--border-color);
911
920
  }
912
- ._arrow_1q8xu_142 {
921
+ ._arrow_7ctf7_153 {
913
922
  fill: var(--body-bg);
914
923
  stroke: var(--border-color);
915
924
  stroke-width: var(--border-thickness);
916
925
  stroke-linejoin: round;
917
926
  }
918
- ._primary_1q8xu_149 {
927
+ ._primary_7ctf7_160 {
919
928
  --dropdown-bg: var(--primary-color-100);
920
929
  --border-color: var(--primary-color-300);
921
930
  --button-color: var(--primary-color-800);
922
931
  --border-accent-color: var(--primary-color-600);
923
932
  }
924
- ._primary_1q8xu_149:hover {
933
+ ._primary_7ctf7_160:hover {
925
934
  --dropdown-bg: var(--primary-color-200);
926
935
  }
927
- ._success_1q8xu_160 {
936
+ ._success_7ctf7_171 {
928
937
  --dropdown-bg: var(--success-color-100);
929
938
  --border-color: var(--success-color-300);
930
939
  --button-color: var(--success-color-800);
931
940
  --border-accent-color: var(--success-color-600);
932
941
  }
933
- ._success_1q8xu_160:hover {
942
+ ._success_7ctf7_171:hover {
934
943
  --dropdown-bg: var(--success-color-200);
935
944
  }
936
- ._warning_1q8xu_171 {
945
+ ._warning_7ctf7_182 {
937
946
  --dropdown-bg: var(--warning-color-100);
938
947
  --border-color: var(--warning-color-300);
939
948
  --button-color: var(--warning-color-800);
940
949
  --border-accent-color: var(--warning-color-600);
941
950
  }
942
- ._warning_1q8xu_171:hover {
951
+ ._warning_7ctf7_182:hover {
943
952
  --dropdown-bg: var(--warning-color-200);
944
953
  }
945
- ._danger_1q8xu_182 {
954
+ ._danger_7ctf7_193 {
946
955
  --dropdown-bg: var(--danger-color-100);
947
956
  --border-color: var(--danger-color-300);
948
957
  --button-color: var(--danger-color-800);
949
958
  --border-accent-color: var(--danger-color-600);
950
959
  }
951
- ._danger_1q8xu_182:hover {
960
+ ._danger_7ctf7_193:hover {
952
961
  --dropdown-bg: var(--danger-color-200);
953
962
  }
954
- ._info_1q8xu_193 {
963
+ ._info_7ctf7_204 {
955
964
  --dropdown-bg: var(--info-color-100);
956
965
  --border-color: var(--info-color-300);
957
966
  --button-color: var(--info-color-800);
958
967
  --border-accent-color: var(--info-color-600);
959
968
  }
960
- ._info_1q8xu_193:hover {
969
+ ._info_7ctf7_204:hover {
961
970
  --dropdown-bg: var(--info-color-200);
962
971
  }
963
- ._secondary_1q8xu_204 {
972
+ ._secondary_7ctf7_215 {
964
973
  --dropdown-bg: var(--secondary-color-100);
965
974
  --border-color: var(--secondary-color-300);
966
975
  --button-color: var(--secondary-color-800);
967
976
  --border-accent-color: var(--secondary-color-600);
968
977
  }
969
- ._secondary_1q8xu_204:hover {
978
+ ._secondary_7ctf7_215:hover {
970
979
  --dropdown-bg: var(--secondary-color-200);
971
980
  }
972
- @keyframes _slideUpAndFade_1q8xu_1 {
981
+ @keyframes _slideUpAndFade_7ctf7_1 {
973
982
  from {
974
983
  opacity: 0;
975
984
  transform: translateY(2px);
@@ -979,7 +988,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
979
988
  transform: translateY(0);
980
989
  }
981
990
  }
982
- @keyframes _slideRightAndFade_1q8xu_1 {
991
+ @keyframes _slideRightAndFade_7ctf7_1 {
983
992
  from {
984
993
  opacity: 0;
985
994
  transform: translateX(-2px);
@@ -989,7 +998,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
989
998
  transform: translateX(0);
990
999
  }
991
1000
  }
992
- @keyframes _slideDownAndFade_1q8xu_1 {
1001
+ @keyframes _slideDownAndFade_7ctf7_1 {
993
1002
  from {
994
1003
  opacity: 0;
995
1004
  transform: translateY(-2px);
@@ -999,7 +1008,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
999
1008
  transform: translateY(0);
1000
1009
  }
1001
1010
  }
1002
- @keyframes _slideLeftAndFade_1q8xu_1 {
1011
+ @keyframes _slideLeftAndFade_7ctf7_1 {
1003
1012
  from {
1004
1013
  opacity: 0;
1005
1014
  transform: translateX(2px);
@@ -1932,7 +1941,7 @@ function clsx() {
1932
1941
  return n2;
1933
1942
  }
1934
1943
  const button = "_button_105y0_7";
1935
- const pageBackground$2 = "_pageBackground_105y0_24";
1944
+ const pageBackground$3 = "_pageBackground_105y0_24";
1936
1945
  const large$6 = "_large_105y0_34";
1937
1946
  const small$6 = "_small_105y0_39";
1938
1947
  const disabled$6 = "_disabled_105y0_44";
@@ -1944,7 +1953,7 @@ const info$8 = "_info_105y0_103";
1944
1953
  const secondary$8 = "_secondary_105y0_116";
1945
1954
  const styles$b = {
1946
1955
  button,
1947
- pageBackground: pageBackground$2,
1956
+ pageBackground: pageBackground$3,
1948
1957
  large: large$6,
1949
1958
  small: small$6,
1950
1959
  disabled: disabled$6,
@@ -2109,7 +2118,7 @@ function requireClassnames() {
2109
2118
  var classnamesExports = requireClassnames();
2110
2119
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
2111
2120
  const card = "_card_et6fi_1";
2112
- const pageBackground$1 = "_pageBackground_et6fi_11";
2121
+ const pageBackground$2 = "_pageBackground_et6fi_11";
2113
2122
  const title$1 = "_title_et6fi_18";
2114
2123
  const body$1 = "_body_et6fi_25";
2115
2124
  const footer$1 = "_footer_et6fi_30";
@@ -2123,7 +2132,7 @@ const info$7 = "_info_et6fi_79";
2123
2132
  const secondary$7 = "_secondary_et6fi_86";
2124
2133
  const styles$9 = {
2125
2134
  card,
2126
- pageBackground: pageBackground$1,
2135
+ pageBackground: pageBackground$2,
2127
2136
  title: title$1,
2128
2137
  body: body$1,
2129
2138
  footer: footer$1,
@@ -19214,7 +19223,7 @@ const RadarChart = ({
19214
19223
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ObservablePlot, { options, className, style });
19215
19224
  };
19216
19225
  const input = "_input_1ymvl_7";
19217
- const pageBackground = "_pageBackground_1ymvl_24";
19226
+ const pageBackground$1 = "_pageBackground_1ymvl_24";
19218
19227
  const large$3 = "_large_1ymvl_38";
19219
19228
  const small$3 = "_small_1ymvl_43";
19220
19229
  const disabled$3 = "_disabled_1ymvl_48";
@@ -19228,7 +19237,7 @@ const field = "_field_1ymvl_106";
19228
19237
  const label$1 = "_label_1ymvl_112";
19229
19238
  const styles$6 = {
19230
19239
  input,
19231
- pageBackground,
19240
+ pageBackground: pageBackground$1,
19232
19241
  large: large$3,
19233
19242
  small: small$3,
19234
19243
  disabled: disabled$3,
@@ -25571,30 +25580,32 @@ var Portal2 = DropdownMenuPortal;
25571
25580
  var Content2 = DropdownMenuContent;
25572
25581
  var Item2 = DropdownMenuItem;
25573
25582
  var Separator2 = DropdownMenuSeparator;
25574
- const trigger = "_trigger_1q8xu_7";
25575
- const large = "_large_1q8xu_29";
25576
- const small = "_small_1q8xu_34";
25577
- const disabled = "_disabled_1q8xu_39";
25578
- const icon = "_icon_1q8xu_44";
25579
- const content$2 = "_content_1q8xu_49";
25580
- const viewport = "_viewport_1q8xu_64";
25581
- const slideUpAndFade = "_slideUpAndFade_1q8xu_1";
25582
- const slideDownAndFade = "_slideDownAndFade_1q8xu_1";
25583
- const slideRightAndFade = "_slideRightAndFade_1q8xu_1";
25584
- const slideLeftAndFade = "_slideLeftAndFade_1q8xu_1";
25585
- const item = "_item_1q8xu_98";
25586
- const itemLabel = "_itemLabel_1q8xu_121";
25587
- const itemIcon = "_itemIcon_1q8xu_125";
25588
- const separator = "_separator_1q8xu_137";
25589
- const arrow = "_arrow_1q8xu_142";
25590
- const primary$2 = "_primary_1q8xu_149";
25591
- const success$2 = "_success_1q8xu_160";
25592
- const warning$2 = "_warning_1q8xu_171";
25593
- const danger$2 = "_danger_1q8xu_182";
25594
- const info$2 = "_info_1q8xu_193";
25595
- const secondary$2 = "_secondary_1q8xu_204";
25583
+ const trigger = "_trigger_7ctf7_7";
25584
+ const pageBackground = "_pageBackground_7ctf7_29";
25585
+ const large = "_large_7ctf7_40";
25586
+ const small = "_small_7ctf7_45";
25587
+ const disabled = "_disabled_7ctf7_50";
25588
+ const icon = "_icon_7ctf7_55";
25589
+ const content$2 = "_content_7ctf7_60";
25590
+ const viewport = "_viewport_7ctf7_75";
25591
+ const slideUpAndFade = "_slideUpAndFade_7ctf7_1";
25592
+ const slideDownAndFade = "_slideDownAndFade_7ctf7_1";
25593
+ const slideRightAndFade = "_slideRightAndFade_7ctf7_1";
25594
+ const slideLeftAndFade = "_slideLeftAndFade_7ctf7_1";
25595
+ const item = "_item_7ctf7_109";
25596
+ const itemLabel = "_itemLabel_7ctf7_132";
25597
+ const itemIcon = "_itemIcon_7ctf7_136";
25598
+ const separator = "_separator_7ctf7_148";
25599
+ const arrow = "_arrow_7ctf7_153";
25600
+ const primary$2 = "_primary_7ctf7_160";
25601
+ const success$2 = "_success_7ctf7_171";
25602
+ const warning$2 = "_warning_7ctf7_182";
25603
+ const danger$2 = "_danger_7ctf7_193";
25604
+ const info$2 = "_info_7ctf7_204";
25605
+ const secondary$2 = "_secondary_7ctf7_215";
25596
25606
  const styles$3 = {
25597
25607
  trigger,
25608
+ pageBackground,
25598
25609
  large,
25599
25610
  small,
25600
25611
  disabled,
@@ -25637,6 +25648,7 @@ function Dropdown({
25637
25648
  }) {
25638
25649
  const triggerClassName = clsx(
25639
25650
  styles$3.trigger,
25651
+ !variant && styles$3.pageBackground,
25640
25652
  variant && styles$3[variant],
25641
25653
  chamfer2 && chamferStyles.chamfer,
25642
25654
  size2 === "large" && styles$3.large,
package/dist/jcui.es.js CHANGED
@@ -795,7 +795,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
795
795
  inherits: true;
796
796
  initial-value: transparent;
797
797
  }
798
- ._trigger_1q8xu_7 {
798
+ ._trigger_7ctf7_7 {
799
799
  display: inline-flex;
800
800
  align-items: center;
801
801
  justify-content: space-between;
@@ -808,29 +808,38 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
808
808
  color: var(--button-color, inherit);
809
809
  cursor: pointer;
810
810
  }
811
- ._trigger_1q8xu_7:hover {
811
+ ._trigger_7ctf7_7:hover {
812
812
  --dropdown-bg: var(--secondary-color-100);
813
813
  }
814
- ._trigger_1q8xu_7:active {
814
+ ._trigger_7ctf7_7:active {
815
815
  --dropdown-bg: var(--secondary-color-200);
816
816
  }
817
- ._large_1q8xu_29 {
817
+ ._pageBackground_7ctf7_29 {
818
+ --dropdown-bg: var(--body-bg);
819
+ --button-bg: var(--body-bg);
820
+ }
821
+ ._pageBackground_7ctf7_29:hover,
822
+ ._pageBackground_7ctf7_29:active {
823
+ --dropdown-bg: var(--body-bg);
824
+ --button-bg: var(--body-bg);
825
+ }
826
+ ._large_7ctf7_40 {
818
827
  font-size: 1.25rem;
819
828
  padding: 0.75rem 1.25rem;
820
829
  }
821
- ._small_1q8xu_34 {
830
+ ._small_7ctf7_45 {
822
831
  font-size: 0.75rem;
823
832
  padding: 0.25rem 0.5rem;
824
833
  }
825
- ._disabled_1q8xu_39 {
834
+ ._disabled_7ctf7_50 {
826
835
  opacity: 0.5;
827
836
  cursor: not-allowed;
828
837
  }
829
- ._icon_1q8xu_44 {
838
+ ._icon_7ctf7_55 {
830
839
  opacity: 0.65;
831
840
  font-size: 0.85rem;
832
841
  }
833
- ._content_1q8xu_49 {
842
+ ._content_7ctf7_60 {
834
843
  background-color: var(--body-bg);
835
844
  border: var(--border-thickness) solid var(--border-color);
836
845
  --button-bg: var(--body-bg);
@@ -844,26 +853,26 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
844
853
  will-change: transform, opacity;
845
854
  transform: translateY(-1px);
846
855
  }
847
- ._content_1q8xu_49[data-state="closed"] ._viewport_1q8xu_64 {
856
+ ._content_7ctf7_60[data-state="closed"] ._viewport_7ctf7_75 {
848
857
  animation: none;
849
858
  }
850
- ._content_1q8xu_49[data-state="open"][data-side="bottom"] ._viewport_1q8xu_64 {
851
- animation: _slideUpAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
859
+ ._content_7ctf7_60[data-state="open"][data-side="bottom"] ._viewport_7ctf7_75 {
860
+ animation: _slideUpAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
852
861
  transform-origin: top center;
853
862
  }
854
- ._content_1q8xu_49[data-state="open"][data-side="top"] ._viewport_1q8xu_64 {
855
- animation: _slideDownAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
863
+ ._content_7ctf7_60[data-state="open"][data-side="top"] ._viewport_7ctf7_75 {
864
+ animation: _slideDownAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
856
865
  transform-origin: bottom center;
857
866
  }
858
- ._content_1q8xu_49[data-state="open"][data-side="left"] ._viewport_1q8xu_64 {
859
- animation: _slideRightAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
867
+ ._content_7ctf7_60[data-state="open"][data-side="left"] ._viewport_7ctf7_75 {
868
+ animation: _slideRightAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
860
869
  transform-origin: right center;
861
870
  }
862
- ._content_1q8xu_49[data-state="open"][data-side="right"] ._viewport_1q8xu_64 {
863
- animation: _slideLeftAndFade_1q8xu_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
871
+ ._content_7ctf7_60[data-state="open"][data-side="right"] ._viewport_7ctf7_75 {
872
+ animation: _slideLeftAndFade_7ctf7_1 180ms cubic-bezier(0.16, 1, 0.3, 1);
864
873
  transform-origin: left center;
865
874
  }
866
- ._viewport_1q8xu_64 {
875
+ ._viewport_7ctf7_75 {
867
876
  display: flex;
868
877
  flex-direction: column;
869
878
  animation-duration: 180ms;
@@ -872,7 +881,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
872
881
  will-change: transform, opacity;
873
882
  transform: none;
874
883
  }
875
- ._item_1q8xu_98 {
884
+ ._item_7ctf7_109 {
876
885
  display: flex;
877
886
  align-items: center;
878
887
  justify-content: flex-start;
@@ -885,91 +894,91 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
885
894
  background: transparent;
886
895
  text-decoration: none;
887
896
  }
888
- ._item_1q8xu_98[data-highlighted] {
897
+ ._item_7ctf7_109[data-highlighted] {
889
898
  background-color: var(--secondary-color-100);
890
899
  }
891
- ._item_1q8xu_98[data-disabled] {
900
+ ._item_7ctf7_109[data-disabled] {
892
901
  opacity: 0.5;
893
902
  cursor: not-allowed;
894
903
  }
895
- ._itemLabel_1q8xu_121 {
904
+ ._itemLabel_7ctf7_132 {
896
905
  flex: 1;
897
906
  }
898
- ._itemIcon_1q8xu_125 {
907
+ ._itemIcon_7ctf7_136 {
899
908
  display: inline-flex;
900
909
  align-items: center;
901
910
  justify-content: center;
902
911
  width: 1.25rem;
903
912
  height: 1.25rem;
904
913
  }
905
- ._itemIcon_1q8xu_125 svg {
914
+ ._itemIcon_7ctf7_136 svg {
906
915
  height: 1.25rem;
907
916
  }
908
- ._separator_1q8xu_137 {
917
+ ._separator_7ctf7_148 {
909
918
  height: var(--border-thickness);
910
919
  background-color: var(--border-color);
911
920
  }
912
- ._arrow_1q8xu_142 {
921
+ ._arrow_7ctf7_153 {
913
922
  fill: var(--body-bg);
914
923
  stroke: var(--border-color);
915
924
  stroke-width: var(--border-thickness);
916
925
  stroke-linejoin: round;
917
926
  }
918
- ._primary_1q8xu_149 {
927
+ ._primary_7ctf7_160 {
919
928
  --dropdown-bg: var(--primary-color-100);
920
929
  --border-color: var(--primary-color-300);
921
930
  --button-color: var(--primary-color-800);
922
931
  --border-accent-color: var(--primary-color-600);
923
932
  }
924
- ._primary_1q8xu_149:hover {
933
+ ._primary_7ctf7_160:hover {
925
934
  --dropdown-bg: var(--primary-color-200);
926
935
  }
927
- ._success_1q8xu_160 {
936
+ ._success_7ctf7_171 {
928
937
  --dropdown-bg: var(--success-color-100);
929
938
  --border-color: var(--success-color-300);
930
939
  --button-color: var(--success-color-800);
931
940
  --border-accent-color: var(--success-color-600);
932
941
  }
933
- ._success_1q8xu_160:hover {
942
+ ._success_7ctf7_171:hover {
934
943
  --dropdown-bg: var(--success-color-200);
935
944
  }
936
- ._warning_1q8xu_171 {
945
+ ._warning_7ctf7_182 {
937
946
  --dropdown-bg: var(--warning-color-100);
938
947
  --border-color: var(--warning-color-300);
939
948
  --button-color: var(--warning-color-800);
940
949
  --border-accent-color: var(--warning-color-600);
941
950
  }
942
- ._warning_1q8xu_171:hover {
951
+ ._warning_7ctf7_182:hover {
943
952
  --dropdown-bg: var(--warning-color-200);
944
953
  }
945
- ._danger_1q8xu_182 {
954
+ ._danger_7ctf7_193 {
946
955
  --dropdown-bg: var(--danger-color-100);
947
956
  --border-color: var(--danger-color-300);
948
957
  --button-color: var(--danger-color-800);
949
958
  --border-accent-color: var(--danger-color-600);
950
959
  }
951
- ._danger_1q8xu_182:hover {
960
+ ._danger_7ctf7_193:hover {
952
961
  --dropdown-bg: var(--danger-color-200);
953
962
  }
954
- ._info_1q8xu_193 {
963
+ ._info_7ctf7_204 {
955
964
  --dropdown-bg: var(--info-color-100);
956
965
  --border-color: var(--info-color-300);
957
966
  --button-color: var(--info-color-800);
958
967
  --border-accent-color: var(--info-color-600);
959
968
  }
960
- ._info_1q8xu_193:hover {
969
+ ._info_7ctf7_204:hover {
961
970
  --dropdown-bg: var(--info-color-200);
962
971
  }
963
- ._secondary_1q8xu_204 {
972
+ ._secondary_7ctf7_215 {
964
973
  --dropdown-bg: var(--secondary-color-100);
965
974
  --border-color: var(--secondary-color-300);
966
975
  --button-color: var(--secondary-color-800);
967
976
  --border-accent-color: var(--secondary-color-600);
968
977
  }
969
- ._secondary_1q8xu_204:hover {
978
+ ._secondary_7ctf7_215:hover {
970
979
  --dropdown-bg: var(--secondary-color-200);
971
980
  }
972
- @keyframes _slideUpAndFade_1q8xu_1 {
981
+ @keyframes _slideUpAndFade_7ctf7_1 {
973
982
  from {
974
983
  opacity: 0;
975
984
  transform: translateY(2px);
@@ -979,7 +988,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
979
988
  transform: translateY(0);
980
989
  }
981
990
  }
982
- @keyframes _slideRightAndFade_1q8xu_1 {
991
+ @keyframes _slideRightAndFade_7ctf7_1 {
983
992
  from {
984
993
  opacity: 0;
985
994
  transform: translateX(-2px);
@@ -989,7 +998,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
989
998
  transform: translateX(0);
990
999
  }
991
1000
  }
992
- @keyframes _slideDownAndFade_1q8xu_1 {
1001
+ @keyframes _slideDownAndFade_7ctf7_1 {
993
1002
  from {
994
1003
  opacity: 0;
995
1004
  transform: translateY(-2px);
@@ -999,7 +1008,7 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
999
1008
  transform: translateY(0);
1000
1009
  }
1001
1010
  }
1002
- @keyframes _slideLeftAndFade_1q8xu_1 {
1011
+ @keyframes _slideLeftAndFade_7ctf7_1 {
1003
1012
  from {
1004
1013
  opacity: 0;
1005
1014
  transform: translateX(2px);
@@ -1914,7 +1923,7 @@ function clsx() {
1914
1923
  return n2;
1915
1924
  }
1916
1925
  const button = "_button_105y0_7";
1917
- const pageBackground$2 = "_pageBackground_105y0_24";
1926
+ const pageBackground$3 = "_pageBackground_105y0_24";
1918
1927
  const large$6 = "_large_105y0_34";
1919
1928
  const small$6 = "_small_105y0_39";
1920
1929
  const disabled$6 = "_disabled_105y0_44";
@@ -1926,7 +1935,7 @@ const info$8 = "_info_105y0_103";
1926
1935
  const secondary$8 = "_secondary_105y0_116";
1927
1936
  const styles$b = {
1928
1937
  button,
1929
- pageBackground: pageBackground$2,
1938
+ pageBackground: pageBackground$3,
1930
1939
  large: large$6,
1931
1940
  small: small$6,
1932
1941
  disabled: disabled$6,
@@ -2091,7 +2100,7 @@ function requireClassnames() {
2091
2100
  var classnamesExports = requireClassnames();
2092
2101
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
2093
2102
  const card = "_card_et6fi_1";
2094
- const pageBackground$1 = "_pageBackground_et6fi_11";
2103
+ const pageBackground$2 = "_pageBackground_et6fi_11";
2095
2104
  const title$1 = "_title_et6fi_18";
2096
2105
  const body$1 = "_body_et6fi_25";
2097
2106
  const footer$1 = "_footer_et6fi_30";
@@ -2105,7 +2114,7 @@ const info$7 = "_info_et6fi_79";
2105
2114
  const secondary$7 = "_secondary_et6fi_86";
2106
2115
  const styles$9 = {
2107
2116
  card,
2108
- pageBackground: pageBackground$1,
2117
+ pageBackground: pageBackground$2,
2109
2118
  title: title$1,
2110
2119
  body: body$1,
2111
2120
  footer: footer$1,
@@ -19196,7 +19205,7 @@ const RadarChart = ({
19196
19205
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ObservablePlot, { options, className, style });
19197
19206
  };
19198
19207
  const input = "_input_1ymvl_7";
19199
- const pageBackground = "_pageBackground_1ymvl_24";
19208
+ const pageBackground$1 = "_pageBackground_1ymvl_24";
19200
19209
  const large$3 = "_large_1ymvl_38";
19201
19210
  const small$3 = "_small_1ymvl_43";
19202
19211
  const disabled$3 = "_disabled_1ymvl_48";
@@ -19210,7 +19219,7 @@ const field = "_field_1ymvl_106";
19210
19219
  const label$1 = "_label_1ymvl_112";
19211
19220
  const styles$6 = {
19212
19221
  input,
19213
- pageBackground,
19222
+ pageBackground: pageBackground$1,
19214
19223
  large: large$3,
19215
19224
  small: small$3,
19216
19225
  disabled: disabled$3,
@@ -25553,30 +25562,32 @@ var Portal2 = DropdownMenuPortal;
25553
25562
  var Content2 = DropdownMenuContent;
25554
25563
  var Item2 = DropdownMenuItem;
25555
25564
  var Separator2 = DropdownMenuSeparator;
25556
- const trigger = "_trigger_1q8xu_7";
25557
- const large = "_large_1q8xu_29";
25558
- const small = "_small_1q8xu_34";
25559
- const disabled = "_disabled_1q8xu_39";
25560
- const icon = "_icon_1q8xu_44";
25561
- const content$2 = "_content_1q8xu_49";
25562
- const viewport = "_viewport_1q8xu_64";
25563
- const slideUpAndFade = "_slideUpAndFade_1q8xu_1";
25564
- const slideDownAndFade = "_slideDownAndFade_1q8xu_1";
25565
- const slideRightAndFade = "_slideRightAndFade_1q8xu_1";
25566
- const slideLeftAndFade = "_slideLeftAndFade_1q8xu_1";
25567
- const item = "_item_1q8xu_98";
25568
- const itemLabel = "_itemLabel_1q8xu_121";
25569
- const itemIcon = "_itemIcon_1q8xu_125";
25570
- const separator = "_separator_1q8xu_137";
25571
- const arrow = "_arrow_1q8xu_142";
25572
- const primary$2 = "_primary_1q8xu_149";
25573
- const success$2 = "_success_1q8xu_160";
25574
- const warning$2 = "_warning_1q8xu_171";
25575
- const danger$2 = "_danger_1q8xu_182";
25576
- const info$2 = "_info_1q8xu_193";
25577
- const secondary$2 = "_secondary_1q8xu_204";
25565
+ const trigger = "_trigger_7ctf7_7";
25566
+ const pageBackground = "_pageBackground_7ctf7_29";
25567
+ const large = "_large_7ctf7_40";
25568
+ const small = "_small_7ctf7_45";
25569
+ const disabled = "_disabled_7ctf7_50";
25570
+ const icon = "_icon_7ctf7_55";
25571
+ const content$2 = "_content_7ctf7_60";
25572
+ const viewport = "_viewport_7ctf7_75";
25573
+ const slideUpAndFade = "_slideUpAndFade_7ctf7_1";
25574
+ const slideDownAndFade = "_slideDownAndFade_7ctf7_1";
25575
+ const slideRightAndFade = "_slideRightAndFade_7ctf7_1";
25576
+ const slideLeftAndFade = "_slideLeftAndFade_7ctf7_1";
25577
+ const item = "_item_7ctf7_109";
25578
+ const itemLabel = "_itemLabel_7ctf7_132";
25579
+ const itemIcon = "_itemIcon_7ctf7_136";
25580
+ const separator = "_separator_7ctf7_148";
25581
+ const arrow = "_arrow_7ctf7_153";
25582
+ const primary$2 = "_primary_7ctf7_160";
25583
+ const success$2 = "_success_7ctf7_171";
25584
+ const warning$2 = "_warning_7ctf7_182";
25585
+ const danger$2 = "_danger_7ctf7_193";
25586
+ const info$2 = "_info_7ctf7_204";
25587
+ const secondary$2 = "_secondary_7ctf7_215";
25578
25588
  const styles$3 = {
25579
25589
  trigger,
25590
+ pageBackground,
25580
25591
  large,
25581
25592
  small,
25582
25593
  disabled,
@@ -25619,6 +25630,7 @@ function Dropdown({
25619
25630
  }) {
25620
25631
  const triggerClassName = clsx(
25621
25632
  styles$3.trigger,
25633
+ !variant && styles$3.pageBackground,
25622
25634
  variant && styles$3[variant],
25623
25635
  chamfer2 && chamferStyles.chamfer,
25624
25636
  size2 === "large" && styles$3.large,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackcrane/ui",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "dist/jcui.cjs.js",