funda-ui 3.0.125 → 3.1.125

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/Date/index.css CHANGED
@@ -2,17 +2,22 @@
2
2
  <!-- Date -->
3
3
  /* ====================================================== */
4
4
  .date2d__trigger {
5
- --date2d-focus-border-color:#86b7fe;
6
- --date2d-focus-box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
5
+ --date2d-trigger-focus-border-color:#86b7fe;
6
+ --date2d-trigger-focus-box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
7
+ --date2d-trigger-clear-bg: rgb(156, 156, 156);
7
8
  }
8
9
  .date2d__trigger.focus .date2d__control input {
9
- box-shadow: var(--date2d-focus-box-shadow);
10
- border-color: var(--date2d-focus-border-color);
10
+ box-shadow: var(--date2d-trigger-focus-box-shadow);
11
+ border-color: var(--date2d-trigger-focus-border-color);
11
12
  outline: 0;
12
13
  }
13
14
  .date2d__trigger .date2d__control {
14
15
  position: relative;
15
16
  }
17
+ .date2d__trigger .date2d__control .form-control {
18
+ color: transparent;
19
+ pointer-events: none;
20
+ }
16
21
  .date2d__trigger .date2d__control .date2d__control__icon {
17
22
  position: absolute;
18
23
  top: 0.3rem;
@@ -20,6 +25,44 @@
20
25
  z-index: 6;
21
26
  pointer-events: none;
22
27
  }
28
+ .date2d__trigger .date2d__control .date2d__control__icon .date2d__control__icon__close {
29
+ display: inline-block;
30
+ margin-right: 0.2rem;
31
+ pointer-events: all;
32
+ }
33
+ .date2d__trigger .date2d__control .date2d__control__icon .date2d__control__icon__close svg path {
34
+ fill: var(--date2d-trigger-clear-bg);
35
+ }
36
+ .date2d__trigger .date2d__control__inputplaceholder {
37
+ display: inline-block;
38
+ position: relative;
39
+ width: 100%;
40
+ position: absolute;
41
+ top: 50%;
42
+ left: 0;
43
+ z-index: 1;
44
+ transform: translateY(-50%);
45
+ margin-left: 0.5rem;
46
+ font-size: 0.875rem;
47
+ }
48
+ .date2d__trigger .date2d__control__inputplaceholder > input {
49
+ padding: 0 !important;
50
+ margin: 0 !important;
51
+ border: none;
52
+ background: transparent;
53
+ box-shadow: none;
54
+ border: none;
55
+ width: 1.0714285714rem;
56
+ outline: 0 !important;
57
+ border-color: transparent !important;
58
+ box-shadow: none !important;
59
+ }
60
+ .date2d__trigger .date2d__control__inputplaceholder .date2d__control__inputplaceholder--year {
61
+ width: 2.1428571429rem;
62
+ }
63
+ .date2d__trigger .date2d__control .input-group:not(.has-left-content) .date2d__control__inputplaceholder {
64
+ left: 0.5rem;
65
+ }
23
66
 
24
67
  .date2d__wrapper {
25
68
  --date2d-box-shadow: 0 5px 15px 0 rgba(0,0,0,.07), 0 15px 35px 0 rgba(50,50,93,.1);
package/Date/index.d.ts CHANGED
@@ -11,8 +11,6 @@ declare type DateProps = {
11
11
  onlyTime?: boolean;
12
12
  truncateSeconds?: boolean;
13
13
  valueUseSlash?: boolean;
14
- min?: any;
15
- max?: any;
16
14
  value?: string;
17
15
  label?: React.ReactNode | string;
18
16
  units?: string;
@@ -21,8 +19,6 @@ declare type DateProps = {
21
19
  disabled?: any;
22
20
  required?: any;
23
21
  readOnly?: any;
24
- placeholder?: string;
25
- pattern?: any;
26
22
  iconLeft?: React.ReactNode | string;
27
23
  iconRight?: React.ReactNode | string;
28
24
  /** -- */
@@ -31,9 +27,6 @@ declare type DateProps = {
31
27
  autoComplete?: string;
32
28
  tabIndex?: number;
33
29
  [key: `data-${string}`]: string | undefined;
34
- onChangeCallback?: (e: any) => void;
35
- onInputCallback?: (e: any) => void;
36
- onKeyPressedCallback?: (e: any) => void;
37
30
  onLoad?: (e: any, data: any) => void;
38
31
  onChange?: (e: any, data: any) => void;
39
32
  onBlur?: (e: any) => void;