@brickclay-org/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.
- package/fesm2022/brickclay-org-ui.mjs +66 -41
- package/fesm2022/brickclay-org-ui.mjs.map +1 -1
- package/index.d.ts +8 -3
- package/package.json +1 -1
- package/src/lib/grid/components/grid/grid.css +32 -18
- package/src/lib/hierarchical-select/hierarchical-select.css +3 -3
- package/src/lib/radio/radio.css +23 -12
- package/src/lib/select/select.css +73 -17
- package/src/lib/tabs/tabs.css +16 -8
- package/src/lib/textarea/textarea.css +6 -0
- package/src/lib/toastr/toastr.css +31 -0
- package/src/lib/tooltip/tooltip-directive.css +11 -4
- package/src/lib/ui-button/ui-button.css +4 -4
package/index.d.ts
CHANGED
|
@@ -273,6 +273,7 @@ declare class BkCustomCalendar implements OnInit, OnDestroy, OnChanges, ControlV
|
|
|
273
273
|
*/
|
|
274
274
|
private parseDateString;
|
|
275
275
|
formatDateToString(date: Date): string;
|
|
276
|
+
get showClearIcon(): boolean;
|
|
276
277
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkCustomCalendar, never>;
|
|
277
278
|
static ɵcmp: i0.ɵɵComponentDeclaration<BkCustomCalendar, "bk-custom-calendar", never, { "enableTimepicker": { "alias": "enableTimepicker"; "required": false; }; "autoApply": { "alias": "autoApply"; "required": false; }; "closeOnAutoApply": { "alias": "closeOnAutoApply"; "required": false; }; "showCancel": { "alias": "showCancel"; "required": false; }; "linkedCalendars": { "alias": "linkedCalendars"; "required": false; }; "singleDatePicker": { "alias": "singleDatePicker"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showISOWeekNumbers": { "alias": "showISOWeekNumbers"; "required": false; }; "customRangeDirection": { "alias": "customRangeDirection"; "required": false; }; "lockStartDate": { "alias": "lockStartDate"; "required": false; }; "position": { "alias": "position"; "required": false; }; "drop": { "alias": "drop"; "required": false; }; "dualCalendar": { "alias": "dualCalendar"; "required": false; }; "showRanges": { "alias": "showRanges"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "clearableTime": { "alias": "clearableTime"; "required": false; }; "enableSeconds": { "alias": "enableSeconds"; "required": false; }; "customRanges": { "alias": "customRanges"; "required": false; }; "multiDateSelection": { "alias": "multiDateSelection"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "opens": { "alias": "opens"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "isDisplayCrossIcon": { "alias": "isDisplayCrossIcon"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "showCancelApply": { "alias": "showCancelApply"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "displayFormat": { "alias": "displayFormat"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
278
279
|
}
|
|
@@ -361,6 +362,7 @@ declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit, ControlV
|
|
|
361
362
|
placeholder: string;
|
|
362
363
|
clearable: boolean;
|
|
363
364
|
position: 'left' | 'right';
|
|
365
|
+
variation: 'default' | 'lg';
|
|
364
366
|
pickerId: string;
|
|
365
367
|
closePicker: number;
|
|
366
368
|
timeFormat: 12 | 24;
|
|
@@ -428,7 +430,7 @@ declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit, ControlV
|
|
|
428
430
|
onMinuteWheelScroll(): void;
|
|
429
431
|
onSecondWheelScroll(): void;
|
|
430
432
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkTimePicker, never>;
|
|
431
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BkTimePicker, "bk-time-picker", never, { "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "position": { "alias": "position"; "required": false; }; "pickerId": { "alias": "pickerId"; "required": false; }; "closePicker": { "alias": "closePicker"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; "timeChange": "timeChange"; "pickerOpened": "pickerOpened"; "pickerClosed": "pickerClosed"; }, never, never, true, never>;
|
|
433
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkTimePicker, "bk-time-picker", never, { "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "position": { "alias": "position"; "required": false; }; "variation": { "alias": "variation"; "required": false; }; "pickerId": { "alias": "pickerId"; "required": false; }; "closePicker": { "alias": "closePicker"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; "timeChange": "timeChange"; "pickerOpened": "pickerOpened"; "pickerClosed": "pickerClosed"; }, never, never, true, never>;
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
/**
|
|
@@ -754,6 +756,7 @@ declare class BkSelect implements ControlValueAccessor {
|
|
|
754
756
|
iconAlt: string;
|
|
755
757
|
label: string;
|
|
756
758
|
required: Boolean;
|
|
759
|
+
variation: 'default' | 'sm';
|
|
757
760
|
iconSrc?: string;
|
|
758
761
|
multiple: i0.InputSignal<boolean>;
|
|
759
762
|
maxLabels: i0.InputSignal<number>;
|
|
@@ -784,6 +787,7 @@ declare class BkSelect implements ControlValueAccessor {
|
|
|
784
787
|
optionsRef: QueryList<ElementRef>;
|
|
785
788
|
controlWrapper: ElementRef<HTMLDivElement>;
|
|
786
789
|
private _value;
|
|
790
|
+
private static activeInstance;
|
|
787
791
|
isOpen: i0.WritableSignal<boolean>;
|
|
788
792
|
selectedOptions: i0.WritableSignal<any[]>;
|
|
789
793
|
searchTerm: i0.WritableSignal<string>;
|
|
@@ -835,9 +839,9 @@ declare class BkSelect implements ControlValueAccessor {
|
|
|
835
839
|
items: any[];
|
|
836
840
|
}[]>;
|
|
837
841
|
resolveColor(item: any): string | null;
|
|
838
|
-
getRemainingItems(): string
|
|
842
|
+
getRemainingItems(): string[];
|
|
839
843
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkSelect, never>;
|
|
840
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BkSelect, "bk-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "notFoundText": { "alias": "notFoundText"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "clearAllText": { "alias": "clearAllText"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "colorKey": { "alias": "colorKey"; "required": false; "isSignal": true; }; "iconAlt": { "alias": "iconAlt"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "iconSrc": { "alias": "iconSrc"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "maxLabels": { "alias": "maxLabels"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "allSelect": { "alias": "allSelect"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "search": "search"; "clear": "clear"; "change": "change"; "scrollToEnd": "scrollToEnd"; }, never, never, true, never>;
|
|
844
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkSelect, "bk-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "notFoundText": { "alias": "notFoundText"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "clearAllText": { "alias": "clearAllText"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "colorKey": { "alias": "colorKey"; "required": false; "isSignal": true; }; "iconAlt": { "alias": "iconAlt"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "variation": { "alias": "variation"; "required": false; }; "iconSrc": { "alias": "iconSrc"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "maxLabels": { "alias": "maxLabels"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "allSelect": { "alias": "allSelect"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "search": "search"; "clear": "clear"; "change": "change"; "scrollToEnd": "scrollToEnd"; }, never, never, true, never>;
|
|
841
845
|
}
|
|
842
846
|
|
|
843
847
|
type BkInputType = 'text' | 'email' | 'password' | 'number' | 'url' | 'tel';
|
|
@@ -986,6 +990,7 @@ interface TabItem {
|
|
|
986
990
|
direction?: TabIconDirection;
|
|
987
991
|
iconTooltip?: string | string[];
|
|
988
992
|
iconTooltipDirection?: 'left' | 'right' | 'top' | 'bottom';
|
|
993
|
+
error?: boolean;
|
|
989
994
|
}
|
|
990
995
|
declare class BkTabs {
|
|
991
996
|
list: TabItem[];
|
package/package.json
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
|
|
2
1
|
/*---------- Table Start -------- */
|
|
3
2
|
.grid-header {
|
|
4
|
-
@apply bg-[#
|
|
3
|
+
@apply bg-[#F9FAFA] text-xs text-[#60646C] font-semibold capitalize px-[17px] py-2.5 whitespace-nowrap;
|
|
4
|
+
box-shadow: 0 1px 0 0 #EBEDF3;
|
|
5
|
+
-webkit-transform: translateZ(0);
|
|
6
|
+
transform: translateZ(0);
|
|
7
|
+
backface-visibility: hidden;
|
|
8
|
+
-webkit-backface-visibility: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
thead tr th:first-child {
|
|
12
|
+
border-top-left-radius: 0.75rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
thead tr th:last-child {
|
|
16
|
+
border-top-right-radius: 0.75rem;
|
|
5
17
|
}
|
|
6
18
|
|
|
7
19
|
.grid-cell {
|
|
8
|
-
@apply text-[#15191E] text-[13px] font-medium leading-4 px-4 py-2 border border-[#EBEDF3]
|
|
20
|
+
@apply text-[#15191E] text-[13px] font-medium leading-4 px-4 py-2 border-x border-b border-[#EBEDF3];
|
|
9
21
|
}
|
|
10
|
-
|
|
22
|
+
|
|
23
|
+
.grid-cell:last-child {
|
|
11
24
|
@apply border-e-0;
|
|
12
25
|
}
|
|
13
|
-
|
|
26
|
+
|
|
27
|
+
.grid-cell:first-child {
|
|
14
28
|
@apply border-s-0;
|
|
15
29
|
}
|
|
30
|
+
|
|
16
31
|
.grid-first-cell {
|
|
17
32
|
@apply border-s-0;
|
|
18
33
|
}
|
|
@@ -26,15 +41,16 @@
|
|
|
26
41
|
}
|
|
27
42
|
|
|
28
43
|
.grid-action-sticky::before {
|
|
29
|
-
@apply absolute top-0 bottom-0 left-[-8px] w-2
|
|
44
|
+
@apply absolute top-0 bottom-0 left-[-8px] w-2;
|
|
30
45
|
content: '';
|
|
31
46
|
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.05), transparent);
|
|
32
47
|
}
|
|
33
48
|
|
|
34
49
|
|
|
35
|
-
.grid-required{
|
|
36
|
-
@apply
|
|
50
|
+
.grid-required {
|
|
51
|
+
@apply font-medium text-sm leading-normal after:content-['*'] after:text-[#C10007] after:ms-0.5;
|
|
37
52
|
}
|
|
53
|
+
|
|
38
54
|
/*-----Sort Icons Start-----*/
|
|
39
55
|
.grid-sort {
|
|
40
56
|
display: inline-flex;
|
|
@@ -77,19 +93,19 @@
|
|
|
77
93
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M4 4.24984C3.825 4.24984 3.70833 4.1915 3.59167 4.07484L0.675 1.15817C0.441667 0.924838 0.441667 0.574837 0.675 0.341504C0.908333 0.108171 1.25833 0.108171 1.49167 0.341504L4 2.84984L6.50833 0.341504C6.74167 0.108171 7.09167 0.108171 7.325 0.341504C7.55833 0.574837 7.55833 0.924838 7.325 1.15817L4.40833 4.07484C4.29167 4.1915 4.175 4.24984 4 4.24984Z' fill='%2378829D'/%3e%3c/svg%3e");
|
|
78
94
|
}
|
|
79
95
|
|
|
80
|
-
.grid-asc
|
|
96
|
+
.grid-asc>.grid-sort-icon:before {
|
|
81
97
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M1.08333 4.83333C0.908333 4.83333 0.791667 4.775 0.675 4.65833C0.441667 4.425 0.441667 4.075 0.675 3.84167L3.59167 0.925C3.825 0.691667 4.175 0.691667 4.40833 0.925L7.325 3.84167C7.55833 4.075 7.55833 4.425 7.325 4.65833C7.09167 4.89167 6.74167 4.89167 6.50833 4.65833L4 2.15L1.49167 4.65833C1.375 4.775 1.25833 4.83333 1.08333 4.83333Z' fill='%234B5675'/%3e%3c/svg%3e");
|
|
82
98
|
}
|
|
83
99
|
|
|
84
|
-
.grid-asc
|
|
100
|
+
.grid-asc>.grid-sort-icon:after {
|
|
85
101
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M4 4.24984C3.825 4.24984 3.70833 4.1915 3.59167 4.07484L0.675 1.15817C0.441667 0.924838 0.441667 0.574837 0.675 0.341504C0.908333 0.108171 1.25833 0.108171 1.49167 0.341504L4 2.84984L6.50833 0.341504C6.74167 0.108171 7.09167 0.108171 7.325 0.341504C7.55833 0.574837 7.55833 0.924838 7.325 1.15817L4.40833 4.07484C4.29167 4.1915 4.175 4.24984 4 4.24984Z' fill='%23C4CADA'/%3e%3c/svg%3e");
|
|
86
102
|
}
|
|
87
103
|
|
|
88
|
-
.grid-desc
|
|
104
|
+
.grid-desc>.grid-sort-icon:before {
|
|
89
105
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M1.08333 4.83333C0.908333 4.83333 0.791667 4.775 0.675 4.65833C0.441667 4.425 0.441667 4.075 0.675 3.84167L3.59167 0.925C3.825 0.691667 4.175 0.691667 4.40833 0.925L7.325 3.84167C7.55833 4.075 7.55833 4.425 7.325 4.65833C7.09167 4.89167 6.74167 4.89167 6.50833 4.65833L4 2.15L1.49167 4.65833C1.375 4.775 1.25833 4.83333 1.08333 4.83333Z' fill='%23C4CADA'/%3e%3c/svg%3e");
|
|
90
106
|
}
|
|
91
107
|
|
|
92
|
-
.grid-desc
|
|
108
|
+
.grid-desc>.grid-sort-icon:after {
|
|
93
109
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M4 4.24984C3.825 4.24984 3.70833 4.1915 3.59167 4.07484L0.675 1.15817C0.441667 0.924838 0.441667 0.574837 0.675 0.341504C0.908333 0.108171 1.25833 0.108171 1.49167 0.341504L4 2.84984L6.50833 0.341504C6.74167 0.108171 7.09167 0.108171 7.325 0.341504C7.55833 0.574837 7.55833 0.924838 7.325 1.15817L4.40833 4.07484C4.29167 4.1915 4.175 4.24984 4 4.24984Z' fill='%234B5675'/%3e%3c/svg%3e");
|
|
94
110
|
}
|
|
95
111
|
|
|
@@ -105,9 +121,9 @@
|
|
|
105
121
|
display: table;
|
|
106
122
|
width: 100%;
|
|
107
123
|
background: #fff;
|
|
108
|
-
box-shadow: 0 5px 5px -3px rgba(0,0,0
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2),
|
|
125
|
+
0 8px 10px 1px rgba(0, 0, 0, .14),
|
|
126
|
+
0 3px 14px 2px rgba(0, 0, 0, .12);
|
|
111
127
|
}
|
|
112
128
|
|
|
113
129
|
.cdk-drag-placeholder {
|
|
@@ -117,7 +133,5 @@
|
|
|
117
133
|
|
|
118
134
|
.cdk-drag-animating,
|
|
119
135
|
.cdk-drop-list-dragging .cdk-drag {
|
|
120
|
-
transition: transform 250ms cubic-bezier(0,0
|
|
136
|
+
transition: transform 250ms cubic-bezier(0, 0, .2, 1);
|
|
121
137
|
}
|
|
122
|
-
|
|
123
|
-
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.hierarchical-dropdown-panel {
|
|
46
|
-
@apply absolute left-0 top-[calc(100%+4px)] w-full min-w-[250px] max-w-
|
|
46
|
+
@apply absolute left-0 top-[calc(100%+4px)] w-full min-w-[250px] max-w-full bg-white border border-[#E3E3E7] rounded-xl shadow-lg z-[99] overflow-hidden cursor-default p-2.5;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.hierarchical-dropdown-panel-fixed {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.hierarchical-search-wrapper {
|
|
58
|
-
@apply flex items-center border border-[#E3E3E7] rounded-md px-3 py-[7px] bg-white transition-colors focus-within:border-[#
|
|
58
|
+
@apply flex items-center border border-[#E3E3E7] rounded-md px-3 py-[7px] bg-white transition-colors focus-within:border-[#E3E3E7];
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.hierarchical-search-input {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.hierarchical-back {
|
|
66
|
-
@apply w-full text-left px-2.5 py-2 text-sm text-[#141414]
|
|
66
|
+
@apply w-full text-left px-2.5 py-2 text-sm text-[#141414] bg-[#F8F8F8] rounded-md transition-colors mt-1 flex items-center gap-1.5;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.hierarchical-options-list {
|
package/src/lib/radio/radio.css
CHANGED
|
@@ -1,39 +1,50 @@
|
|
|
1
1
|
/*---- Checkbox Sizes Class ---- */
|
|
2
2
|
.radio.xsm {
|
|
3
|
-
@apply size-[14px];
|
|
3
|
+
@apply size-[14px] min-h-[14px] min-w-[14px];
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
.radio.sm {
|
|
6
|
-
@apply size-[16px];
|
|
7
|
+
@apply size-[16px] min-h-[16px] min-w-[16px];
|
|
7
8
|
}
|
|
9
|
+
|
|
8
10
|
.radio.md {
|
|
9
|
-
@apply size-[18px];
|
|
11
|
+
@apply size-[18px] min-h-[18px] min-w-[18px];
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.radio.lg {
|
|
12
|
-
@apply size-[19px];
|
|
15
|
+
@apply size-[19px] min-h-[19px] min-w-[19px];
|
|
13
16
|
}
|
|
17
|
+
|
|
14
18
|
/*---- Dot Sizes Class ---- */
|
|
15
19
|
.radio.xsm .dot {
|
|
16
|
-
@apply size-[6px];
|
|
20
|
+
@apply size-[6px] min-h-[6px] min-w-[6px];
|
|
17
21
|
}
|
|
22
|
+
|
|
18
23
|
.radio.sm .dot {
|
|
19
|
-
@apply size-[8px];
|
|
24
|
+
@apply size-[8px] min-h-[8px] min-w-[8px];
|
|
20
25
|
}
|
|
26
|
+
|
|
21
27
|
.radio.md .dot {
|
|
22
|
-
@apply size-[10px];
|
|
28
|
+
@apply size-[10px] min-h-[10px] min-w-[10px];
|
|
23
29
|
}
|
|
30
|
+
|
|
24
31
|
.radio.lg .dot {
|
|
25
|
-
@apply size-[11px];
|
|
32
|
+
@apply size-[11px] min-h-[11px] min-w-[11px];
|
|
26
33
|
}
|
|
34
|
+
|
|
27
35
|
/*---- Tick Sizes Class ---- */
|
|
28
36
|
.radio.xsm .tick {
|
|
29
|
-
@apply size-[9px];
|
|
37
|
+
@apply size-[9px] min-h-[9px] min-w-[9px];
|
|
30
38
|
}
|
|
39
|
+
|
|
31
40
|
.radio.sm .tick {
|
|
32
|
-
@apply size-[10px];
|
|
41
|
+
@apply size-[10px] min-h-[10px] min-w-[10px];
|
|
33
42
|
}
|
|
43
|
+
|
|
34
44
|
.radio.md .tick {
|
|
35
|
-
@apply size-[12px];
|
|
45
|
+
@apply size-[12px] min-h-[12px] min-w-[12px];
|
|
36
46
|
}
|
|
47
|
+
|
|
37
48
|
.radio.lg .tick {
|
|
38
|
-
@apply size-[14px];
|
|
49
|
+
@apply size-[14px] min-h-[14px] min-w-[14px];
|
|
39
50
|
}
|
|
@@ -1,14 +1,33 @@
|
|
|
1
1
|
/* Container */
|
|
2
2
|
.bk-select-container {
|
|
3
|
-
@apply relative w-full box-border flex flex-col gap-1.5
|
|
3
|
+
@apply relative w-full box-border flex flex-col gap-1.5;
|
|
4
|
+
;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
/* Control */
|
|
7
8
|
.bk-select-control {
|
|
8
|
-
@apply flex items-center justify-between gap-2 w-full bg-white border border-[#E3E3E7] rounded transition-all duration-200
|
|
9
|
+
@apply flex items-center justify-between gap-2 w-full bg-white border border-[#E3E3E7] rounded transition-all duration-200 cursor-pointer;
|
|
9
10
|
|
|
10
|
-
&.bk-focused {
|
|
11
|
-
|
|
11
|
+
&.bk-focused {
|
|
12
|
+
@apply border-[#6B7080] shadow-none z-10;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.bk-disabled {
|
|
16
|
+
@apply cursor-not-allowed;
|
|
17
|
+
border-color: rgb(227 227 231);
|
|
18
|
+
background-color: rgb(244 244 246);
|
|
19
|
+
.bk-placeholder{
|
|
20
|
+
color: rgb(161 163 174);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.bk-select-container.default .bk-select-control{
|
|
26
|
+
@apply px-3 py-2.5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.bk-select-container.sm .bk-select-control{
|
|
30
|
+
@apply px-3 py-[5px];
|
|
12
31
|
}
|
|
13
32
|
|
|
14
33
|
.bk-select-control.bk-has-error {
|
|
@@ -28,8 +47,17 @@
|
|
|
28
47
|
|
|
29
48
|
/* --- NEW: Single Value --- */
|
|
30
49
|
.bk-value-label-single {
|
|
31
|
-
@apply font-normal
|
|
50
|
+
@apply font-normal text-[#141414] truncate w-full;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.bk-select-container.default .bk-select-control .bk-value-label-single{
|
|
54
|
+
@apply text-[14px] !leading-[18px];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.bk-select-container.sm .bk-select-control .bk-value-label-single{
|
|
58
|
+
@apply text-xs;
|
|
32
59
|
}
|
|
60
|
+
|
|
33
61
|
/* --- NEW: Multi Select Chips --- */
|
|
34
62
|
|
|
35
63
|
/* Badge Item */
|
|
@@ -43,40 +71,68 @@
|
|
|
43
71
|
|
|
44
72
|
/* Badge Close Button */
|
|
45
73
|
.bk-multi-badge-close {
|
|
46
|
-
@apply
|
|
74
|
+
@apply cursor-pointer outline-none w-3 h-3;
|
|
47
75
|
}
|
|
48
76
|
|
|
49
77
|
/* Actions */
|
|
50
78
|
.bk-actions {
|
|
51
79
|
@apply flex items-center gap-0.5 flex-shrink-0;
|
|
52
80
|
}
|
|
53
|
-
|
|
54
|
-
.bk-
|
|
81
|
+
|
|
82
|
+
.bk-clear-wrapper {
|
|
83
|
+
@apply text-gray-400 hover:text-red-500 cursor-pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.bk-arrow-wrapper {
|
|
87
|
+
@apply text-gray-400 transition-transform duration-200;
|
|
88
|
+
|
|
89
|
+
&.bk-open {
|
|
90
|
+
@apply rotate-180;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
55
93
|
|
|
56
94
|
/* Dropdown */
|
|
57
95
|
.bk-dropdown-panel {
|
|
58
96
|
@apply absolute left-0 w-full bg-white border border-[#E3E3E7] rounded-xl shadow-lg z-[99] overflow-hidden cursor-default p-2.5;
|
|
59
97
|
}
|
|
60
98
|
|
|
61
|
-
.bk-dropdown-search {
|
|
62
|
-
|
|
63
|
-
|
|
99
|
+
.bk-dropdown-search {
|
|
100
|
+
@apply px-2 pt-2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bk-search-wrapper {
|
|
104
|
+
@apply flex items-center border border-[#E3E3E7] rounded-md px-3 py-[7px] bg-white transition-colors focus-within:border-[#E3E3E7];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.bk-search-input {
|
|
108
|
+
@apply w-full outline-none font-normal text-sm text-[#141414] placeholder-[#A1A3AE] bg-transparent;
|
|
109
|
+
}
|
|
64
110
|
|
|
65
|
-
.bk-options-list {
|
|
111
|
+
.bk-options-list {
|
|
112
|
+
@apply max-h-60 overflow-auto relative flex flex-col gap-0.5;
|
|
113
|
+
}
|
|
66
114
|
|
|
67
115
|
/* Options */
|
|
68
116
|
.bk-option {
|
|
69
117
|
@apply flex items-center p-2.5 cursor-pointer transition-colors font-normal text-sm text-[#141414];
|
|
70
|
-
|
|
71
|
-
|
|
118
|
+
|
|
119
|
+
&:hover,
|
|
120
|
+
&.bk-marked {
|
|
121
|
+
@apply bg-[#F8F8F8] rounded-md;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.bk-selected {
|
|
125
|
+
@apply bg-[#F8F8F8] rounded-md;
|
|
126
|
+
}
|
|
72
127
|
}
|
|
128
|
+
|
|
73
129
|
.bk-grouped .bk-option {
|
|
74
130
|
@apply ps-5;
|
|
75
131
|
}
|
|
76
132
|
|
|
77
|
-
.bk-option-disabled {
|
|
78
|
-
|
|
79
|
-
|
|
133
|
+
.bk-option-disabled {
|
|
134
|
+
@apply px-3 py-2 text-gray-400 cursor-default text-sm;
|
|
135
|
+
}
|
|
80
136
|
|
|
81
137
|
/* ... Previous styles ... */
|
|
82
138
|
|
package/src/lib/tabs/tabs.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* Tabs Container */
|
|
2
2
|
.tabs-container {
|
|
3
|
-
@apply w-full
|
|
3
|
+
@apply w-full;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
/* Tabs List */
|
|
7
7
|
.tabs-list {
|
|
8
|
-
@apply flex gap-
|
|
8
|
+
@apply flex gap-0 list-none m-0 p-0;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/* Tab Item */
|
|
@@ -19,11 +19,6 @@
|
|
|
19
19
|
@apply text-sm leading-[11px] font-medium text-[#141414] tracking-[-0.28];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/* Tab Button - No Icon Variant (adjust padding when no icon) */
|
|
23
|
-
.tabs-button--no-icon {
|
|
24
|
-
@apply gap-0 px-3 py-[10.5px];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
/* Tab Button - Hover State */
|
|
28
23
|
/* .tabs-button:hover:not(:disabled):not(.tabs-button--active) {
|
|
29
24
|
@apply text-[#141414] bg-[#F9FAFA];
|
|
@@ -34,6 +29,11 @@
|
|
|
34
29
|
@apply bg-[#141414] text-white;
|
|
35
30
|
}
|
|
36
31
|
|
|
32
|
+
/* Tab Button - Error State */
|
|
33
|
+
.tabs-button--error {
|
|
34
|
+
@apply bg-[#C10007] text-white border-0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
37
|
/* Tab Button - Disabled State */
|
|
38
38
|
.tabs-button--disabled {
|
|
39
39
|
@apply opacity-50 cursor-not-allowed;
|
|
@@ -46,7 +46,15 @@
|
|
|
46
46
|
/* Tab Icon - Base Styles */
|
|
47
47
|
.tabs-icon {
|
|
48
48
|
@apply size-4 flex-shrink-0;
|
|
49
|
-
|
|
49
|
+
max-width: 1rem;
|
|
50
|
+
opacity: 1;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
transition: max-width 0.2s ease, opacity 0.2s ease;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tabs-icon--hidden {
|
|
56
|
+
max-width: 0;
|
|
57
|
+
opacity: 0;
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
/* Tab Label */
|
|
@@ -122,6 +122,37 @@
|
|
|
122
122
|
cursor: pointer;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
/* ─── Mobile Layout (<768px) ─────────────────────────────────────────────── */
|
|
126
|
+
@media (max-width: 425px) {
|
|
127
|
+
.toast-container {
|
|
128
|
+
width: calc(100vw - 2rem);
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.toast-container[data-position="top-center"],
|
|
133
|
+
.toast-container[data-position="bottom-center"] {
|
|
134
|
+
left: 50% !important;
|
|
135
|
+
right: auto !important;
|
|
136
|
+
transform: translateX(-50%) !important;
|
|
137
|
+
align-items: center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.toast-item {
|
|
141
|
+
display: grid;
|
|
142
|
+
grid-template-areas:
|
|
143
|
+
"icon action close"
|
|
144
|
+
"content content content";
|
|
145
|
+
grid-template-columns: auto 1fr auto;
|
|
146
|
+
align-items: center;
|
|
147
|
+
row-gap: 6px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.toast-icon { grid-area: icon; }
|
|
151
|
+
.toast-content { grid-area: content; }
|
|
152
|
+
.toast-action { grid-area: action; justify-self: end; }
|
|
153
|
+
.toast-close { grid-area: close; }
|
|
154
|
+
}
|
|
155
|
+
|
|
125
156
|
/* ─── Animations ──────────────────────────────────────────────────────────── */
|
|
126
157
|
.toast-enter {
|
|
127
158
|
animation: toastIn 0.3s ease-out forwards;
|
|
@@ -7,17 +7,24 @@
|
|
|
7
7
|
font-weight: 500;
|
|
8
8
|
font-size: 12px;
|
|
9
9
|
line-height: 18px;
|
|
10
|
-
position:
|
|
10
|
+
position: fixed; /* match directive */
|
|
11
11
|
font-family: 'Inter', sans-serif !important;
|
|
12
12
|
max-width: 300px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
width: max-content; /* ← key fix: shrink to content, respect max-width */
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
.bk-tooltip-content .text {
|
|
15
18
|
margin-bottom: 0;
|
|
16
|
-
word-break:
|
|
19
|
+
word-break: normal;
|
|
20
|
+
overflow-wrap: normal;
|
|
21
|
+
white-space: pre-wrap;
|
|
17
22
|
}
|
|
18
|
-
|
|
23
|
+
|
|
24
|
+
.bk-tooltip-content .text:last-child {
|
|
19
25
|
margin-bottom: 0;
|
|
20
26
|
}
|
|
27
|
+
|
|
21
28
|
.bk-divider {
|
|
22
29
|
display: block;
|
|
23
30
|
height: 1px;
|
|
@@ -32,4 +39,4 @@
|
|
|
32
39
|
border-style: solid;
|
|
33
40
|
border-width: 8px;
|
|
34
41
|
pointer-events: none;
|
|
35
|
-
}
|
|
42
|
+
}
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
.btn-primary {
|
|
9
9
|
@apply
|
|
10
|
-
font-medium flex justify-center gap-2 items-center bg-black text-white
|
|
10
|
+
font-medium flex justify-center gap-2 items-center bg-black text-white !border-black
|
|
11
11
|
|
|
12
12
|
/* FOCUS */
|
|
13
13
|
focus-visible:outline-2 focus-visible:outline-offset-[2.5px] focus-visible:outline-black
|
|
14
14
|
|
|
15
15
|
/* ACTIVE */
|
|
16
|
-
active:bg-[#242424]
|
|
16
|
+
active:bg-[#242424] active:!border-[#242424]
|
|
17
17
|
|
|
18
18
|
/* DISABLED */
|
|
19
|
-
disabled:opacity-90 disabled:cursor-not-allowed disabled:bg-[#242424];
|
|
19
|
+
disabled:opacity-90 disabled:cursor-not-allowed disabled:bg-[#242424] disabled:!border-[#242424];
|
|
20
20
|
}
|
|
21
21
|
.btn-primary.xxl {
|
|
22
22
|
@apply gap-3;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.btn-secondary {
|
|
26
26
|
@apply
|
|
27
27
|
font-medium flex justify-center gap-2 items-center
|
|
28
|
-
bg-white text-[#6B7080]
|
|
28
|
+
bg-white text-[#6B7080] border-[#D6D7DC]
|
|
29
29
|
|
|
30
30
|
/* FOCUS */
|
|
31
31
|
focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-[#F5F5FA]
|