@deepnoid/ui 0.1.2 → 0.1.4

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.
@@ -4157,172 +4157,230 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
4157
4157
  });
4158
4158
  Input.displayName = "Input";
4159
4159
  var input_default = Input;
4160
- var inputStyle = tv({
4161
- slots: {
4162
- base: ["group/input", "flex"],
4163
- vertical: ["flex-col"],
4164
- horizon: ["flex-row", "gap-0"],
4165
- label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
4166
- innerWrapper: ["flex", "flex-col"],
4167
- inputWrapper: ["flex", "items-center", "transition", "duration-200", "group-has-[p.error]/input:bg-danger-soft"],
4168
- input: [
4169
- "w-full",
4170
- "h-full",
4171
- "bg-transparent",
4172
- "text-neutral-main",
4173
- "placeholder:text-neutral-main",
4174
- "focus:outline-none",
4175
- "focus:ring-0",
4176
- "group-has-[:hover]/input:text-neutral-dark",
4177
- "group-has-[:hover]/input:placeholder:text-neutral-dark",
4178
- "group-has-[:focus]/input:text-neutral-dark",
4179
- "group-has-[:focus]/input:placeholder:text-neutral-dark",
4180
- "group-has-[p.error]/input:text-danger-main",
4181
- "group-has-[p.error]/input:placeholder:text-danger-main"
4182
- ],
4183
- content: [
4184
- "flex",
4185
- "items-center",
4186
- "select-none",
4187
- "text-neutral-main",
4188
- "group-has-[:hover]/input:text-neutral-dark",
4189
- "group-has-[p.error]/input:text-danger-main"
4190
- ],
4191
- helperText: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
4192
- errorText: ["text-danger-main"],
4193
- readonly: ["pointer-events-none"]
4194
- },
4195
- variants: {
4196
- variant: {
4197
- solid: {
4198
- inputWrapper: ["!border-transparent", "bg-trans-soft", "group-has-[:focus]/input:text-body-foreground"],
4199
- readonly: ["!bg-trans-light"]
4160
+ var inputStyle = tv(
4161
+ {
4162
+ slots: {
4163
+ base: ["group/input", "flex"],
4164
+ vertical: ["flex-col"],
4165
+ horizon: ["flex-row", "gap-0"],
4166
+ label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
4167
+ innerWrapper: ["flex", "flex-col"],
4168
+ inputWrapper: ["flex", "items-center", "duration-200", "group-has-[.error]/input:bg-danger-soft"],
4169
+ input: [
4170
+ "w-full",
4171
+ "h-full",
4172
+ "bg-transparent",
4173
+ "text-neutral-main",
4174
+ "placeholder:text-neutral-main",
4175
+ "outline-none",
4176
+ "focus:ring-0",
4177
+ "group-has-[:hover]/input:text-neutral-dark",
4178
+ "group-has-[:hover]/input:placeholder:text-neutral-dark",
4179
+ "group-has-[:focus]/input:text-neutral-dark",
4180
+ "group-has-[:focus]/input:placeholder:text-neutral-dark",
4181
+ "group-has-[.error]/input:text-danger-main",
4182
+ "group-has-[.error]/input:placeholder:text-danger-main"
4183
+ ],
4184
+ content: [
4185
+ "flex",
4186
+ "items-center",
4187
+ "select-none",
4188
+ "text-neutral-main",
4189
+ "group-has-[:hover]/input:text-neutral-dark",
4190
+ "group-has-[.error]/input:text-danger-main"
4191
+ ],
4192
+ helperText: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
4193
+ errorText: ["text-danger-main"],
4194
+ readonly: ["pointer-events-none"]
4195
+ },
4196
+ variants: {
4197
+ variant: {
4198
+ solid: {
4199
+ inputWrapper: ["border-transparent", "bg-trans-soft"],
4200
+ readonly: ["!bg-trans-light"]
4201
+ },
4202
+ outline: {
4203
+ inputWrapper: [
4204
+ "border-neutral-light",
4205
+ "group-has-[:hover]/input:bg-trans-soft",
4206
+ "group-has-[:focus]/input:bg-body-background",
4207
+ "group-has-[.error]/input:border-danger-main"
4208
+ ],
4209
+ readonly: ["!bg-trans-soft"]
4210
+ },
4211
+ underline: {
4212
+ inputWrapper: [
4213
+ "bg-transparent",
4214
+ "rounded-none",
4215
+ "group-has-[:hover]/input:bg-trans-soft",
4216
+ "group-has-[:focus]/input:bg-body-background",
4217
+ "group-has-[.error]/input:border-danger-main"
4218
+ ],
4219
+ readonly: ["!bg-trans-soft"]
4220
+ }
4200
4221
  },
4201
- outline: {
4202
- inputWrapper: [
4203
- "border-neutral-light",
4204
- "group-has-[:hover]/input:bg-trans-soft",
4205
- "group-has-[:focus]/input:bg-body-background",
4206
- "group-has-[p.error]/input:border-danger-main"
4207
- ],
4208
- readonly: ["!bg-trans-soft"]
4222
+ color: {
4223
+ primary: {
4224
+ content: [
4225
+ "group-has-[:focus]/input:text-primary-main",
4226
+ "!group-has-[.error]:not(input:focus):hover/input:text-primary-main"
4227
+ ],
4228
+ helperText: [
4229
+ "group-has-[:focus]/input:text-primary-main",
4230
+ "group-has-[:focus:hover]/input:text-primary-main",
4231
+ "group-has-[:focus]/input:hover:text-primary-main"
4232
+ ]
4233
+ },
4234
+ secondary: {
4235
+ content: [
4236
+ "group-has-[:focus]/input:text-secondary-main",
4237
+ "group-has-[:focus:hover]/input:text-secondary-main"
4238
+ ],
4239
+ helperText: [
4240
+ "group-has-[:focus]/input:text-secondary-main",
4241
+ "group-has-[:focus:hover]/input:text-secondary-main",
4242
+ "group-has-[:focus]/input:hover:text-secondary-main"
4243
+ ]
4244
+ }
4209
4245
  },
4210
- underline: {
4211
- inputWrapper: [
4212
- "bg-transparent",
4213
- "!rounded-none",
4214
- "!border-t-transparent",
4215
- "!border-l-transparent",
4216
- "!border-r-transparent",
4217
- "group-has-[:hover]/input:bg-trans-soft",
4218
- "group-has-[:focus]/input:bg-body-background",
4219
- "group-has-[p.error]/input:border-danger-main"
4220
- ],
4221
- readonly: ["!bg-trans-soft"]
4222
- }
4223
- },
4224
- color: {
4225
- primary: {
4226
- content: [
4227
- "group-has-[:focus]/input:text-primary-main",
4228
- "!group-has-[p.error]:not(input:focus):hover/input:text-primary-main"
4229
- ],
4230
- helperText: [
4231
- "group-has-[:focus]/input:text-primary-main",
4232
- "group-has-[:focus:hover]/input:text-primary-main",
4233
- "group-has-[:focus]/input:hover:text-primary-main"
4234
- ]
4246
+ size: {
4247
+ sm: {
4248
+ base: ["text-sm", "gap-[4px]"],
4249
+ label: ["text-sm"],
4250
+ innerWrapper: ["gap-[4px]"],
4251
+ inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "gap-[4px]"],
4252
+ helperText: ["text-sm"],
4253
+ errorText: ["text-sm"]
4254
+ },
4255
+ md: {
4256
+ base: ["text-md", "gap-[6px]"],
4257
+ label: ["text-md"],
4258
+ innerWrapper: ["gap-[6px]"],
4259
+ inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "gap-[6px]"],
4260
+ helperText: ["text-sm"],
4261
+ errorText: ["text-sm"]
4262
+ },
4263
+ lg: {
4264
+ base: ["text-lg", "gap-[8px]"],
4265
+ label: ["text-lg"],
4266
+ innerWrapper: ["gap-[8px]"],
4267
+ inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "gap-[8px]"],
4268
+ helperText: ["text-md"],
4269
+ errorText: ["text-md"]
4270
+ },
4271
+ xl: {
4272
+ base: ["text-xl", "gap-[10px]"],
4273
+ label: ["text-xl"],
4274
+ innerWrapper: ["gap-[10px]"],
4275
+ inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "gap-[10px]"],
4276
+ helperText: ["text-md"],
4277
+ errorText: ["text-md"]
4278
+ }
4235
4279
  },
4236
- secondary: {
4237
- content: [
4238
- "group-has-[:focus]/input:text-secondary-main",
4239
- "!group-has-[p.error]:not(input:focus):hover/input:text-secondary-main"
4240
- ],
4241
- helperText: [
4242
- "group-has-[:focus]/input:text-secondary-main",
4243
- "group-has-[:focus:hover]/input:text-secondary-main",
4244
- "group-has-[:focus]/input:hover:text-secondary-main"
4245
- ]
4280
+ direction: {
4281
+ vertical: "",
4282
+ horizon: ""
4283
+ },
4284
+ full: {
4285
+ true: {
4286
+ base: ["w-full"],
4287
+ innerWrapper: ["flex-1"],
4288
+ inputWrapper: ["w-full"]
4289
+ }
4290
+ },
4291
+ disabled: {
4292
+ true: {
4293
+ inputWrapper: ["bg-neutral-soft", "pointer-events-none", "group-has-[.error]/input:text-danger-light"],
4294
+ input: [
4295
+ "text-neutral-light",
4296
+ "placeholder:text-neutral-light",
4297
+ "group-has-[.error]/input:text-danger-light",
4298
+ "group-has-[.error]/input:placeholder:text-danger-light"
4299
+ ],
4300
+ content: ["text-neutral-light", "group-has-[.error]/input:text-danger-light"],
4301
+ helperText: ["!text-neutral-light"],
4302
+ errorText: ["!text-danger-light"]
4303
+ }
4246
4304
  }
4247
4305
  },
4248
- size: {
4249
- sm: {
4250
- base: ["text-sm", "gap-[4px]"],
4251
- label: ["text-sm"],
4252
- innerWrapper: ["gap-[4px]"],
4253
- inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "border-sm"],
4254
- helperText: ["text-sm"],
4255
- errorText: ["text-sm"]
4306
+ compoundVariants: [
4307
+ {
4308
+ variant: "outline",
4309
+ size: "sm",
4310
+ class: {
4311
+ inputWrapper: ["border-sm"]
4312
+ }
4256
4313
  },
4257
- md: {
4258
- base: ["text-md", "gap-[6px]"],
4259
- label: ["text-md"],
4260
- innerWrapper: ["gap-[6px]"],
4261
- inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "border-md"],
4262
- helperText: ["text-sm"],
4263
- errorText: ["text-sm"]
4314
+ {
4315
+ variant: "outline",
4316
+ size: "md",
4317
+ class: {
4318
+ inputWrapper: ["border-md"]
4319
+ }
4264
4320
  },
4265
- lg: {
4266
- base: ["text-lg", "gap-[8px]"],
4267
- label: ["text-lg"],
4268
- innerWrapper: ["gap-[8px]"],
4269
- inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "border-lg"],
4270
- helperText: ["text-md"],
4271
- errorText: ["text-md"]
4321
+ {
4322
+ variant: "outline",
4323
+ size: "lg",
4324
+ class: {
4325
+ inputWrapper: ["border-lg"]
4326
+ }
4272
4327
  },
4273
- xl: {
4274
- base: ["text-xl", "gap-[10px]"],
4275
- label: ["text-xl"],
4276
- innerWrapper: ["gap-[10px]"],
4277
- inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "border-xl"],
4278
- helperText: ["text-md"],
4279
- errorText: ["text-md"]
4280
- }
4281
- },
4282
- direction: {
4283
- vertical: "",
4284
- horizon: ""
4285
- },
4286
- full: {
4287
- true: {
4288
- base: ["w-full"],
4289
- innerWrapper: ["flex-1"],
4290
- inputWrapper: ["w-full"]
4291
- }
4292
- },
4293
- disabled: {
4294
- true: {
4295
- inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "!group-has-[p.error]/input:text-danger-light"],
4296
- input: [
4297
- "text-neutral-light",
4298
- "placeholder:text-neutral-light",
4299
- "group-has-[p.error]/input:text-danger-light",
4300
- "group-has-[p.error]/input:placeholder:text-danger-light"
4301
- ],
4302
- content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
4303
- helperText: ["!text-neutral-light"],
4304
- errorText: ["!text-danger-light"]
4328
+ {
4329
+ variant: "outline",
4330
+ size: "xl",
4331
+ class: {
4332
+ inputWrapper: ["border-xl"]
4333
+ }
4334
+ },
4335
+ {
4336
+ variant: "underline",
4337
+ size: "sm",
4338
+ class: {
4339
+ inputWrapper: ["border-b-sm"]
4340
+ }
4341
+ },
4342
+ {
4343
+ variant: "underline",
4344
+ size: "md",
4345
+ class: {
4346
+ inputWrapper: ["border-b-md"]
4347
+ }
4348
+ },
4349
+ {
4350
+ variant: "underline",
4351
+ size: "lg",
4352
+ class: {
4353
+ inputWrapper: ["border-b-lg"]
4354
+ }
4355
+ },
4356
+ {
4357
+ variant: "underline",
4358
+ size: "xl",
4359
+ class: {
4360
+ inputWrapper: ["border-b-xl"]
4361
+ }
4362
+ },
4363
+ {
4364
+ disabled: true,
4365
+ variant: ["outline", "underline"],
4366
+ class: {
4367
+ inputWrapper: ["!bg-body-background", "group-has-[.error]/input:border-danger-light"]
4368
+ }
4305
4369
  }
4370
+ ],
4371
+ defaultVariants: {
4372
+ variant: "solid",
4373
+ color: "primary",
4374
+ size: "md",
4375
+ direction: "vertical",
4376
+ disabled: false,
4377
+ readonly: false
4306
4378
  }
4307
4379
  },
4308
- compoundVariants: [
4309
- {
4310
- disabled: true,
4311
- variant: ["outline", "underline"],
4312
- class: {
4313
- inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:border-danger-light"]
4314
- }
4315
- }
4316
- ],
4317
- defaultVariants: {
4318
- variant: "solid",
4319
- color: "primary",
4320
- size: "md",
4321
- direction: "vertical",
4322
- disabled: false,
4323
- readonly: false
4380
+ {
4381
+ twMerge: false
4324
4382
  }
4325
- });
4383
+ );
4326
4384
  // Annotate the CommonJS export names for ESM import in node:
4327
4385
  0 && (module.exports = {
4328
4386
  Input
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-2GCSFWHD.mjs";
3
3
  import {
4
4
  input_default
5
- } from "../../chunk-OYNGJ33M.mjs";
5
+ } from "../../chunk-TDJJRQDC.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-24NQEB73.mjs";
8
8
  import "../../chunk-P2TMIZRH.mjs";