@brickclay-org/ui 0.1.39 → 0.1.40

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.d.ts CHANGED
@@ -859,7 +859,7 @@ declare class BkSelect implements ControlValueAccessor {
859
859
  disabled: i0.ModelSignal<boolean>;
860
860
  loading: i0.InputSignal<boolean>;
861
861
  closeOnSelect: i0.InputSignal<boolean>;
862
- dropdownPosition: i0.InputSignal<"top" | "bottom">;
862
+ dropdownPosition: i0.InputSignal<"bottom" | "top">;
863
863
  hasError: boolean;
864
864
  errorMessage: string;
865
865
  appendToBody: i0.InputSignal<boolean>;
@@ -1909,7 +1909,7 @@ declare class BkHierarchicalSelect implements ControlValueAccessor {
1909
1909
  /** When true, dropdown is positioned fixed and sized to the trigger (use inside modals/popups). */
1910
1910
  appendToBody: i0.InputSignal<boolean>;
1911
1911
  /** Open above or below the trigger (also used when appendToBody is true for fixed coordinates). */
1912
- dropdownPosition: i0.InputSignal<"top" | "bottom">;
1912
+ dropdownPosition: i0.InputSignal<"bottom" | "top">;
1913
1913
  /** Key for option color (e.g. "color"). When set, option label and selected value use this color. */
1914
1914
  colorKey: i0.InputSignal<string>;
1915
1915
  /** Whether to show clear button when a value is selected. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickclay-org/ui",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "ng-add": {
6
6
  "save": "dependencies"
@@ -1,3 +1,27 @@
1
1
  .column-select-option-empty {
2
2
  @apply px-3 py-2 text-gray-400 cursor-default text-sm;
3
3
  }
4
+
5
+ .column-select-options-list {
6
+ display: flex;
7
+ flex-direction: column;
8
+ overflow-y: auto;
9
+ }
10
+
11
+ @media (max-height: 700px) {
12
+ .column-select-options-list {
13
+ max-height: 160px;
14
+ }
15
+ }
16
+
17
+ @media (min-height: 701px) and (max-height: 900px) {
18
+ .column-select-options-list {
19
+ max-height: 200px;
20
+ }
21
+ }
22
+
23
+ @media (min-height: 901px) {
24
+ .column-select-options-list {
25
+ max-height: 240px;
26
+ }
27
+ }
@@ -83,7 +83,25 @@
83
83
  }
84
84
 
85
85
  .hierarchical-options-list {
86
- @apply max-h-60 overflow-auto relative flex flex-col gap-0.5 mt-1;
86
+ @apply overflow-auto relative flex flex-col gap-0.5 mt-1;
87
+ }
88
+
89
+ @media (max-height: 700px) {
90
+ .hierarchical-options-list {
91
+ max-height: 124px;
92
+ }
93
+ }
94
+
95
+ @media (min-height: 701px) and (max-height: 900px) {
96
+ .hierarchical-options-list {
97
+ max-height: 164px;
98
+ }
99
+ }
100
+
101
+ @media (min-height: 901px) {
102
+ .hierarchical-options-list {
103
+ max-height: 204px;
104
+ }
87
105
  }
88
106
 
89
107
  .hierarchical-option {
@@ -139,6 +157,14 @@
139
157
  background: #909090;
140
158
  }
141
159
 
160
+ .hierarchical-breadcrumb-node {
161
+ flex: 0 1 auto;
162
+ min-width: 0;
163
+ overflow: hidden;
164
+ text-overflow: ellipsis;
165
+ white-space: nowrap;
166
+ }
167
+
142
168
  .breadcrumb-separator {
143
169
  margin: 0 6px;
144
170
  flex-shrink: 0;
@@ -7,10 +7,10 @@
7
7
  /* Control */
8
8
  .bk-select-control {
9
9
  @apply flex items-center justify-between gap-2 w-full bg-white border border-[#E3E3E7] rounded transition-all duration-200 cursor-pointer focus:border-transparent
10
- focus-visible:!outline-[0.5px] focus-visible:!outline-[#6B7080]
10
+ focus-visible:!outline-[0.5px] focus-visible:!outline-[#6B7080]
11
11
  ;
12
12
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
13
-
13
+
14
14
  &:focus-visible{
15
15
  outline-style: solid !important
16
16
  }
@@ -125,29 +125,24 @@
125
125
  @apply overflow-y-auto overflow-x-hidden relative flex flex-col gap-0.5;
126
126
  }
127
127
 
128
- /* Medium screens (tablets) */
129
- /* Small screens */
130
128
  @media (max-height: 700px) {
131
129
  .bk-options-list {
132
- max-height: 175px;
130
+ max-height: 160px;
133
131
  }
134
132
  }
135
133
 
136
- /* Medium screens */
137
134
  @media (min-height: 701px) and (max-height: 900px) {
138
135
  .bk-options-list {
139
- max-height: 210px;
136
+ max-height: 200px;
140
137
  }
141
138
  }
142
139
 
143
- /* Extra large screens */
144
140
  @media (min-height: 901px) {
145
141
  .bk-options-list {
146
- max-height: 240px; /* adjust as needed */
142
+ max-height: 240px;
147
143
  }
148
144
  }
149
145
 
150
-
151
146
  /* Options */
152
147
  .bk-option {
153
148
  @apply flex items-center p-2.5 cursor-pointer transition-colors font-normal text-sm text-[#141414] min-w-0;