@nextui-org/theme 2.0.4 → 2.1.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 (36) hide show
  1. package/dist/chunk-4JBYJQSP.mjs +36 -0
  2. package/dist/chunk-AYWH7THQ.mjs +606 -0
  3. package/dist/{chunk-U3S42JDF.mjs → chunk-FTF3KQBD.mjs} +2 -0
  4. package/dist/{chunk-Z6QW3RI5.mjs → chunk-PBGVMEDL.mjs} +70 -142
  5. package/dist/{chunk-PW52XQD7.mjs → chunk-RYOZQSNI.mjs} +4 -1
  6. package/dist/chunk-YJLQTC7L.mjs +0 -0
  7. package/dist/chunk-YKWIBFFV.mjs +460 -0
  8. package/dist/components/index.d.ts +3 -0
  9. package/dist/components/index.js +1161 -142
  10. package/dist/components/index.mjs +40 -20
  11. package/dist/components/input.d.ts +28 -60
  12. package/dist/components/input.js +70 -142
  13. package/dist/components/input.mjs +1 -1
  14. package/dist/components/listbox.d.ts +3 -0
  15. package/dist/components/listbox.js +582 -0
  16. package/dist/components/listbox.mjs +17 -0
  17. package/dist/components/menu.d.ts +284 -0
  18. package/dist/components/menu.js +582 -0
  19. package/dist/components/menu.mjs +16 -0
  20. package/dist/components/popover.js +2 -0
  21. package/dist/components/popover.mjs +1 -1
  22. package/dist/components/scroll-shadow.d.ts +55 -0
  23. package/dist/components/scroll-shadow.js +150 -0
  24. package/dist/components/scroll-shadow.mjs +8 -0
  25. package/dist/components/select.d.ts +553 -0
  26. package/dist/components/select.js +726 -0
  27. package/dist/components/select.mjs +12 -0
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.js +1308 -286
  30. package/dist/index.mjs +43 -23
  31. package/dist/plugin.js +3 -0
  32. package/dist/plugin.mjs +3 -3
  33. package/dist/utilities/index.mjs +2 -2
  34. package/package.json +8 -8
  35. package/dist/{chunk-PRWEADY4.mjs → chunk-RH7YHIQY.mjs} +0 -0
  36. package/dist/{chunk-DYIIRM5B.mjs → chunk-Y32IWEMZ.mjs} +3 -3
