@sunggang/ui-lib 0.1.24 → 0.1.25

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/index.esm.css CHANGED
@@ -634,6 +634,9 @@ video {
634
634
  .relative {
635
635
  position: relative;
636
636
  }
637
+ .inset-0 {
638
+ inset: 0px;
639
+ }
637
640
  .bottom-0 {
638
641
  bottom: 0px;
639
642
  }
@@ -658,6 +661,9 @@ video {
658
661
  .top-2\/4 {
659
662
  top: 50%;
660
663
  }
664
+ .z-10 {
665
+ z-index: 10;
666
+ }
661
667
  .z-50 {
662
668
  z-index: 50;
663
669
  }
@@ -814,6 +820,9 @@ video {
814
820
  .w-full {
815
821
  width: 100%;
816
822
  }
823
+ .w-px {
824
+ width: 1px;
825
+ }
817
826
  .min-w-\[16rem\] {
818
827
  min-width: 16rem;
819
828
  }
@@ -934,9 +943,16 @@ video {
934
943
  .border-4 {
935
944
  border-width: 4px;
936
945
  }
946
+ .border-y {
947
+ border-top-width: 1px;
948
+ border-bottom-width: 1px;
949
+ }
937
950
  .border-b {
938
951
  border-bottom-width: 1px;
939
952
  }
953
+ .border-r {
954
+ border-right-width: 1px;
955
+ }
940
956
  .border-solid {
941
957
  border-style: solid;
942
958
  }
@@ -1003,6 +1019,9 @@ video {
1003
1019
  .bg-destructive {
1004
1020
  background-color: hsl(var(--destructive));
1005
1021
  }
1022
+ .bg-foreground {
1023
+ background-color: hsl(var(--foreground));
1024
+ }
1006
1025
  .bg-gray-100 {
1007
1026
  --tw-bg-opacity: 1;
1008
1027
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
@@ -1243,6 +1262,10 @@ video {
1243
1262
  .text-primary-foreground {
1244
1263
  color: hsl(var(--primary-foreground));
1245
1264
  }
1265
+ .text-red-600 {
1266
+ --tw-text-opacity: 1;
1267
+ color: rgb(220 38 38 / var(--tw-text-opacity));
1268
+ }
1246
1269
  .text-secondary-foreground {
1247
1270
  color: hsl(var(--secondary-foreground));
1248
1271
  }
@@ -1305,6 +1328,11 @@ video {
1305
1328
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1306
1329
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1307
1330
  }
1331
+ .ring-1 {
1332
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1333
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1334
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1335
+ }
1308
1336
  .blur {
1309
1337
  --tw-blur: blur(8px);
1310
1338
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
@@ -1323,6 +1351,11 @@ video {
1323
1351
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1324
1352
  transition-duration: 150ms;
1325
1353
  }
1354
+ .transition-all {
1355
+ transition-property: all;
1356
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1357
+ transition-duration: 150ms;
1358
+ }
1326
1359
  .transition-colors {
1327
1360
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
1328
1361
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -1338,6 +1371,9 @@ video {
1338
1371
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1339
1372
  transition-duration: 150ms;
1340
1373
  }
1374
+ .duration-1000 {
1375
+ transition-duration: 1000ms;
1376
+ }
1341
1377
  .duration-300 {
1342
1378
  transition-duration: 300ms;
1343
1379
  }
@@ -1361,6 +1397,9 @@ video {
1361
1397
  transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
1362
1398
  }
1363
1399
  }
1400
+ .duration-1000 {
1401
+ animation-duration: 1000ms;
1402
+ }
1364
1403
  .duration-300 {
1365
1404
  animation-duration: 300ms;
1366
1405
  }
@@ -1373,6 +1412,20 @@ video {
1373
1412
 
1374
1413
  /* gary */
1375
1414
 
1415
+ .first\:rounded-l-md:first-child {
1416
+ border-top-left-radius: calc(var(--radius) - 2px);
1417
+ border-bottom-left-radius: calc(var(--radius) - 2px);
1418
+ }
1419
+
1420
+ .first\:border-l:first-child {
1421
+ border-left-width: 1px;
1422
+ }
1423
+
1424
+ .last\:rounded-r-md:last-child {
1425
+ border-top-right-radius: calc(var(--radius) - 2px);
1426
+ border-bottom-right-radius: calc(var(--radius) - 2px);
1427
+ }
1428
+
1376
1429
  .focus-within\:relative:focus-within {
1377
1430
  position: relative;
1378
1431
  }
@@ -1475,6 +1528,10 @@ video {
1475
1528
  opacity: 0.5;
1476
1529
  }
1477
1530
 
1531
+ .has-\[\:disabled\]\:opacity-50:has(:disabled) {
1532
+ opacity: 0.5;
1533
+ }
1534
+
1478
1535
  .aria-selected\:bg-accent[aria-selected="true"] {
1479
1536
  background-color: hsl(var(--accent));
1480
1537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "dependencies": {
5
5
  "@radix-ui/react-popover": "^1.0.7",
6
6
  "@radix-ui/react-slot": "^1.0.2",
@@ -8,6 +8,7 @@
8
8
  "class-variance-authority": "^0.7.0",
9
9
  "clsx": "^2.1.0",
10
10
  "date-fns": "^3.6.0",
11
+ "input-otp": "^1.2.4",
11
12
  "lucide-react": "^0.363.0",
12
13
  "react-day-picker": "^8.10.0",
13
14
  "tailwind-merge": "^2.2.2",
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
3
+ value?: string | undefined;
4
+ onChange?: ((newValue: string) => unknown) | undefined;
5
+ maxLength: number;
6
+ textAlign?: "center" | "left" | "right" | undefined;
7
+ onComplete?: ((...args: any[]) => unknown) | undefined;
8
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
9
+ containerClassName?: string | undefined;
10
+ noScriptCSSFallback?: string | null | undefined;
11
+ } & {
12
+ render: (props: import("input-otp").RenderProps) => React.ReactNode;
13
+ children?: undefined;
14
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
15
+ value?: string | undefined;
16
+ onChange?: ((newValue: string) => unknown) | undefined;
17
+ maxLength: number;
18
+ textAlign?: "center" | "left" | "right" | undefined;
19
+ onComplete?: ((...args: any[]) => unknown) | undefined;
20
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
21
+ containerClassName?: string | undefined;
22
+ noScriptCSSFallback?: string | null | undefined;
23
+ } & {
24
+ render?: undefined;
25
+ children: React.ReactNode;
26
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
27
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
+ index: number;
30
+ ringClassName: string;
31
+ } & React.RefAttributes<HTMLDivElement>>;
32
+ declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export interface InputOTPProps {
3
+ length: number;
4
+ noticeText?: string | undefined;
5
+ textClassName?: string | undefined;
6
+ ringClassName?: string | undefined;
7
+ value: string;
8
+ setValue: React.Dispatch<React.SetStateAction<string>>;
9
+ }
10
+ export declare const InputOTPs: React.FC<InputOTPProps>;