@brickclay-org/ui 0.0.37 → 0.0.39
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 +41 -1
- package/fesm2022/brickclay-org-ui.mjs.map +1 -1
- package/index.d.ts +22 -2
- package/package.json +1 -1
- package/src/lib/tabs/tabs.css +56 -0
- package/src/styles.css +1 -0
package/index.d.ts
CHANGED
|
@@ -833,5 +833,25 @@ declare class BkChips implements ControlValueAccessor, AfterViewInit {
|
|
|
833
833
|
static ɵcmp: i0.ɵɵComponentDeclaration<BkChips, "bk-chips", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; }, { "input": "input"; "change": "change"; "focus": "focus"; "blur": "blur"; }, never, never, true, never>;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
interface TabItem {
|
|
837
|
+
id: string;
|
|
838
|
+
label: string;
|
|
839
|
+
icon?: string;
|
|
840
|
+
iconActive?: string;
|
|
841
|
+
iconAlt?: string;
|
|
842
|
+
disabled?: boolean;
|
|
843
|
+
}
|
|
844
|
+
declare class BkTabs {
|
|
845
|
+
list: TabItem[];
|
|
846
|
+
activeTabId: string;
|
|
847
|
+
disabled: boolean;
|
|
848
|
+
change: EventEmitter<TabItem>;
|
|
849
|
+
setActiveTab(tab: TabItem): void;
|
|
850
|
+
isActive(tabId: string): boolean;
|
|
851
|
+
getTabIcon(tab: TabItem): string | undefined;
|
|
852
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkTabs, never>;
|
|
853
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkTabs, "bk-tabs", never, { "list": { "alias": "list"; "required": false; }; "activeTabId": { "alias": "activeTabId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export { BkBadge, BkButton, BkButtonGroup, BkCheckbox, BkChips, BkCustomCalendar, BkGrid, BkIconButton, BkInput, BkPill, BkRadioButton, BkScheduledDatePicker, BkSelect, BkSpinner, BkTabs, BkTextarea, BkTimePicker, BkToggle, BrickclayIcons, BrickclayLib, CalendarManagerService, CalendarModule };
|
|
857
|
+
export type { BadgeColor, BadgeSize, BadgeVariant, BkInputAutoCapitalize, BkInputAutoComplete, BkInputMode, BkInputType, BkTextAreaAutoCapitalize, BkTextAreaAutoComplete, BkTextAreaInputMode, ButtonSize, ButtonVariant, CalendarRange, CalendarSelection, CountryOption, GroupItem, GroupMode, IconButtonSize, IconButtonVariant, IconOrientation, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TabItem, TableAction, TableColumn, TimeConfiguration };
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* Tabs Container */
|
|
2
|
+
.tabs-container {
|
|
3
|
+
@apply w-full;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Tabs List */
|
|
7
|
+
.tabs-list {
|
|
8
|
+
@apply flex gap-2 list-none m-0 p-0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Tab Item */
|
|
12
|
+
.tabs-item {
|
|
13
|
+
@apply flex-shrink-0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Tab Button - Base Styles */
|
|
17
|
+
.tabs-button {
|
|
18
|
+
@apply flex items-center gap-[6px] px-3 py-2 rounded-md border-0 bg-transparent cursor-pointer transition-all duration-200 outline-none;
|
|
19
|
+
@apply text-sm leading-[11px] font-medium text-[#141414] tracking-[-0.28];
|
|
20
|
+
}
|
|
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
|
+
/* Tab Button - Hover State */
|
|
28
|
+
/* .tabs-button:hover:not(:disabled):not(.tabs-button--active) {
|
|
29
|
+
@apply text-[#141414] bg-[#F9FAFA];
|
|
30
|
+
} */
|
|
31
|
+
|
|
32
|
+
/* Tab Button - Active State */
|
|
33
|
+
.tabs-button--active {
|
|
34
|
+
@apply bg-[#141414] text-white;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Tab Button - Disabled State */
|
|
38
|
+
.tabs-button--disabled {
|
|
39
|
+
@apply opacity-50 cursor-not-allowed;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* .tabs-button--disabled:hover {
|
|
43
|
+
@apply text-[#6B7080] bg-transparent;
|
|
44
|
+
} */
|
|
45
|
+
|
|
46
|
+
/* Tab Icon - Base Styles */
|
|
47
|
+
.tabs-icon {
|
|
48
|
+
@apply size-4 flex-shrink-0;
|
|
49
|
+
transition: opacity 0.2s ease;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Tab Label */
|
|
53
|
+
.tabs-label {
|
|
54
|
+
@apply whitespace-nowrap;
|
|
55
|
+
}
|
|
56
|
+
|
package/src/styles.css
CHANGED