package/dist/index.js CHANGED
@@ -58,7 +58,13 @@ __export(src_exports, {
58
58
  kbd: () => kbd,
59
59
  link: () => link,
60
60
  linkAnchorClasses: () => linkAnchorClasses,
61
+ listbox: () => menu,
62
+ listboxItem: () => menuItem,
63
+ listboxSection: () => menuSection,
61
64
  mappedSpacingScaleKeys: () => mappedSpacingScaleKeys,
65
+ menu: () => menu,
66
+ menuItem: () => menuItem,
67
+ menuSection: () => menuSection,
62
68
  modal: () => modal,
63
69
  navbar: () => navbar,
64
70
  nextui: () => nextui,
@@ -68,6 +74,8 @@ __export(src_exports, {
68
74
  radio: () => radio,
69
75
  radioGroup: () => radioGroup,
70
76
  ringClasses: () => ringClasses,
77
+ scrollShadow: () => scrollShadow,
78
+ select: () => select,
71
79
  semanticColors: () => semanticColors,
72
80
  skeleton: () => skeleton,
73
81
  snippet: () => snippet,
@@ -1218,6 +1226,8 @@ var popover = tv({
1218
1226
  slots: {
1219
1227
  base: [
1220
1228
  "z-10",
1229
+ "relative",
1230
+ "overflow-hidden",
1221
1231
  "inline-flex",
1222
1232
  "flex-col",
1223
1233
  "items-center",
@@ -3592,8 +3602,8 @@ var input = tv({
3592
3602
  slots: {
3593
3603
  base: "group flex flex-col",
3594
3604
  label: "block text-small font-medium text-foreground-600",
3595
- mainWrapper: "",
3596
- inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
3605
+ mainWrapper: "h-full",
3606
+ inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
3597
3607
  innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
3598
3608
  input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
3599
3609
  clearButton: [
@@ -3669,21 +3679,11 @@ var input = tv({
3669
3679
  },
3670
3680
  color: {
3671
3681
  default: {},
3672
- primary: {
3673
- label: "text-primary"
3674
- },
3675
- secondary: {
3676
- label: "text-secondary"
3677
- },
3678
- success: {
3679
- label: "text-success-600 dark:text-success"
3680
- },
3681
- warning: {
3682
- label: "text-warning-600 dark:text-warning"
3683
- },
3684
- danger: {
3685
- label: "text-danger dark:text-danger-500"
3686
- }
3682
+ primary: {},
3683
+ secondary: {},
3684
+ success: {},
3685
+ warning: {},
3686
+ danger: {}
3687
3687
  },
3688
3688
  size: {
3689
3689
  sm: {
@@ -3737,7 +3737,7 @@ var input = tv({
3737
3737
  errorMessage: "absolute left-1"
3738
3738
  },
3739
3739
  inside: {
3740
- label: "text-tiny",
3740
+ label: "text-tiny cursor-text",
3741
3741
  inputWrapper: "flex-col items-start justify-center gap-0"
3742
3742
  }
3743
3743
  },
@@ -3754,12 +3754,14 @@ var input = tv({
3754
3754
  isClearable: {
3755
3755
  true: {
3756
3756
  input: "peer pr-6",
3757
- clearButton: "peer-[.is-filled]:opacity-70 peer-[.is-filled]:block"
3757
+ clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
3758
3758
  }
3759
3759
  },
3760
3760
  isDisabled: {
3761
3761
  true: {
3762
- base: "opacity-disabled pointer-events-none"
3762
+ base: "opacity-disabled pointer-events-none",
3763
+ inputWrapper: "pointer-events-none",
3764
+ label: "pointer-events-none"
3763
3765
  }
3764
3766
  },
3765
3767
  isInvalid: {
@@ -3791,7 +3793,7 @@ var input = tv({
3791
3793
  "origin-top-left",
3792
3794
  "transition-all",
3793
3795
  "!duration-200",
3794
- "!ease-[cubic-bezier(0,0,0.2,1)]",
3796
+ "!ease-out",
3795
3797
  "motion-reduce:transition-none"
3796
3798
  ],
3797
3799
  clearButton: ["transition-opacity", "motion-reduce:transition-none"]
@@ -3819,7 +3821,8 @@ var input = tv({
3819
3821
  "group-data-[focus=true]:bg-primary-50",
3820
3822
  "placeholder:text-primary"
3821
3823
  ],
3822
- input: "placeholder:text-primary"
3824
+ input: "placeholder:text-primary",
3825
+ label: "text-primary"
3823
3826
  }
3824
3827
  },
3825
3828
  {
@@ -3833,7 +3836,8 @@ var input = tv({
3833
3836
  "group-data-[focus=true]:bg-secondary-50",
3834
3837
  "placeholder:text-secondary"
3835
3838
  ],
3836
- input: "placeholder:text-secondary"
3839
+ input: "placeholder:text-secondary",
3840
+ label: "text-secondary"
3837
3841
  }
3838
3842
  },
3839
3843
  {
@@ -3849,7 +3853,8 @@ var input = tv({
3849
3853
  "data-[hover=true]:bg-success-100",
3850
3854
  "group-data-[focus=true]:bg-success-50"
3851
3855
  ],
3852
- input: "placeholder:text-success-600 dark:placeholder:text-success"
3856
+ input: "placeholder:text-success-600 dark:placeholder:text-success",
3857
+ label: "text-success-600 dark:text-success"
3853
3858
  }
3854
3859
  },
3855
3860
  {
@@ -3865,7 +3870,8 @@ var input = tv({
3865
3870
  "data-[hover=true]:bg-warning-100",
3866
3871
  "group-data-[focus=true]:bg-warning-50"
3867
3872
  ],
3868
- input: "placeholder:text-warning-600 dark:placeholder:text-warning"
3873
+ input: "placeholder:text-warning-600 dark:placeholder:text-warning",
3874
+ label: "text-warning-600 dark:text-warning"
3869
3875
  }
3870
3876
  },
3871
3877
  {
@@ -3881,7 +3887,8 @@ var input = tv({
3881
3887
  "data-[hover=true]:bg-danger-100",
3882
3888
  "group-data-[focus=true]:bg-danger-50"
3883
3889
  ],
3884
- input: "placeholder:text-danger dark:placeholder:text-danger-500"
3890
+ input: "placeholder:text-danger dark:placeholder:text-danger-500",
3891
+ label: "text-danger dark:text-danger-500"
3885
3892
  }
3886
3893
  },
3887
3894
  {
@@ -3928,70 +3935,80 @@ var input = tv({
3928
3935
  variant: "underlined",
3929
3936
  color: "primary",
3930
3937
  class: {
3931
- inputWrapper: "after:bg-primary"
3938
+ inputWrapper: "after:bg-primary",
3939
+ label: "text-primary"
3932
3940
  }
3933
3941
  },
3934
3942
  {
3935
3943
  variant: "underlined",
3936
3944
  color: "secondary",
3937
3945
  class: {
3938
- inputWrapper: "after:bg-secondary"
3946
+ inputWrapper: "after:bg-secondary",
3947
+ label: "text-secondary"
3939
3948
  }
3940
3949
  },
3941
3950
  {
3942
3951
  variant: "underlined",
3943
3952
  color: "success",
3944
3953
  class: {
3945
- inputWrapper: "after:bg-success"
3954
+ inputWrapper: "after:bg-success",
3955
+ label: "text-success"
3946
3956
  }
3947
3957
  },
3948
3958
  {
3949
3959
  variant: "underlined",
3950
3960
  color: "warning",
3951
3961
  class: {
3952
- inputWrapper: "after:bg-warning"
3962
+ inputWrapper: "after:bg-warning",
3963
+ label: "text-warning"
3953
3964
  }
3954
3965
  },
3955
3966
  {
3956
3967
  variant: "underlined",
3957
3968
  color: "danger",
3958
3969
  class: {
3959
- inputWrapper: "after:bg-danger"
3970
+ inputWrapper: "after:bg-danger",
3971
+ label: "text-danger"
3960
3972
  }
3961
3973
  },
3962
3974
  {
3963
3975
  variant: "bordered",
3964
3976
  color: "primary",
3965
3977
  class: {
3966
- inputWrapper: "group-data-[focus=true]:border-primary"
3978
+ inputWrapper: "group-data-[focus=true]:border-primary",
3979
+ label: "text-primary"
3967
3980
  }
3968
3981
  },
3969
3982
  {
3970
3983
  variant: "bordered",
3971
3984
  color: "secondary",
3972
3985
  class: {
3973
- inputWrapper: "group-data-[focus=true]:border-secondary"
3986
+ inputWrapper: "group-data-[focus=true]:border-secondary",
3987
+ label: "text-secondary"
3974
3988
  }
3975
3989
  },
3976
3990
  {
3977
3991
  variant: "bordered",
3978
3992
  color: "success",
3979
3993
  class: {
3980
- inputWrapper: "group-data-[focus=true]:border-success"
3994
+ inputWrapper: "group-data-[focus=true]:border-success",
3995
+ label: "text-success"
3981
3996
  }
3982
3997
  },
3983
3998
  {
3984
3999
  variant: "bordered",
3985
4000
  color: "warning",
3986
4001
  class: {
3987
- inputWrapper: "group-data-[focus=true]:border-warning"
4002
+ inputWrapper: "group-data-[focus=true]:border-warning",
4003
+ label: "text-warning"
3988
4004
  }
3989
4005
  },
3990
4006
  {
3991
4007
  variant: "bordered",
3992
4008
  color: "danger",
3993
4009
  class: {
3994
- inputWrapper: "group-data-[focus=true]:border-danger"
4010
+ inputWrapper: "group-data-[focus=true]:border-danger",
4011
+ label: "text-danger"
3995
4012
  }
3996
4013
  },
3997
4014
  {
@@ -4081,7 +4098,7 @@ var input = tv({
4081
4098
  size: "lg",
4082
4099
  class: {
4083
4100
  label: "text-small",
4084
- inputWrapper: "h-16 py-2.5 gap-1"
4101
+ inputWrapper: "h-16 py-2.5 gap-0"
4085
4102
  }
4086
4103
  },
4087
4104
  {
@@ -4090,22 +4107,11 @@ var input = tv({
4090
4107
  class: {
4091
4108
  label: [
4092
4109
  "font-normal",
4093
- "text-foreground-500",
4094
- "group-focus-within:font-medium",
4095
- "group-[.is-filled]:font-medium",
4096
- "group-focus-within:pointer-events-auto",
4097
- "group-[.is-filled]:pointer-events-auto"
4110
+ "group-data-[filled-within=true]:font-medium",
4111
+ "group-data-[filled-within=true]:pointer-events-auto"
4098
4112
  ]
4099
4113
  }
4100
4114
  },
4101
- {
4102
- isLabelPlaceholder: true,
4103
- labelPlacement: "inside",
4104
- class: {
4105
- inputWrapper: "group",
4106
- label: ["group-focus-within:text-foreground-600", "group-[.is-filled]:text-foreground-600"]
4107
- }
4108
- },
4109
4115
  {
4110
4116
  isLabelPlaceholder: true,
4111
4117
  labelPlacement: "outside",
@@ -4113,85 +4119,21 @@ var input = tv({
4113
4119
  base: "group relative justify-end",
4114
4120
  label: [
4115
4121
  "pb-0",
4116
- "group-focus-within:left-0",
4117
- "group-[.is-filled]:left-0",
4118
- "group-focus-within:text-foreground",
4119
- "group-[.is-filled]:text-foreground"
4122
+ "z-20",
4123
+ "opacity-60",
4124
+ "top-1/2",
4125
+ "-translate-y-1/2",
4126
+ "group-data-[filled-within=true]:left-0",
4127
+ "group-data-[filled-within=true]:opacity-100"
4120
4128
  ]
4121
4129
  }
4122
4130
  },
4123
- {
4124
- isLabelPlaceholder: true,
4125
- color: "primary",
4126
- class: {
4127
- label: ["group-focus-within:text-primary", "group-[.is-filled]:text-primary"]
4128
- }
4129
- },
4130
- {
4131
- isLabelPlaceholder: true,
4132
- color: "secondary",
4133
- class: {
4134
- label: ["group-focus-within:text-secondary", "group-[.is-filled]:text-secondary"]
4135
- }
4136
- },
4137
- {
4138
- isLabelPlaceholder: true,
4139
- color: "success",
4140
- class: {
4141
- label: ["group-focus-within:text-success", "group-[.is-filled]:text-success"]
4142
- }
4143
- },
4144
- {
4145
- isLabelPlaceholder: true,
4146
- color: "warning",
4147
- class: {
4148
- label: ["group-focus-within:text-warning", "group-[.is-filled]:text-warning"]
4149
- }
4150
- },
4151
- {
4152
- isLabelPlaceholder: true,
4153
- color: "danger",
4154
- class: {
4155
- label: ["group-focus-within:text-danger", "group-[.is-filled]:text-danger"]
4156
- }
4157
- },
4158
- {
4159
- isLabelPlaceholder: true,
4160
- variant: "underlined",
4161
- class: {
4162
- label: ["group-focus-within:pt-0", "group-[.is-filled]:pt-0"]
4163
- }
4164
- },
4165
- {
4166
- isLabelPlaceholder: true,
4167
- variant: "underlined",
4168
- size: "sm",
4169
- class: {
4170
- label: ["pt-3"]
4171
- }
4172
- },
4173
- {
4174
- isLabelPlaceholder: true,
4175
- variant: "underlined",
4176
- size: "md",
4177
- class: {
4178
- label: ["pt-4"]
4179
- }
4180
- },
4181
- {
4182
- isLabelPlaceholder: true,
4183
- variant: "underlined",
4184
- size: "lg",
4185
- class: {
4186
- label: ["pt-5"]
4187
- }
4188
- },
4189
4131
  {
4190
4132
  isLabelPlaceholder: true,
4191
4133
  labelPlacement: "inside",
4192
4134
  size: ["sm", "md"],
4193
4135
  class: {
4194
- label: ["text-small", "group-focus-within:text-tiny", "group-[.is-filled]:text-tiny"],
4136
+ label: ["text-small", "group-data-[filled-within=true]:text-tiny"],
4195
4137
  input: "pt-4"
4196
4138
  }
4197
4139
  },
@@ -4200,7 +4142,9 @@ var input = tv({
4200
4142
  labelPlacement: "inside",
4201
4143
  size: "sm",
4202
4144
  class: {
4203
- label: ["group-focus-within:-translate-y-2.5", "group-[.is-filled]:-translate-y-2.5"],
4145
+ label: [
4146
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"
4147
+ ],
4204
4148
  input: "pt-4"
4205
4149
  }
4206
4150
  },
@@ -4209,7 +4153,9 @@ var input = tv({
4209
4153
  labelPlacement: "inside",
4210
4154
  size: "md",
4211
4155
  class: {
4212
- label: ["group-focus-within:-translate-y-3", "group-[.is-filled]:-translate-y-3"],
4156
+ label: [
4157
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
4158
+ ],
4213
4159
  input: "pt-4"
4214
4160
  }
4215
4161
  },
@@ -4220,12 +4166,10 @@ var input = tv({
4220
4166
  class: {
4221
4167
  label: [
4222
4168
  "text-medium",
4223
- "group-focus-within:text-small",
4224
- "group-focus-within:-translate-y-3",
4225
- "group-[.is-filled]:text-small",
4226
- "group-[.is-filled]:-translate-y-3"
4169
+ "group-data-[filled-within=true]:text-small",
4170
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
4227
4171
  ],
4228
- input: "pt-6"
4172
+ input: "pt-5"
4229
4173
  }
4230
4174
  },
4231
4175
  {
@@ -4234,11 +4178,10 @@ var input = tv({
4234
4178
  size: "sm",
4235
4179
  class: {
4236
4180
  label: [
4237
- "text-tiny",
4238
- "bottom-2",
4239
4181
  "left-2",
4240
- "group-focus-within:bottom-10",
4241
- "group-[.is-filled]:bottom-10"
4182
+ "text-small",
4183
+ "group-data-[filled-within=true]:text-tiny",
4184
+ "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
4242
4185
  ]
4243
4186
  }
4244
4187
  },
@@ -4248,11 +4191,9 @@ var input = tv({
4248
4191
  size: "md",
4249
4192
  class: {
4250
4193
  label: [
4251
- "text-small",
4252
- "bottom-2.5",
4253
4194
  "left-3",
4254
- "group-focus-within:bottom-12",
4255
- "group-[.is-filled]:bottom-12"
4195
+ "text-small",
4196
+ "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
4256
4197
  ]
4257
4198
  }
4258
4199
  },
@@ -4262,13 +4203,10 @@ var input = tv({
4262
4203
  size: "lg",
4263
4204
  class: {
4264
4205
  label: [
4265
- "text-medium",
4266
- "bottom-3",
4267
4206
  "left-3",
4268
- "group-focus-within:text-small",
4269
- "group-[.is-filled]:bottom-sm",
4270
- "group-focus-within:bottom-14",
4271
- "group-[.is-filled]:bottom-14"
4207
+ "text-medium",
4208
+ "group-data-[filled-within=true]:text-small",
4209
+ "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
4272
4210
  ]
4273
4211
  }
4274
4212
  }
@@ -5783,150 +5721,1223 @@ var skeleton = tv({
5783
5721
  }
5784
5722
  });
5785
5723
 
5786
- // src/colors/blue.ts
5787
- var blue = {
5788
- 50: "#e6f1fe",
5789
- 100: "#cce3fd",
5790
- 200: "#99c7fb",
5791
- 300: "#66aaf9",
5792
- 400: "#338ef7",
5793
- 500: "#006FEE",
5794
- 600: "#005bc4",
5795
- 700: "#004493",
5796
- 800: "#002e62",
5797
- 900: "#001731"
5798
- };
5799
-
5800
- // src/colors/green.ts
5801
- var green = {
5802
- 50: "#e8faf0",
5803
- 100: "#d1f4e0",
5804
- 200: "#a2e9c1",
5805
- 300: "#74dfa2",
5806
- 400: "#45d483",
5807
- 500: "#17c964",
5808
- 600: "#12a150",
5809
- 700: "#0e793c",
5810
- 800: "#095028",
5811
- 900: "#052814"
5812
- };
5813
-
5814
- // src/colors/pink.ts
5815
- var pink = {
5816
- 50: "#ffedfa",
5817
- 100: "#ffdcf5",
5818
- 200: "#ffb8eb",
5819
- 300: "#ff95e1",
5820
- 400: "#ff71d7",
5821
- 500: "#ff4ecd",
5822
- 600: "#cc3ea4",
5823
- 700: "#992f7b",
5824
- 800: "#661f52",
5825
- 900: "#331029"
5826
- };
5827
-
5828
- // src/colors/purple.ts
5829
- var purple = {
5830
- 50: "#f2eafa",
5831
- 100: "#e4d4f4",
5832
- 200: "#c9a9e9",
5833
- 300: "#ae7ede",
5834
- 400: "#9353d3",
5835
- 500: "#7828c8",
5836
- 600: "#6020a0",
5837
- 700: "#481878",
5838
- 800: "#301050",
5839
- 900: "#180828"
5840
- };
5841
-
5842
- // src/colors/red.ts
5843
- var red = {
5844
- 50: "#fee7ef",
5845
- 100: "#fdd0df",
5846
- 200: "#faa0bf",
5847
- 300: "#f871a0",
5848
- 400: "#f54180",
5849
- 500: "#f31260",
5850
- 600: "#c20e4d",
5851
- 700: "#920b3a",
5852
- 800: "#610726",
5853
- 900: "#310413"
5854
- };
5855
-
5856
- // src/colors/yellow.ts
5857
- var yellow = {
5858
- 50: "#fefce8",
5859
- 100: "#fdedd3",
5860
- 200: "#fbdba7",
5861
- 300: "#f9c97c",
5862
- 400: "#f7b750",
5863
- 500: "#f5a524",
5864
- 600: "#c4841d",
5865
- 700: "#936316",
5866
- 800: "#62420e",
5867
- 900: "#312107"
5868
- };
5869
-
5870
- // src/colors/cyan.ts
5871
- var cyan = {
5872
- 50: "#F0FCFF",
5873
- 100: "#E6FAFE",
5874
- 200: "#D7F8FE",
5875
- 300: "#C3F4FD",
5876
- 400: "#A5EEFD",
5877
- 500: "#7EE7FC",
5878
- 600: "#06B7DB",
5879
- 700: "#09AACD",
5880
- 800: "#0E8AAA",
5881
- 900: "#053B48"
5882
- };
5883
-
5884
- // src/colors/zinc.ts
5885
- var zinc = {
5886
- "50": "#fafafa",
5887
- "100": "#f4f4f5",
5888
- "200": "#e4e4e7",
5889
- "300": "#d4d4d8",
5890
- "400": "#a1a1aa",
5891
- "500": "#71717a",
5892
- "600": "#52525b",
5893
- "700": "#3f3f46",
5894
- "800": "#27272a",
5895
- "900": "#18181b"
5896
- };
5897
-
5898
- // src/colors/common.ts
5899
- var commonColors = {
5900
- white: "#ffffff",
5901
- black: "#000000",
5902
- blue,
5903
- green,
5904
- pink,
5905
- purple,
5906
- red,
5907
- yellow,
5908
- cyan,
5909
- zinc
5910
- };
5911
-
5912
- // src/colors/semantic.ts
5913
- var import_color2k = require("color2k");
5914
-
5915
- // src/utils/object.ts
5916
- var import_flat = __toESM(require("flat"));
5917
- function swapColorValues(colors2) {
5918
- const swappedColors = {};
5919
- const keys = Object.keys(colors2);
5920
- const length = keys.length;
5921
- for (let i = 0; i < length / 2; i++) {
5922
- const key1 = keys[i];
5923
- const key2 = keys[length - 1 - i];
5924
- swappedColors[key1] = colors2[key2];
5925
- swappedColors[key2] = colors2[key1];
5926
- }
5927
- if (length % 2 !== 0) {
5928
- const middleKey = keys[Math.floor(length / 2)];
5929
- swappedColors[middleKey] = colors2[middleKey];
5724
+ // src/components/select.ts
5725
+ var select = tv({
5726
+ slots: {
5727
+ base: "group inline-flex flex-col relative w-full",
5728
+ label: "block text-small font-medium text-foreground-500",
5729
+ trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
5730
+ innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
5731
+ selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
5732
+ spinner: "absolute right-3",
5733
+ value: "font-normal w-full text-left opacity-60 group-data-[filled=true]:opacity-100",
5734
+ listboxWrapper: "scroll-py-6 max-h-64 w-full",
5735
+ listbox: "",
5736
+ popover: "w-full p-1 overflow-hidden",
5737
+ helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
5738
+ description: "text-tiny text-foreground-400",
5739
+ errorMessage: "text-tiny text-danger"
5740
+ },
5741
+ variants: {
5742
+ variant: {
5743
+ flat: {
5744
+ trigger: [
5745
+ "bg-default-100",
5746
+ "data-[hover=true]:bg-default-200",
5747
+ "group-data-[focus=true]:bg-default-100"
5748
+ ]
5749
+ },
5750
+ faded: {
5751
+ trigger: [
5752
+ "bg-default-100",
5753
+ "border-medium",
5754
+ "border-default-200",
5755
+ "data-[hover=true]:border-default-400"
5756
+ ]
5757
+ },
5758
+ bordered: {
5759
+ trigger: [
5760
+ "border-medium",
5761
+ "border-default-200",
5762
+ "data-[hover=true]:border-default-400",
5763
+ "data-[open=true]:border-foreground",
5764
+ "data-[focus=true]:border-foreground"
5765
+ ]
5766
+ },
5767
+ underlined: {
5768
+ trigger: [
5769
+ "!px-1",
5770
+ "!pb-0",
5771
+ "!gap-0",
5772
+ "relative",
5773
+ "box-border",
5774
+ "border-b-medium",
5775
+ "shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
5776
+ "border-default-200",
5777
+ "!rounded-none",
5778
+ "hover:border-default-300",
5779
+ "after:content-['']",
5780
+ "after:w-0",
5781
+ "after:origin-center",
5782
+ "after:bg-foreground",
5783
+ "after:absolute",
5784
+ "after:left-1/2",
5785
+ "after:-translate-x-1/2",
5786
+ "after:-bottom-[2px]",
5787
+ "after:h-[2px]",
5788
+ "data-[open=true]:after:w-full",
5789
+ "data-[focus=true]:after:w-full"
5790
+ ]
5791
+ }
5792
+ },
5793
+ color: {
5794
+ default: {},
5795
+ primary: {},
5796
+ secondary: {},
5797
+ success: {},
5798
+ warning: {},
5799
+ danger: {}
5800
+ },
5801
+ size: {
5802
+ sm: {
5803
+ label: "text-tiny",
5804
+ trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
5805
+ value: "text-small"
5806
+ },
5807
+ md: {
5808
+ trigger: "h-unit-10 min-h-unit-10 rounded-medium",
5809
+ value: "text-small"
5810
+ },
5811
+ lg: {
5812
+ trigger: "h-unit-12 min-h-unit-12 rounded-large",
5813
+ value: "text-medium"
5814
+ }
5815
+ },
5816
+ radius: {
5817
+ none: {
5818
+ trigger: "rounded-none"
5819
+ },
5820
+ sm: {
5821
+ trigger: "rounded-small"
5822
+ },
5823
+ md: {
5824
+ trigger: "rounded-medium"
5825
+ },
5826
+ lg: {
5827
+ trigger: "rounded-large"
5828
+ },
5829
+ full: {
5830
+ trigger: "rounded-full"
5831
+ }
5832
+ },
5833
+ labelPlacement: {
5834
+ outside: {
5835
+ base: "data-[has-helper=true]:pb-4 flex flex-col",
5836
+ label: "text-foreground pb-1.5",
5837
+ description: "absolute left-1",
5838
+ errorMessage: "absolute left-1"
5839
+ },
5840
+ "outside-left": {
5841
+ base: "flex-row items-center flex-nowrap data-[has-helper=true]:pb-4",
5842
+ label: "text-foreground pr-2",
5843
+ description: "absolute left-1",
5844
+ errorMessage: "absolute left-1"
5845
+ },
5846
+ inside: {
5847
+ label: "text-tiny cursor-pointer",
5848
+ trigger: "flex-col items-start justify-center gap-0"
5849
+ }
5850
+ },
5851
+ fullWidth: {
5852
+ true: {
5853
+ base: "w-full"
5854
+ }
5855
+ },
5856
+ isLabelPlaceholder: {
5857
+ true: {
5858
+ label: "absolute z-10 pointer-events-none"
5859
+ }
5860
+ },
5861
+ isDisabled: {
5862
+ true: {
5863
+ base: "opacity-disabled pointer-events-none",
5864
+ trigger: "pointer-events-none",
5865
+ label: "pointer-events-none"
5866
+ }
5867
+ },
5868
+ isInvalid: {
5869
+ true: {
5870
+ label: "!text-danger",
5871
+ value: "text-danger",
5872
+ selectorIcon: "text-danger"
5873
+ }
5874
+ },
5875
+ isRequired: {
5876
+ true: {
5877
+ label: "after:content-['*'] after:text-danger after:ml-0.5"
5878
+ }
5879
+ },
5880
+ isMultiline: {
5881
+ true: {
5882
+ trigger: "!h-auto"
5883
+ },
5884
+ false: {
5885
+ value: "truncate"
5886
+ }
5887
+ },
5888
+ disableAnimation: {
5889
+ true: {
5890
+ trigger: "after:transition-none",
5891
+ base: "transition-none",
5892
+ label: "transition-none",
5893
+ selectorIcon: "transition-none"
5894
+ },
5895
+ false: {
5896
+ base: "transition-background motion-reduce:transition-none !duration-150",
5897
+ label: [
5898
+ "will-change-auto",
5899
+ "origin-top-left",
5900
+ "transition-all",
5901
+ "!duration-200",
5902
+ "!ease-out",
5903
+ "motion-reduce:transition-none"
5904
+ ],
5905
+ selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
5906
+ }
5907
+ },
5908
+ disableSelectorIconRotation: {
5909
+ true: {},
5910
+ false: {
5911
+ selectorIcon: "data-[open=true]:rotate-180"
5912
+ }
5913
+ }
5914
+ },
5915
+ defaultVariants: {
5916
+ variant: "flat",
5917
+ color: "default",
5918
+ size: "md",
5919
+ labelPlacement: "inside",
5920
+ fullWidth: true,
5921
+ isDisabled: false,
5922
+ isMultiline: false,
5923
+ disableAnimation: false,
5924
+ disableSelectorIconRotation: false
5925
+ },
5926
+ compoundVariants: [
5927
+ {
5928
+ variant: "flat",
5929
+ color: "primary",
5930
+ class: {
5931
+ trigger: [
5932
+ "bg-primary-50",
5933
+ "text-primary",
5934
+ "data-[hover=true]:bg-primary-100",
5935
+ "group-data-[focus=true]:bg-primary-50"
5936
+ ],
5937
+ value: "text-primary",
5938
+ label: "text-primary"
5939
+ }
5940
+ },
5941
+ {
5942
+ variant: "flat",
5943
+ color: "secondary",
5944
+ class: {
5945
+ trigger: [
5946
+ "bg-secondary-50",
5947
+ "text-secondary",
5948
+ "data-[hover=true]:bg-secondary-100",
5949
+ "group-data-[focus=true]:bg-secondary-50"
5950
+ ],
5951
+ value: "text-secondary",
5952
+ label: "text-secondary"
5953
+ }
5954
+ },
5955
+ {
5956
+ variant: "flat",
5957
+ color: "success",
5958
+ class: {
5959
+ trigger: [
5960
+ "bg-success-50",
5961
+ "text-success-600",
5962
+ "dark:text-success",
5963
+ "data-[hover=true]:bg-success-100",
5964
+ "group-data-[focus=true]:bg-success-50"
5965
+ ],
5966
+ value: "text-success-600 dark:text-success",
5967
+ label: "text-success-600 dark:text-success"
5968
+ }
5969
+ },
5970
+ {
5971
+ variant: "flat",
5972
+ color: "warning",
5973
+ class: {
5974
+ trigger: [
5975
+ "bg-warning-50",
5976
+ "text-warning-600",
5977
+ "dark:text-warning",
5978
+ "data-[hover=true]:bg-warning-100",
5979
+ "group-data-[focus=true]:bg-warning-50"
5980
+ ],
5981
+ value: "text-warning-600 dark:text-warning",
5982
+ label: "text-warning-600 dark:text-warning"
5983
+ }
5984
+ },
5985
+ {
5986
+ variant: "flat",
5987
+ color: "danger",
5988
+ class: {
5989
+ trigger: [
5990
+ "bg-danger-50",
5991
+ "text-danger",
5992
+ "dark:text-danger-500",
5993
+ "data-[hover=true]:bg-danger-100",
5994
+ "group-data-[focus=true]:bg-danger-50"
5995
+ ],
5996
+ value: "text-danger dark:text-danger-500",
5997
+ label: "text-danger dark:text-danger-500"
5998
+ }
5999
+ },
6000
+ {
6001
+ variant: "faded",
6002
+ color: "primary",
6003
+ class: {
6004
+ trigger: "data-[hover=true]:border-primary",
6005
+ label: "text-primary"
6006
+ }
6007
+ },
6008
+ {
6009
+ variant: "faded",
6010
+ color: "secondary",
6011
+ class: {
6012
+ trigger: "data-[hover=true]:border-secondary",
6013
+ label: "text-secondary"
6014
+ }
6015
+ },
6016
+ {
6017
+ variant: "faded",
6018
+ color: "success",
6019
+ class: {
6020
+ trigger: "data-[hover=true]:border-success",
6021
+ label: "text-success"
6022
+ }
6023
+ },
6024
+ {
6025
+ variant: "faded",
6026
+ color: "warning",
6027
+ class: {
6028
+ trigger: "data-[hover=true]:border-warning",
6029
+ label: "text-warning"
6030
+ }
6031
+ },
6032
+ {
6033
+ variant: "faded",
6034
+ color: "danger",
6035
+ class: {
6036
+ trigger: "data-[hover=true]:border-danger",
6037
+ label: "text-danger"
6038
+ }
6039
+ },
6040
+ {
6041
+ variant: "underlined",
6042
+ color: "primary",
6043
+ class: {
6044
+ trigger: "after:bg-primary",
6045
+ label: "text-primary"
6046
+ }
6047
+ },
6048
+ {
6049
+ variant: "underlined",
6050
+ color: "secondary",
6051
+ class: {
6052
+ trigger: "after:bg-secondary",
6053
+ label: "text-secondary"
6054
+ }
6055
+ },
6056
+ {
6057
+ variant: "underlined",
6058
+ color: "success",
6059
+ class: {
6060
+ trigger: "after:bg-success",
6061
+ label: "text-success"
6062
+ }
6063
+ },
6064
+ {
6065
+ variant: "underlined",
6066
+ color: "warning",
6067
+ class: {
6068
+ trigger: "after:bg-warning",
6069
+ label: "text-warning"
6070
+ }
6071
+ },
6072
+ {
6073
+ variant: "underlined",
6074
+ color: "danger",
6075
+ class: {
6076
+ trigger: "after:bg-danger",
6077
+ label: "text-danger"
6078
+ }
6079
+ },
6080
+ {
6081
+ variant: "bordered",
6082
+ color: "primary",
6083
+ class: {
6084
+ trigger: ["data-[open=true]:border-primary", "data-[focus=true]:border-primary"],
6085
+ label: "text-primary"
6086
+ }
6087
+ },
6088
+ {
6089
+ variant: "bordered",
6090
+ color: "secondary",
6091
+ class: {
6092
+ trigger: ["data-[open=true]:border-secondary", "data-[focus=true]:border-secondary"],
6093
+ label: "text-secondary"
6094
+ }
6095
+ },
6096
+ {
6097
+ variant: "bordered",
6098
+ color: "success",
6099
+ class: {
6100
+ trigger: ["data-[open=true]:border-success", "data-[focus=true]:border-success"],
6101
+ label: "text-success"
6102
+ }
6103
+ },
6104
+ {
6105
+ variant: "bordered",
6106
+ color: "warning",
6107
+ class: {
6108
+ trigger: ["data-[open=true]:border-warning", "data-[focus=true]:border-warning"],
6109
+ label: "text-warning"
6110
+ }
6111
+ },
6112
+ {
6113
+ variant: "bordered",
6114
+ color: "danger",
6115
+ class: {
6116
+ trigger: ["data-[open=true]:border-danger", "data-[focus=true]:border-danger"],
6117
+ label: "text-danger"
6118
+ }
6119
+ },
6120
+ {
6121
+ radius: "full",
6122
+ size: ["sm"],
6123
+ class: {
6124
+ trigger: "px-3"
6125
+ }
6126
+ },
6127
+ {
6128
+ radius: "full",
6129
+ size: "md",
6130
+ class: {
6131
+ trigger: "px-4"
6132
+ }
6133
+ },
6134
+ {
6135
+ radius: "full",
6136
+ size: "lg",
6137
+ class: {
6138
+ trigger: "px-5"
6139
+ }
6140
+ },
6141
+ {
6142
+ disableAnimation: false,
6143
+ variant: ["faded", "bordered"],
6144
+ class: {
6145
+ trigger: "transition-colors motion-reduce:transition-none"
6146
+ }
6147
+ },
6148
+ {
6149
+ disableAnimation: false,
6150
+ variant: "underlined",
6151
+ class: {
6152
+ trigger: "after:transition-width motion-reduce:after:transition-none"
6153
+ }
6154
+ },
6155
+ {
6156
+ variant: ["flat", "faded"],
6157
+ class: {
6158
+ trigger: [
6159
+ ...dataFocusVisibleClasses
6160
+ ]
6161
+ }
6162
+ },
6163
+ {
6164
+ isInvalid: true,
6165
+ variant: "flat",
6166
+ class: {
6167
+ trigger: [
6168
+ "bg-danger-50",
6169
+ "data-[hover=true]:bg-danger-100",
6170
+ "group-data-[focus=true]:bg-danger-50"
6171
+ ]
6172
+ }
6173
+ },
6174
+ {
6175
+ isInvalid: true,
6176
+ variant: "bordered",
6177
+ class: {
6178
+ trigger: "!border-danger group-data-[focus=true]:border-danger"
6179
+ }
6180
+ },
6181
+ {
6182
+ isInvalid: true,
6183
+ variant: "underlined",
6184
+ class: {
6185
+ trigger: "after:bg-danger"
6186
+ }
6187
+ },
6188
+ {
6189
+ labelPlacement: "inside",
6190
+ size: "sm",
6191
+ class: {
6192
+ trigger: "h-12 py-1.5 px-3"
6193
+ }
6194
+ },
6195
+ {
6196
+ labelPlacement: "inside",
6197
+ size: "md",
6198
+ class: {
6199
+ trigger: "h-14 py-2"
6200
+ }
6201
+ },
6202
+ {
6203
+ labelPlacement: "inside",
6204
+ size: "lg",
6205
+ class: {
6206
+ label: "text-small",
6207
+ trigger: "h-16 py-2.5 gap-0"
6208
+ }
6209
+ },
6210
+ {
6211
+ isLabelPlaceholder: true,
6212
+ labelPlacement: ["inside", "outside"],
6213
+ class: {
6214
+ label: [
6215
+ "font-normal",
6216
+ "group-data-[filled=true]:font-medium",
6217
+ "group-data-[filled=true]:pointer-events-auto"
6218
+ ]
6219
+ }
6220
+ },
6221
+ {
6222
+ isLabelPlaceholder: true,
6223
+ labelPlacement: "outside",
6224
+ class: {
6225
+ base: "group relative justify-end",
6226
+ label: [
6227
+ "pb-0",
6228
+ "z-20",
6229
+ "opacity-60",
6230
+ "top-1/2",
6231
+ "-translate-y-1/2",
6232
+ "group-data-[filled=true]:opacity-100",
6233
+ "group-data-[filled=true]:left-0"
6234
+ ]
6235
+ }
6236
+ },
6237
+ {
6238
+ isLabelPlaceholder: true,
6239
+ labelPlacement: "inside",
6240
+ size: ["sm", "md"],
6241
+ class: {
6242
+ label: ["text-small", "group-data-[filled=true]:text-tiny"],
6243
+ input: "pt-4"
6244
+ }
6245
+ },
6246
+ {
6247
+ isLabelPlaceholder: true,
6248
+ labelPlacement: "inside",
6249
+ size: "sm",
6250
+ class: {
6251
+ label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"],
6252
+ innerWrapper: "pt-4"
6253
+ }
6254
+ },
6255
+ {
6256
+ isLabelPlaceholder: true,
6257
+ labelPlacement: "inside",
6258
+ size: "md",
6259
+ class: {
6260
+ label: [
6261
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
6262
+ ],
6263
+ innerWrapper: "pt-4"
6264
+ }
6265
+ },
6266
+ {
6267
+ isLabelPlaceholder: true,
6268
+ labelPlacement: "inside",
6269
+ size: "lg",
6270
+ class: {
6271
+ label: [
6272
+ "text-medium",
6273
+ "group-data-[filled=true]:text-small",
6274
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
6275
+ ],
6276
+ innerWrapper: "pt-5"
6277
+ }
6278
+ },
6279
+ {
6280
+ isLabelPlaceholder: true,
6281
+ labelPlacement: "outside",
6282
+ size: "sm",
6283
+ class: {
6284
+ label: [
6285
+ "left-2",
6286
+ "text-small",
6287
+ "group-data-[filled=true]:text-tiny",
6288
+ "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
6289
+ ]
6290
+ }
6291
+ },
6292
+ {
6293
+ isLabelPlaceholder: true,
6294
+ labelPlacement: "outside",
6295
+ size: "md",
6296
+ class: {
6297
+ label: [
6298
+ "left-3",
6299
+ "text-small",
6300
+ "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
6301
+ ]
6302
+ }
6303
+ },
6304
+ {
6305
+ isLabelPlaceholder: true,
6306
+ labelPlacement: "outside",
6307
+ size: "lg",
6308
+ class: {
6309
+ label: [
6310
+ "left-3",
6311
+ "text-medium",
6312
+ "group-data-[filled=true]:text-small",
6313
+ "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
6314
+ ]
6315
+ }
6316
+ }
6317
+ ]
6318
+ });
6319
+
6320
+ // src/components/menu.ts
6321
+ var menu = tv({
6322
+ base: "w-full flex flex-col gap-0.5 p-1 outline-none"
6323
+ });
6324
+ var menuItem = tv({
6325
+ slots: {
6326
+ base: [
6327
+ "flex",
6328
+ "group",
6329
+ "gap-2",
6330
+ "items-center",
6331
+ "justify-between",
6332
+ "relative",
6333
+ "px-2",
6334
+ "py-1.5",
6335
+ "w-full",
6336
+ "h-full",
6337
+ "box-border",
6338
+ "rounded-small",
6339
+ "subpixel-antialiased",
6340
+ "outline-none",
6341
+ "cursor-pointer",
6342
+ "tap-highlight-transparent",
6343
+ ...dataFocusVisibleClasses,
6344
+ "data-[focus-visible=true]:dark:ring-offset-background-content1"
6345
+ ],
6346
+ wrapper: "w-full flex flex-col items-start justify-center",
6347
+ title: "flex-1 text-small font-normal truncate",
6348
+ description: ["w-full", "text-tiny", "text-foreground-500", "group-hover:text-current"],
6349
+ selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
6350
+ shortcut: [
6351
+ "px-1",
6352
+ "py-0.5",
6353
+ "rounded",
6354
+ "font-sans",
6355
+ "text-foreground-500",
6356
+ "text-tiny",
6357
+ "border-small",
6358
+ "border-default-300",
6359
+ "group-hover:border-current"
6360
+ ]
6361
+ },
6362
+ variants: {
6363
+ variant: {
6364
+ solid: {
6365
+ base: ""
6366
+ },
6367
+ bordered: {
6368
+ base: "border-medium border-transparent bg-transparent"
6369
+ },
6370
+ light: {
6371
+ base: "bg-transparent"
6372
+ },
6373
+ faded: {
6374
+ base: [
6375
+ "border-small border-transparent hover:border-default data-[hover=true]:bg-default-100",
6376
+ "data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"
6377
+ ]
6378
+ },
6379
+ flat: {
6380
+ base: ""
6381
+ },
6382
+ shadow: {
6383
+ base: "data-[hover=true]:shadow-lg"
6384
+ }
6385
+ },
6386
+ color: {
6387
+ default: {},
6388
+ primary: {},
6389
+ secondary: {},
6390
+ success: {},
6391
+ warning: {},
6392
+ danger: {}
6393
+ },
6394
+ showDivider: {
6395
+ true: {
6396
+ base: [
6397
+ "mb-1.5",
6398
+ "after:content-['']",
6399
+ "after:absolute",
6400
+ "after:-bottom-1",
6401
+ "after:left-0",
6402
+ "after:right-0",
6403
+ "after:h-divider",
6404
+ "after:bg-divider"
6405
+ ]
6406
+ },
6407
+ false: {}
6408
+ },
6409
+ isDisabled: {
6410
+ true: {
6411
+ base: "opacity-disabled pointer-events-none"
6412
+ }
6413
+ },
6414
+ disableAnimation: {
6415
+ true: {},
6416
+ false: {}
6417
+ }
6418
+ },
6419
+ defaultVariants: {
6420
+ variant: "solid",
6421
+ color: "default",
6422
+ disableAnimation: false,
6423
+ showDivider: false
6424
+ },
6425
+ compoundVariants: [
6426
+ {
6427
+ variant: "solid",
6428
+ color: "default",
6429
+ class: {
6430
+ base: [
6431
+ "data-[hover=true]:bg-default",
6432
+ "data-[hover=true]:text-default-foreground",
6433
+ "data-[selectable=true]:focus:bg-default",
6434
+ "data-[selectable=true]:focus:text-default-foreground"
6435
+ ]
6436
+ }
6437
+ },
6438
+ {
6439
+ variant: "solid",
6440
+ color: "primary",
6441
+ class: {
6442
+ base: [
6443
+ "data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground",
6444
+ "data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"
6445
+ ]
6446
+ }
6447
+ },
6448
+ {
6449
+ variant: "solid",
6450
+ color: "secondary",
6451
+ class: {
6452
+ base: [
6453
+ "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground",
6454
+ "data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"
6455
+ ]
6456
+ }
6457
+ },
6458
+ {
6459
+ variant: "solid",
6460
+ color: "success",
6461
+ class: {
6462
+ base: [
6463
+ "data-[hover=true]:bg-success data-[hover=true]:text-success-foreground",
6464
+ "data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"
6465
+ ]
6466
+ }
6467
+ },
6468
+ {
6469
+ variant: "solid",
6470
+ color: "warning",
6471
+ class: {
6472
+ base: [
6473
+ "data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground",
6474
+ "data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"
6475
+ ]
6476
+ }
6477
+ },
6478
+ {
6479
+ variant: "solid",
6480
+ color: "danger",
6481
+ class: {
6482
+ base: [
6483
+ "data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground",
6484
+ "data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"
6485
+ ]
6486
+ }
6487
+ },
6488
+ {
6489
+ variant: "shadow",
6490
+ color: "default",
6491
+ class: {
6492
+ base: [
6493
+ "data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground",
6494
+ "data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"
6495
+ ]
6496
+ }
6497
+ },
6498
+ {
6499
+ variant: "shadow",
6500
+ color: "primary",
6501
+ class: {
6502
+ base: [
6503
+ "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground",
6504
+ "data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"
6505
+ ]
6506
+ }
6507
+ },
6508
+ {
6509
+ variant: "shadow",
6510
+ color: "secondary",
6511
+ class: {
6512
+ base: [
6513
+ "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground",
6514
+ "data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"
6515
+ ]
6516
+ }
6517
+ },
6518
+ {
6519
+ variant: "shadow",
6520
+ color: "success",
6521
+ class: {
6522
+ base: [
6523
+ "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground",
6524
+ "data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"
6525
+ ]
6526
+ }
6527
+ },
6528
+ {
6529
+ variant: "shadow",
6530
+ color: "warning",
6531
+ class: {
6532
+ base: [
6533
+ "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground",
6534
+ "data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"
6535
+ ]
6536
+ }
6537
+ },
6538
+ {
6539
+ variant: "shadow",
6540
+ color: "danger",
6541
+ class: {
6542
+ base: [
6543
+ "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground",
6544
+ "data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"
6545
+ ]
6546
+ }
6547
+ },
6548
+ {
6549
+ variant: "bordered",
6550
+ color: "default",
6551
+ class: {
6552
+ base: ["data-[hover=true]:border-default", "data-[selectable=true]:focus:border-default"]
6553
+ }
6554
+ },
6555
+ {
6556
+ variant: "bordered",
6557
+ color: "primary",
6558
+ class: {
6559
+ base: [
6560
+ "data-[hover=true]:border-primary data-[hover=true]:text-primary",
6561
+ "data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"
6562
+ ]
6563
+ }
6564
+ },
6565
+ {
6566
+ variant: "bordered",
6567
+ color: "secondary",
6568
+ class: {
6569
+ base: [
6570
+ "data-[hover=true]:border-secondary data-[hover=true]:text-secondary",
6571
+ "data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"
6572
+ ]
6573
+ }
6574
+ },
6575
+ {
6576
+ variant: "bordered",
6577
+ color: "success",
6578
+ class: {
6579
+ base: [
6580
+ "data-[hover=true]:border-success data-[hover=true]:text-success",
6581
+ "data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"
6582
+ ]
6583
+ }
6584
+ },
6585
+ {
6586
+ variant: "bordered",
6587
+ color: "warning",
6588
+ class: {
6589
+ base: [
6590
+ "data-[hover=true]:border-warning data-[hover=true]:text-warning",
6591
+ "data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"
6592
+ ]
6593
+ }
6594
+ },
6595
+ {
6596
+ variant: "bordered",
6597
+ color: "danger",
6598
+ class: {
6599
+ base: [
6600
+ "data-[hover=true]:border-danger data-[hover=true]:text-danger",
6601
+ "data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"
6602
+ ]
6603
+ }
6604
+ },
6605
+ {
6606
+ variant: "flat",
6607
+ color: "default",
6608
+ class: {
6609
+ base: [
6610
+ "data-[hover=true]:bg-default/40",
6611
+ "data-[hover=true]:text-default-foreground",
6612
+ "data-[selectable=true]:focus:bg-default/40",
6613
+ "data-[selectable=true]:focus:text-default-foreground"
6614
+ ]
6615
+ }
6616
+ },
6617
+ {
6618
+ variant: "flat",
6619
+ color: "primary",
6620
+ class: {
6621
+ base: [
6622
+ "data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary",
6623
+ "data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"
6624
+ ]
6625
+ }
6626
+ },
6627
+ {
6628
+ variant: "flat",
6629
+ color: "secondary",
6630
+ class: {
6631
+ base: [
6632
+ "data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary",
6633
+ "data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"
6634
+ ]
6635
+ }
6636
+ },
6637
+ {
6638
+ variant: "flat",
6639
+ color: "success",
6640
+ class: {
6641
+ base: [
6642
+ "data-[hover=true]:bg-success/20 data-[hover=true]:text-success",
6643
+ "data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"
6644
+ ]
6645
+ }
6646
+ },
6647
+ {
6648
+ variant: "flat",
6649
+ color: "warning",
6650
+ class: {
6651
+ base: [
6652
+ "data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning",
6653
+ "data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"
6654
+ ]
6655
+ }
6656
+ },
6657
+ {
6658
+ variant: "flat",
6659
+ color: "danger",
6660
+ class: {
6661
+ base: [
6662
+ "data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger",
6663
+ "data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"
6664
+ ]
6665
+ }
6666
+ },
6667
+ {
6668
+ variant: "faded",
6669
+ color: "default",
6670
+ class: {
6671
+ base: [
6672
+ "data-[hover=true]:text-default-foreground",
6673
+ "data-[selectable=true]:focus:text-default-foreground"
6674
+ ]
6675
+ }
6676
+ },
6677
+ {
6678
+ variant: "faded",
6679
+ color: "primary",
6680
+ class: {
6681
+ base: ["data-[hover=true]:text-primary", "data-[selectable=true]:focus:text-primary"]
6682
+ }
6683
+ },
6684
+ {
6685
+ variant: "faded",
6686
+ color: "secondary",
6687
+ class: {
6688
+ base: ["data-[hover=true]:text-secondary", "data-[selectable=true]:focus:text-secondary"]
6689
+ }
6690
+ },
6691
+ {
6692
+ variant: "faded",
6693
+ color: "success",
6694
+ class: {
6695
+ base: ["data-[hover=true]:text-success", "data-[selectable=true]:focus:text-success"]
6696
+ }
6697
+ },
6698
+ {
6699
+ variant: "faded",
6700
+ color: "warning",
6701
+ class: {
6702
+ base: ["data-[hover=true]:text-warning", "data-[selectable=true]:focus:text-warning"]
6703
+ }
6704
+ },
6705
+ {
6706
+ variant: "faded",
6707
+ color: "danger",
6708
+ class: {
6709
+ base: ["data-[hover=true]:text-danger", "data-[selectable=true]:focus:text-danger"]
6710
+ }
6711
+ },
6712
+ {
6713
+ variant: "light",
6714
+ color: "default",
6715
+ class: {
6716
+ base: [
6717
+ "data-[hover=true]:text-default-500",
6718
+ "data-[selectable=true]:focus:text-default-500"
6719
+ ]
6720
+ }
6721
+ },
6722
+ {
6723
+ variant: "light",
6724
+ color: "primary",
6725
+ class: {
6726
+ base: ["data-[hover=true]:text-primary", "data-[selectable=true]:focus:text-primary"]
6727
+ }
6728
+ },
6729
+ {
6730
+ variant: "light",
6731
+ color: "secondary",
6732
+ class: {
6733
+ base: ["data-[hover=true]:text-secondary", "data-[selectable=true]:focus:text-secondary"]
6734
+ }
6735
+ },
6736
+ {
6737
+ variant: "light",
6738
+ color: "success",
6739
+ class: {
6740
+ base: ["data-[hover=true]:text-success", "data-[selectable=true]:focus:text-success"]
6741
+ }
6742
+ },
6743
+ {
6744
+ variant: "light",
6745
+ color: "warning",
6746
+ class: {
6747
+ base: ["data-[hover=true]:text-warning", "data-[selectable=true]:focus:text-warning"]
6748
+ }
6749
+ },
6750
+ {
6751
+ variant: "light",
6752
+ color: "danger",
6753
+ class: {
6754
+ base: ["data-[hover=true]:text-danger", "data-[selectable=true]:focus:text-danger"]
6755
+ }
6756
+ }
6757
+ ]
6758
+ });
6759
+ var menuSection = tv({
6760
+ slots: {
6761
+ base: "relative mb-2",
6762
+ heading: "pl-1 text-tiny text-foreground-500",
6763
+ group: "data-[has-title=true]:pt-1",
6764
+ divider: "mt-2"
6765
+ }
6766
+ });
6767
+
6768
+ // src/components/scroll-shadow.ts
6769
+ var verticalShadow = [
6770
+ "data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
6771
+ "data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
6772
+ "data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
6773
+ ];
6774
+ var horizontalShadow = [
6775
+ "data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
6776
+ "data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
6777
+ "data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
6778
+ ];
6779
+ var scrollShadow = tv({
6780
+ base: [],
6781
+ variants: {
6782
+ orientation: {
6783
+ vertical: ["overflow-y-auto", ...verticalShadow],
6784
+ horizontal: ["overflow-x-auto", ...horizontalShadow]
6785
+ },
6786
+ hideScrollBar: {
6787
+ true: "scrollbar-hide",
6788
+ false: ""
6789
+ }
6790
+ },
6791
+ defaultVariants: {
6792
+ orientation: "vertical",
6793
+ hideScrollBar: false
6794
+ }
6795
+ });
6796
+
6797
+ // src/colors/blue.ts
6798
+ var blue = {
6799
+ 50: "#e6f1fe",
6800
+ 100: "#cce3fd",
6801
+ 200: "#99c7fb",
6802
+ 300: "#66aaf9",
6803
+ 400: "#338ef7",
6804
+ 500: "#006FEE",
6805
+ 600: "#005bc4",
6806
+ 700: "#004493",
6807
+ 800: "#002e62",
6808
+ 900: "#001731"
6809
+ };
6810
+
6811
+ // src/colors/green.ts
6812
+ var green = {
6813
+ 50: "#e8faf0",
6814
+ 100: "#d1f4e0",
6815
+ 200: "#a2e9c1",
6816
+ 300: "#74dfa2",
6817
+ 400: "#45d483",
6818
+ 500: "#17c964",
6819
+ 600: "#12a150",
6820
+ 700: "#0e793c",
6821
+ 800: "#095028",
6822
+ 900: "#052814"
6823
+ };
6824
+
6825
+ // src/colors/pink.ts
6826
+ var pink = {
6827
+ 50: "#ffedfa",
6828
+ 100: "#ffdcf5",
6829
+ 200: "#ffb8eb",
6830
+ 300: "#ff95e1",
6831
+ 400: "#ff71d7",
6832
+ 500: "#ff4ecd",
6833
+ 600: "#cc3ea4",
6834
+ 700: "#992f7b",
6835
+ 800: "#661f52",
6836
+ 900: "#331029"
6837
+ };
6838
+
6839
+ // src/colors/purple.ts
6840
+ var purple = {
6841
+ 50: "#f2eafa",
6842
+ 100: "#e4d4f4",
6843
+ 200: "#c9a9e9",
6844
+ 300: "#ae7ede",
6845
+ 400: "#9353d3",
6846
+ 500: "#7828c8",
6847
+ 600: "#6020a0",
6848
+ 700: "#481878",
6849
+ 800: "#301050",
6850
+ 900: "#180828"
6851
+ };
6852
+
6853
+ // src/colors/red.ts
6854
+ var red = {
6855
+ 50: "#fee7ef",
6856
+ 100: "#fdd0df",
6857
+ 200: "#faa0bf",
6858
+ 300: "#f871a0",
6859
+ 400: "#f54180",
6860
+ 500: "#f31260",
6861
+ 600: "#c20e4d",
6862
+ 700: "#920b3a",
6863
+ 800: "#610726",
6864
+ 900: "#310413"
6865
+ };
6866
+
6867
+ // src/colors/yellow.ts
6868
+ var yellow = {
6869
+ 50: "#fefce8",
6870
+ 100: "#fdedd3",
6871
+ 200: "#fbdba7",
6872
+ 300: "#f9c97c",
6873
+ 400: "#f7b750",
6874
+ 500: "#f5a524",
6875
+ 600: "#c4841d",
6876
+ 700: "#936316",
6877
+ 800: "#62420e",
6878
+ 900: "#312107"
6879
+ };
6880
+
6881
+ // src/colors/cyan.ts
6882
+ var cyan = {
6883
+ 50: "#F0FCFF",
6884
+ 100: "#E6FAFE",
6885
+ 200: "#D7F8FE",
6886
+ 300: "#C3F4FD",
6887
+ 400: "#A5EEFD",
6888
+ 500: "#7EE7FC",
6889
+ 600: "#06B7DB",
6890
+ 700: "#09AACD",
6891
+ 800: "#0E8AAA",
6892
+ 900: "#053B48"
6893
+ };
6894
+
6895
+ // src/colors/zinc.ts
6896
+ var zinc = {
6897
+ "50": "#fafafa",
6898
+ "100": "#f4f4f5",
6899
+ "200": "#e4e4e7",
6900
+ "300": "#d4d4d8",
6901
+ "400": "#a1a1aa",
6902
+ "500": "#71717a",
6903
+ "600": "#52525b",
6904
+ "700": "#3f3f46",
6905
+ "800": "#27272a",
6906
+ "900": "#18181b"
6907
+ };
6908
+
6909
+ // src/colors/common.ts
6910
+ var commonColors = {
6911
+ white: "#ffffff",
6912
+ black: "#000000",
6913
+ blue,
6914
+ green,
6915
+ pink,
6916
+ purple,
6917
+ red,
6918
+ yellow,
6919
+ cyan,
6920
+ zinc
6921
+ };
6922
+
6923
+ // src/colors/semantic.ts
6924
+ var import_color2k = require("color2k");
6925
+
6926
+ // src/utils/object.ts
6927
+ var import_flat = __toESM(require("flat"));
6928
+ function swapColorValues(colors2) {
6929
+ const swappedColors = {};
6930
+ const keys = Object.keys(colors2);
6931
+ const length = keys.length;
6932
+ for (let i = 0; i < length / 2; i++) {
6933
+ const key1 = keys[i];
6934
+ const key2 = keys[length - 1 - i];
6935
+ swappedColors[key1] = colors2[key2];
6936
+ swappedColors[key2] = colors2[key1];
6937
+ }
6938
+ if (length % 2 !== 0) {
6939
+ const middleKey = keys[Math.floor(length / 2)];
6940
+ swappedColors[middleKey] = colors2[middleKey];
5930
6941
  }
5931
6942
  return swappedColors;
5932
6943
  }
@@ -6501,6 +7512,9 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
6501
7512
  ...addCommonColors ? commonColors : {},
6502
7513
  ...resolved.colors
6503
7514
  },
7515
+ scale: {
7516
+ "80": "0.8"
7517
+ },
6504
7518
  height: {
6505
7519
  divider: `var(--${prefix}-divider-weight)`
6506
7520
  },
@@ -6646,7 +7660,13 @@ var nextui = (config = {}) => {
6646
7660
  kbd,
6647
7661
  link,
6648
7662
  linkAnchorClasses,
7663
+ listbox,
7664
+ listboxItem,
7665
+ listboxSection,
6649
7666
  mappedSpacingScaleKeys,
7667
+ menu,
7668
+ menuItem,
7669
+ menuSection,
6650
7670
  modal,
6651
7671
  navbar,
6652
7672
  nextui,
@@ -6656,6 +7676,8 @@ var nextui = (config = {}) => {
6656
7676
  radio,
6657
7677
  radioGroup,
6658
7678
  ringClasses,
7679
+ scrollShadow,
7680
+ select,
6659
7681
  semanticColors,
6660
7682
  skeleton,
6661
7683
  snippet,