@kanda-libs/ks-component-ts 0.2.338 → 0.2.340
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.d.ts +11499 -11499
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/dist/library.css +32 -4
- package/package.json +1 -1
- package/src/components/FormTheme/constants.ts +27 -0
- package/src/field/components/FileInput/JobPdfFileCard/constants.ts +8 -6
- package/src/generated/widget/index.tsx +48854 -48855
- package/src/styles/library.css +32 -4
package/dist/library.css
CHANGED
|
@@ -1543,10 +1543,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1543
1543
|
height: 32px;
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
|
-
.h-12 {
|
|
1547
|
-
height: 48px;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
1546
|
.h-5\/6 {
|
|
1551
1547
|
height: 83.333333%;
|
|
1552
1548
|
}
|
|
@@ -1555,6 +1551,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1555
1551
|
height: 320px;
|
|
1556
1552
|
}
|
|
1557
1553
|
|
|
1554
|
+
.h-12 {
|
|
1555
|
+
height: 48px;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
1558
|
.h-52 {
|
|
1559
1559
|
height: 208px;
|
|
1560
1560
|
}
|
|
@@ -1619,6 +1619,26 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1619
1619
|
min-height: 120px;
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
|
+
.min-h-12 {
|
|
1623
|
+
min-height: 48px;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.min-h-6 {
|
|
1627
|
+
min-height: 24px;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.min-h-5 {
|
|
1631
|
+
min-height: 20px;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
.min-h-7 {
|
|
1635
|
+
min-height: 28px;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
.min-h-4 {
|
|
1639
|
+
min-height: 16px;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1622
1642
|
.min-h-20 {
|
|
1623
1643
|
min-height: 80px;
|
|
1624
1644
|
}
|
|
@@ -1796,6 +1816,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1796
1816
|
min-width: 24px;
|
|
1797
1817
|
}
|
|
1798
1818
|
|
|
1819
|
+
.min-w-7 {
|
|
1820
|
+
min-width: 28px;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.min-w-4 {
|
|
1824
|
+
min-width: 16px;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1799
1827
|
.min-w-36 {
|
|
1800
1828
|
min-width: 144px;
|
|
1801
1829
|
}
|
package/package.json
CHANGED
|
@@ -24,6 +24,30 @@ export const DEFAULT_THEME = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
export const BORDERED_THEME = {
|
|
28
|
+
fieldWrapper: "Default" as FieldWrapperType,
|
|
29
|
+
baseClasses:
|
|
30
|
+
"rounded-lg flex w-full bg-neutral-000 border border-neutral-300 caret-turquoise-300",
|
|
31
|
+
inputClasses:
|
|
32
|
+
"text-style-g text-neutral-900 placeholder-neutral-600 text-base md:text-sm",
|
|
33
|
+
focusClasses:
|
|
34
|
+
"border-solid border-transparent focus:outline-none focus:border-turquoise-300 focus:bg-neutral-000",
|
|
35
|
+
focusWithinClasses:
|
|
36
|
+
"border-solid border-transparent focus-within:outline-none focus-within:border-turquoise-300 focus-within:bg-neutral-000",
|
|
37
|
+
paddingClasses: "px-4 py-3.25",
|
|
38
|
+
skeletonClasses: "w-2/6",
|
|
39
|
+
placeholderClasses: "px-4 pt-1",
|
|
40
|
+
makeErrorClasses: (error?: string) =>
|
|
41
|
+
error ? "border-solid border border-red-200" : "",
|
|
42
|
+
wrapperClasses: {
|
|
43
|
+
baseContainer: "flex flex-col mb-6 text-left",
|
|
44
|
+
error: "mt-2 text-style-h text-red-200",
|
|
45
|
+
warning: "mt-2 text-style-h text-neutral-600",
|
|
46
|
+
label: "w-full text-style-h-em text-neutral-600 mb-2",
|
|
47
|
+
helperText: "whitespace-nowrap text-style-h text-neutral-500",
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
27
51
|
export const DEFAULT_WHITE_THEME = {
|
|
28
52
|
fieldWrapper: "Default" as FieldWrapperType,
|
|
29
53
|
baseClasses:
|
|
@@ -342,6 +366,7 @@ const PERCENTAGE_INCREMENT_THEME = {
|
|
|
342
366
|
|
|
343
367
|
enum Variants {
|
|
344
368
|
DEFAULT = "default",
|
|
369
|
+
BORDERED = "bordered",
|
|
345
370
|
DEFAULT_WHITE = "default-white",
|
|
346
371
|
CLEAN = "clean",
|
|
347
372
|
NARROW = "narrow",
|
|
@@ -362,6 +387,7 @@ enum Variants {
|
|
|
362
387
|
|
|
363
388
|
export const VARIANTS: StringIndexedObject<string> = {
|
|
364
389
|
DEFAULT: Variants.DEFAULT,
|
|
390
|
+
BORDERED: Variants.BORDERED,
|
|
365
391
|
DEFAULT_WHITE: Variants.DEFAULT_WHITE,
|
|
366
392
|
CLEAN: Variants.CLEAN,
|
|
367
393
|
NARROW: Variants.NARROW,
|
|
@@ -382,6 +408,7 @@ export const VARIANTS: StringIndexedObject<string> = {
|
|
|
382
408
|
|
|
383
409
|
export const FORM_THEME_VARIANTS: StringIndexedObject<Theme> = {
|
|
384
410
|
[VARIANTS.DEFAULT]: DEFAULT_THEME,
|
|
411
|
+
[VARIANTS.BORDERED]: BORDERED_THEME,
|
|
385
412
|
[VARIANTS.DEFAULT_WHITE]: DEFAULT_WHITE_THEME,
|
|
386
413
|
[VARIANTS.CLEAN]: CLEAN_THEME,
|
|
387
414
|
[VARIANTS.NARROW]: NARROW_THEME,
|
|
@@ -18,7 +18,7 @@ export const CLASS_NAMES = {
|
|
|
18
18
|
progress:
|
|
19
19
|
"absolute bg-turquoise-300 h-full opacity-10 z-0 transition-width transition-slowest ease",
|
|
20
20
|
bottom:
|
|
21
|
-
"relative border border-t-0 rounded-b-xl border-neutral-200 bg-neutral-000 h-12 overflow-hidden",
|
|
21
|
+
"relative border border-t-0 rounded-b-xl border-neutral-200 bg-neutral-000 min-h-12 overflow-hidden",
|
|
22
22
|
padding: "flex flex-row justify-between px-3 py-2.5",
|
|
23
23
|
},
|
|
24
24
|
small: {
|
|
@@ -29,7 +29,7 @@ export const CLASS_NAMES = {
|
|
|
29
29
|
progress:
|
|
30
30
|
"absolute bg-turquoise-300 h-full opacity-10 z-0 transition-width transition-slowest ease",
|
|
31
31
|
bottom:
|
|
32
|
-
"relative border border-t-0 rounded-b-xl border-neutral-200 bg-neutral-000 h-12 overflow-hidden",
|
|
32
|
+
"relative border border-t-0 rounded-b-xl border-neutral-200 bg-neutral-000 min-h-12 overflow-hidden",
|
|
33
33
|
padding: "flex flex-row justify-between px-3 py-2.5",
|
|
34
34
|
},
|
|
35
35
|
};
|
|
@@ -40,18 +40,19 @@ export const ICONS = {
|
|
|
40
40
|
icon: "file",
|
|
41
41
|
stroke: "turquoise-300",
|
|
42
42
|
size: 24,
|
|
43
|
-
className: "mr-4",
|
|
43
|
+
className: "mr-4 min-w-6 min-h-6",
|
|
44
44
|
},
|
|
45
45
|
progress: {
|
|
46
46
|
icon: "load",
|
|
47
47
|
stroke: "neutral-500",
|
|
48
48
|
size: 20,
|
|
49
|
-
className: "animate-spin ml-2 my-auto",
|
|
49
|
+
className: "animate-spin ml-2 my-auto min-w-5 min-h-5",
|
|
50
50
|
},
|
|
51
51
|
delete: {
|
|
52
52
|
icon: "remove",
|
|
53
53
|
stroke: "neutral-600",
|
|
54
54
|
size: 28,
|
|
55
|
+
className: "min-w-7 min-h-7",
|
|
55
56
|
},
|
|
56
57
|
},
|
|
57
58
|
small: {
|
|
@@ -59,18 +60,19 @@ export const ICONS = {
|
|
|
59
60
|
icon: "file",
|
|
60
61
|
stroke: "turquoise-300",
|
|
61
62
|
size: 20,
|
|
62
|
-
className: "mr-3",
|
|
63
|
+
className: "mr-3 min-w-5 min-h-5",
|
|
63
64
|
},
|
|
64
65
|
progress: {
|
|
65
66
|
icon: "load",
|
|
66
67
|
stroke: "neutral-500",
|
|
67
68
|
size: 16,
|
|
68
|
-
className: "animate-spin ml-2 my-auto",
|
|
69
|
+
className: "animate-spin ml-2 my-auto min-w-4 min-h-4",
|
|
69
70
|
},
|
|
70
71
|
delete: {
|
|
71
72
|
icon: "remove",
|
|
72
73
|
stroke: "neutral-600",
|
|
73
74
|
size: 28,
|
|
75
|
+
className: "min-w-7 min-h-7",
|
|
74
76
|
},
|
|
75
77
|
},
|
|
76
78
|
};
|