@nextui-org/theme 2.3.0-beta.5 → 2.3.0-beta.6

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.js CHANGED
@@ -8882,13 +8882,12 @@ var dateRangePicker = tv({
8882
8882
  // src/components/alert.ts
8883
8883
  var alert = tv({
8884
8884
  slots: {
8885
- base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
8886
- mainWrapper: [
8887
- "flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
8888
- ],
8889
- title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
8890
- description: "text-small font-normal min-h-5 max-h-full text-inherit",
8885
+ base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
8886
+ mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit",
8887
+ title: "w-full font-medium block text-inherit leading-5",
8888
+ description: "pl-[1px] text-small font-normal text-inherit",
8891
8889
  closeButton: "relative text-inherit",
8890
+ iconWrapper: "flex items-center justify-center w-9 h-9 rounded-full",
8892
8891
  alertIcon: "fill-current w-6"
8893
8892
  },
8894
8893
  variants: {
@@ -8903,8 +8902,11 @@ var alert = tv({
8903
8902
  variant: {
8904
8903
  solid: {},
8905
8904
  flat: {},
8905
+ faded: {
8906
+ base: "border-small"
8907
+ },
8906
8908
  bordered: {
8907
- base: "border-medium bg-transparent"
8909
+ base: "border-small bg-transparent"
8908
8910
  }
8909
8911
  },
8910
8912
  radius: {
@@ -8924,10 +8926,18 @@ var alert = tv({
8924
8926
  base: "rounded-full"
8925
8927
  }
8926
8928
  },
8927
- hasDescription: {
8929
+ hideIcon: {
8928
8930
  true: {
8929
- alertIcon: "mt-0.5"
8930
- },
8931
+ iconWrapper: "hidden"
8932
+ }
8933
+ },
8934
+ hideIconWrapper: {
8935
+ true: {
8936
+ base: "gap-x-0",
8937
+ iconWrapper: "!bg-transparent !shadow-none"
8938
+ }
8939
+ },
8940
+ hasDescription: {
8931
8941
  false: {
8932
8942
  base: "items-center",
8933
8943
  mainWrapper: "justify-center"
@@ -8937,7 +8947,9 @@ var alert = tv({
8937
8947
  defaultVariants: {
8938
8948
  color: "default",
8939
8949
  variant: "flat",
8940
- radius: "md"
8950
+ radius: "md",
8951
+ hideIcon: false,
8952
+ hideIconWrapper: false
8941
8953
  },
8942
8954
  compoundVariants: [
8943
8955
  {
@@ -8985,52 +8997,100 @@ var alert = tv({
8985
8997
  }
8986
8998
  },
8987
8999
  {
8988
- variant: "flat",
9000
+ variant: ["flat", "faded"],
8989
9001
  color: "default",
8990
9002
  class: {
8991
9003
  base: [colorVariants.flat.default, "text-default-foreground"],
8992
9004
  description: "text-default-600",
8993
- closeButton: "text-default-400"
9005
+ closeButton: "text-default-400",
9006
+ iconWrapper: "bg-default-50 dark:bg-default-100"
8994
9007
  }
8995
9008
  },
8996
9009
  {
8997
- variant: "flat",
9010
+ variant: ["flat", "faded"],
8998
9011
  color: "primary",
8999
9012
  class: {
9000
9013
  base: colorVariants.flat.primary,
9001
- closeButton: "text-primary-400 data-[hover]:bg-primary-100"
9014
+ closeButton: "text-primary-400 data-[hover]:bg-primary-100",
9015
+ iconWrapper: "bg-primary-50 dark:bg-primary-100"
9002
9016
  }
9003
9017
  },
9004
9018
  {
9005
- variant: "flat",
9019
+ variant: ["flat", "faded"],
9006
9020
  color: "secondary",
9007
9021
  class: {
9008
9022
  base: colorVariants.flat.secondary,
9009
- closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
9023
+ closeButton: "text-secondary-400 data-[hover]:bg-secondary-100",
9024
+ iconWrapper: "bg-secondary-50 dark:bg-secondary-100"
9010
9025
  }
9011
9026
  },
9012
9027
  {
9013
- variant: "flat",
9028
+ variant: ["flat", "faded"],
9014
9029
  color: "success",
9015
9030
  class: {
9016
9031
  base: colorVariants.flat.success,
9017
- closeButton: "text-success-400 data-[hover]:bg-success-100"
9032
+ closeButton: "text-success-400 data-[hover]:bg-success-100",
9033
+ iconWrapper: "bg-success-50 dark:bg-success-100"
9018
9034
  }
9019
9035
  },
9020
9036
  {
9021
- variant: "flat",
9037
+ variant: ["flat", "faded"],
9022
9038
  color: "warning",
9023
9039
  class: {
9024
9040
  base: colorVariants.flat.warning,
9025
- closeButton: "text-warning-500 data-[hover]:bg-warning-200"
9041
+ closeButton: "text-warning-500 data-[hover]:bg-warning-200",
9042
+ iconWrapper: "bg-warning-50 dark:bg-warning-100"
9026
9043
  }
9027
9044
  },
9028
9045
  {
9029
- variant: "flat",
9046
+ variant: ["flat", "faded"],
9030
9047
  color: "danger",
9031
9048
  class: {
9032
9049
  base: colorVariants.flat.danger,
9033
- closeButton: "text-danger-400 data-[hover]:bg-danger-100"
9050
+ closeButton: "text-danger-400 data-[hover]:bg-danger-100",
9051
+ iconWrapper: "bg-danger-50 dark:bg-danger-100"
9052
+ }
9053
+ },
9054
+ {
9055
+ variant: "faded",
9056
+ color: "default",
9057
+ class: {
9058
+ base: "border-default"
9059
+ }
9060
+ },
9061
+ {
9062
+ variant: "faded",
9063
+ color: "primary",
9064
+ class: {
9065
+ base: "border-primary"
9066
+ }
9067
+ },
9068
+ {
9069
+ variant: "faded",
9070
+ color: "secondary",
9071
+ class: {
9072
+ base: "border-secondary"
9073
+ }
9074
+ },
9075
+ {
9076
+ variant: "faded",
9077
+ color: "success",
9078
+ class: {
9079
+ base: "border-success"
9080
+ }
9081
+ },
9082
+ {
9083
+ variant: "faded",
9084
+ color: "warning",
9085
+ class: {
9086
+ base: "border-warning"
9087
+ }
9088
+ },
9089
+ {
9090
+ variant: "faded",
9091
+ color: "danger",
9092
+ class: {
9093
+ base: "border-danger"
9034
9094
  }
9035
9095
  },
9036
9096
  {
@@ -9081,6 +9141,54 @@ var alert = tv({
9081
9141
  base: [colorVariants.bordered.danger],
9082
9142
  closeButton: "data-[hover]:bg-danger-50"
9083
9143
  }
9144
+ },
9145
+ {
9146
+ variant: ["flat", "bordered", "faded"],
9147
+ class: {
9148
+ iconWrapper: "shadow-small"
9149
+ }
9150
+ },
9151
+ {
9152
+ variant: "bordered",
9153
+ color: "default",
9154
+ class: {
9155
+ iconWrapper: "bg-default-200 dark:bg-default-100"
9156
+ }
9157
+ },
9158
+ {
9159
+ variant: "bordered",
9160
+ color: "primary",
9161
+ class: {
9162
+ iconWrapper: "bg-primary-100 dark:bg-primary-50"
9163
+ }
9164
+ },
9165
+ {
9166
+ variant: "bordered",
9167
+ color: "secondary",
9168
+ class: {
9169
+ iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
9170
+ }
9171
+ },
9172
+ {
9173
+ variant: "bordered",
9174
+ color: "success",
9175
+ class: {
9176
+ iconWrapper: "bg-success-100 dark:bg-success-50"
9177
+ }
9178
+ },
9179
+ {
9180
+ variant: "bordered",
9181
+ color: "warning",
9182
+ class: {
9183
+ iconWrapper: "bg-warning-100 dark:bg-warning-50"
9184
+ }
9185
+ },
9186
+ {
9187
+ variant: "bordered",
9188
+ color: "danger",
9189
+ class: {
9190
+ iconWrapper: "bg-danger-100 dark:bg-danger-50"
9191
+ }
9084
9192
  }
9085
9193
  ]
9086
9194
  });
package/dist/index.mjs CHANGED
@@ -121,7 +121,7 @@ import {
121
121
  } from "./chunk-HIFLYEAM.mjs";
122
122
  import {
123
123
  alert
124
- } from "./chunk-3XDFZGUJ.mjs";
124
+ } from "./chunk-SKCOO5MF.mjs";
125
125
  import {
126
126
  autocomplete
127
127
  } from "./chunk-2TAKWWRG.mjs";
@@ -152,13 +152,12 @@ import {
152
152
  } from "./chunk-GIXI35A3.mjs";
153
153
  import {
154
154
  nextui
155
- } from "./chunk-ZD36336F.mjs";
155
+ } from "./chunk-LCMN7HGG.mjs";
156
156
  import "./chunk-D2XMP2NC.mjs";
157
157
  import "./chunk-XZMJGJQX.mjs";
158
158
  import "./chunk-WN6AL2BX.mjs";
159
159
  import "./chunk-W5UU3F46.mjs";
160
160
  import "./chunk-4Z22WXZX.mjs";
161
- import "./chunk-DMASP6FA.mjs";
162
161
  import {
163
162
  absoluteFullClasses,
164
163
  baseStyles,
@@ -172,10 +171,10 @@ import {
172
171
  import "./chunk-WQEDQHKX.mjs";
173
172
  import {
174
173
  colors
175
- } from "./chunk-QGHMGO5E.mjs";
174
+ } from "./chunk-QZTWGJ72.mjs";
176
175
  import {
177
176
  semanticColors
178
- } from "./chunk-7L2ZWDVP.mjs";
177
+ } from "./chunk-G4RCK475.mjs";
179
178
  import "./chunk-KUNVFLXJ.mjs";
180
179
  import "./chunk-M63AFAHO.mjs";
181
180
  import {
@@ -184,17 +183,18 @@ import {
184
183
  lightLayout
185
184
  } from "./chunk-HUBDRSA4.mjs";
186
185
  import "./chunk-WBQAMGXK.mjs";
186
+ import "./chunk-DMASP6FA.mjs";
187
187
  import {
188
188
  commonColors
189
- } from "./chunk-6TOTQSJE.mjs";
189
+ } from "./chunk-IAS3SFA4.mjs";
190
+ import "./chunk-JUEOCLA3.mjs";
190
191
  import "./chunk-3LKKH4AR.mjs";
192
+ import "./chunk-T3GWIVAM.mjs";
191
193
  import "./chunk-OR5PUD24.mjs";
192
194
  import "./chunk-DCEG5LGX.mjs";
193
195
  import "./chunk-L2OL7R23.mjs";
194
196
  import "./chunk-YZYGFPNK.mjs";
195
- import "./chunk-JUEOCLA3.mjs";
196
197
  import "./chunk-GHZ36ATJ.mjs";
197
- import "./chunk-T3GWIVAM.mjs";
198
198
  export {
199
199
  COMMON_UNITS,
200
200
  absoluteFullClasses,
package/dist/plugin.mjs CHANGED
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-ZD36336F.mjs";
3
+ } from "./chunk-LCMN7HGG.mjs";
4
4
  import "./chunk-D2XMP2NC.mjs";
5
5
  import "./chunk-XZMJGJQX.mjs";
6
6
  import "./chunk-WN6AL2BX.mjs";
7
7
  import "./chunk-W5UU3F46.mjs";
8
8
  import "./chunk-4Z22WXZX.mjs";
9
- import "./chunk-DMASP6FA.mjs";
10
9
  import "./chunk-XHQUSKIE.mjs";
11
10
  import "./chunk-WQEDQHKX.mjs";
12
- import "./chunk-QGHMGO5E.mjs";
13
- import "./chunk-7L2ZWDVP.mjs";
11
+ import "./chunk-QZTWGJ72.mjs";
12
+ import "./chunk-G4RCK475.mjs";
14
13
  import "./chunk-KUNVFLXJ.mjs";
15
14
  import "./chunk-M63AFAHO.mjs";
16
15
  import "./chunk-HUBDRSA4.mjs";
17
- import "./chunk-6TOTQSJE.mjs";
16
+ import "./chunk-DMASP6FA.mjs";
17
+ import "./chunk-IAS3SFA4.mjs";
18
+ import "./chunk-JUEOCLA3.mjs";
18
19
  import "./chunk-3LKKH4AR.mjs";
20
+ import "./chunk-T3GWIVAM.mjs";
19
21
  import "./chunk-OR5PUD24.mjs";
20
22
  import "./chunk-DCEG5LGX.mjs";
21
23
  import "./chunk-L2OL7R23.mjs";
22
24
  import "./chunk-YZYGFPNK.mjs";
23
- import "./chunk-JUEOCLA3.mjs";
24
25
  import "./chunk-GHZ36ATJ.mjs";
25
- import "./chunk-T3GWIVAM.mjs";
26
26
  export {
27
27
  nextui
28
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "2.3.0-beta.5",
3
+ "version": "2.3.0-beta.6",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -1,6 +1,12 @@
1
+ import {
2
+ yellow
3
+ } from "./chunk-JUEOCLA3.mjs";
1
4
  import {
2
5
  zinc
3
6
  } from "./chunk-3LKKH4AR.mjs";
7
+ import {
8
+ cyan
9
+ } from "./chunk-T3GWIVAM.mjs";
4
10
  import {
5
11
  green
6
12
  } from "./chunk-OR5PUD24.mjs";
@@ -13,15 +19,9 @@ import {
13
19
  import {
14
20
  red
15
21
  } from "./chunk-YZYGFPNK.mjs";
16
- import {
17
- yellow
18
- } from "./chunk-JUEOCLA3.mjs";
19
22
  import {
20
23
  blue
21
24
  } from "./chunk-GHZ36ATJ.mjs";
22
- import {
23
- cyan
24
- } from "./chunk-T3GWIVAM.mjs";
25
25
 
26
26
  // src/colors/common.ts
27
27
  var commonColors = {