bitboss-ui 2.1.116 → 2.1.117

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.
Files changed (181) hide show
  1. package/dist/ai/BbBadge.md +107 -48
  2. package/dist/components/BbBadge/types.d.ts +4 -0
  3. package/dist/index.css +1 -1
  4. package/dist/index109.js +9 -9
  5. package/dist/index110.js +17 -17
  6. package/dist/index118.js +1 -1
  7. package/dist/index124.js +3 -3
  8. package/dist/index126.js +12 -12
  9. package/dist/index134.js +1 -1
  10. package/dist/index136.js +4 -4
  11. package/dist/index14.js +1 -1
  12. package/dist/index140.js +2 -2
  13. package/dist/index16.js +3 -3
  14. package/dist/index18.js +3 -3
  15. package/dist/index20.js +9 -9
  16. package/dist/index22.js +14 -14
  17. package/dist/index224.js +1 -1
  18. package/dist/index225.js +1 -1
  19. package/dist/index226.js +34 -4
  20. package/dist/index227.js +7 -13
  21. package/dist/index228.js +2 -20
  22. package/dist/index229.js +5 -2
  23. package/dist/index230.js +5 -2
  24. package/dist/index231.js +5 -3
  25. package/dist/index232.js +5 -86
  26. package/dist/index233.js +5 -0
  27. package/dist/index234.js +2 -30
  28. package/dist/index235.js +6 -17
  29. package/dist/index236.js +8 -51
  30. package/dist/index237.js +268 -18
  31. package/dist/index238.js +52 -3
  32. package/dist/index239.js +52 -12
  33. package/dist/index24.js +9 -9
  34. package/dist/index240.js +32 -18
  35. package/dist/index241.js +58 -6
  36. package/dist/index242.js +12 -33
  37. package/dist/index243.js +5 -10
  38. package/dist/index244.js +5 -3
  39. package/dist/index245.js +5 -4
  40. package/dist/index246.js +3 -13
  41. package/dist/index247.js +6 -6
  42. package/dist/index249.js +8 -22
  43. package/dist/index250.js +2 -5
  44. package/dist/index251.js +4 -5
  45. package/dist/index252.js +2 -5
  46. package/dist/index253.js +2 -5
  47. package/dist/index254.js +13 -5
  48. package/dist/index255.js +13 -5
  49. package/dist/index256.js +18 -3
  50. package/dist/index257.js +12 -25
  51. package/dist/index258.js +51 -3
  52. package/dist/index259.js +17 -12
  53. package/dist/index26.js +3 -3
  54. package/dist/index260.js +12 -5
  55. package/dist/index261.js +17 -2
  56. package/dist/index262.js +30 -6
  57. package/dist/index263.js +18 -268
  58. package/dist/index264.js +100 -46
  59. package/dist/index266.js +96 -28
  60. package/dist/index268.js +107 -9
  61. package/dist/index269.js +11 -2
  62. package/dist/index270.js +86 -2
  63. package/dist/index272.js +3 -9
  64. package/dist/index273.js +4 -53
  65. package/dist/index274.js +20 -11
  66. package/dist/index275.js +31 -17
  67. package/dist/index277.js +26 -30
  68. package/dist/index279.js +7 -105
  69. package/dist/index28.js +1 -1
  70. package/dist/index280.js +21 -6
  71. package/dist/index281.js +3 -21
  72. package/dist/index282.js +52 -6
  73. package/dist/index283.js +4 -9
  74. package/dist/index284.js +23 -23
  75. package/dist/index285.js +6 -106
  76. package/dist/index286.js +18 -0
  77. package/dist/index287.js +10 -100
  78. package/dist/index288.js +5 -0
  79. package/dist/index289.js +373 -2
  80. package/dist/index291.js +3 -7
  81. package/dist/index293.js +9 -3
  82. package/dist/index294.js +23 -28
  83. package/dist/index295.js +8 -0
  84. package/dist/index296.js +25 -67
  85. package/dist/index297.js +59 -365
  86. package/dist/index298.js +190 -0
  87. package/dist/index299.js +3 -6
  88. package/dist/index30.js +2 -2
  89. package/dist/index300.js +2 -16
  90. package/dist/index301.js +6 -187
  91. package/dist/index302.js +7 -3
  92. package/dist/index303.js +1 -1
  93. package/dist/index304.js +7 -3
  94. package/dist/index305.js +3 -6
  95. package/dist/index306.js +280 -3
  96. package/dist/index307.js +2 -17
  97. package/dist/index308.js +15 -27
  98. package/dist/index309.js +2 -5
  99. package/dist/index310.js +13 -277
  100. package/dist/index311.js +2 -2
  101. package/dist/index312.js +23 -12
  102. package/dist/index314.js +2 -16
  103. package/dist/index315.js +2 -2
  104. package/dist/index316.js +2 -27
  105. package/dist/index317.js +2 -2
  106. package/dist/index318.js +28 -2
  107. package/dist/index319.js +1 -1
  108. package/dist/index32.js +2 -2
  109. package/dist/index320.js +3 -2
  110. package/dist/index321.js +3 -2
  111. package/dist/index322.js +3 -2
  112. package/dist/index323.js +3 -125
  113. package/dist/index324.js +3 -2
  114. package/dist/index325.js +2 -15
  115. package/dist/index326.js +17 -2
  116. package/dist/index327.js +122 -16
  117. package/dist/index328.js +2 -2
  118. package/dist/index329.js +15 -3
  119. package/dist/index330.js +2 -2
  120. package/dist/index331.js +19 -4
  121. package/dist/index332.js +2 -4
  122. package/dist/index333.js +1 -1
  123. package/dist/index334.js +5 -3
  124. package/dist/index335.js +4 -5
  125. package/dist/index337.js +1 -1
  126. package/dist/index338.js +5 -2
  127. package/dist/index339.js +719 -3
  128. package/dist/index34.js +8 -8
  129. package/dist/index340.js +366 -7
  130. package/dist/index341.js +55 -17
  131. package/dist/index342.js +2 -9
  132. package/dist/index343.js +34 -14
  133. package/dist/index344.js +129 -5
  134. package/dist/index345.js +397 -6
  135. package/dist/index346.js +198 -65
  136. package/dist/index347.js +257 -65
  137. package/dist/index348.js +6 -227
  138. package/dist/index349.js +5 -35
  139. package/dist/index350.js +6 -128
  140. package/dist/index351.js +16 -395
  141. package/dist/index352.js +9 -719
  142. package/dist/index353.js +15 -366
  143. package/dist/index354.js +66 -56
  144. package/dist/index355.js +65 -198
  145. package/dist/index356.js +18 -255
  146. package/dist/index358.js +9 -0
  147. package/dist/index359.js +228 -7
  148. package/dist/index36.js +4 -4
  149. package/dist/index360.js +2 -134
  150. package/dist/index361.js +2 -93
  151. package/dist/index362.js +134 -2
  152. package/dist/index363.js +93 -2
  153. package/dist/index367.js +1 -1
  154. package/dist/index38.js +20 -20
  155. package/dist/index40.js +6 -6
  156. package/dist/index42.js +2 -2
  157. package/dist/index44.js +8 -8
  158. package/dist/index46.js +6 -6
  159. package/dist/index50.js +2 -2
  160. package/dist/index54.js +1 -1
  161. package/dist/index56.js +1 -1
  162. package/dist/index58.js +25 -20
  163. package/dist/index60.js +2 -2
  164. package/dist/index62.js +5 -5
  165. package/dist/index68.js +1 -1
  166. package/dist/index74.js +3 -3
  167. package/dist/index82.js +5 -5
  168. package/dist/index84.js +1 -1
  169. package/dist/index86.js +2 -2
  170. package/dist/index88.js +3 -3
  171. package/dist/index90.js +1 -1
  172. package/dist/index93.js +3 -3
  173. package/dist/index95.js +2 -2
  174. package/dist/index97.js +4 -4
  175. package/package.json +2 -2
  176. package/dist/index265.js +0 -54
  177. package/dist/index267.js +0 -62
  178. package/dist/index271.js +0 -6
  179. package/dist/index276.js +0 -14
  180. package/dist/index290.js +0 -9
  181. package/dist/index357.js +0 -24
@@ -8,7 +8,7 @@
8
8
  <span class="bb-badge__wrapper">
9
9
  <slot></slot>
10
10
  <span class="bb-badge__content-container" v-bind="contentAttributes">
11
- <span class="bb-badge__content-inner"
11
+ <span v-if="!props.dot" class="bb-badge__content-inner"
12
12
  ><slot name="content">{{ content }}</slot></span
13
13
  >
14
14
  </span>
@@ -36,7 +36,8 @@ const classes = computed(() => {
36
36
  'bb-badge--left': props.left,
37
37
  'bb-badge--positioned': slots.default,
38
38
  'bb-badge--floating': props.floating,
39
- 'bb-badge--empty': isNil(props.content),
39
+ 'bb-badge--dot': props.dot,
40
+ 'bb-badge--empty': !props.dot && isNil(props.content),
40
41
  [`bb-badge--${props.color}`]: props.color && !isCssColor(props.color),
41
42
  };
42
43
  });
@@ -78,6 +79,10 @@ export type BbBadgeProps = Pick<CommonProps, 'color'> & {
78
79
  * Text content of the badge.
79
80
  */
80
81
  content?: string | number | null;
82
+ /**
83
+ * Renders a small dot with no content instead of the full badge.
84
+ */
85
+ dot?: boolean;
81
86
  /**
82
87
  * Renders the badge a little further from the wrapped component,
83
88
  * making it look like it's floating and not stacked.
@@ -105,77 +110,131 @@ export type BbBadgeSlots = {
105
110
 
106
111
  ```css
107
112
  .bb-badge {
108
- --color: var(--bb-primary);
109
- --radius: 999px;
113
+ /* ── Configurable tokens ─────────────────────────────────── */
114
+ --bb-badge-bg: var(--bb-primary);
115
+ --bb-badge-color: var(--bb-contrasting);
116
+ --bb-badge-radius: 999px;
117
+ --bb-badge-font-size: 0.75rem;
118
+ --bb-badge-min-size: 1.375rem;
119
+ --bb-badge-dot-size: 0.625rem;
120
+ --bb-badge-border-width: 0px;
121
+ --bb-badge-border-color: transparent;
122
+ --bb-badge-offset: 0.625rem;
123
+ --bb-badge-float-offset: 1.25rem;
124
+ --bb-badge-dot-offset: 0.125rem;
125
+ --bb-badge-dot-float-offset: 0.5rem;
126
+
110
127
  display: inline-flex;
111
128
 
129
+ /* ── Positioned mode ─────────────────────────────────────── */
112
130
  &--positioned {
113
131
  position: relative;
114
132
 
115
- &.bb-badge--left {
116
- .bb-badge__content-container {
117
- left: calc(0% - 10px);
118
- }
133
+ .bb-badge__content-container {
134
+ position: absolute;
135
+ top: calc(0% - var(--bb-badge-offset));
136
+ right: calc(0% - var(--bb-badge-offset));
137
+ bottom: auto;
138
+ left: auto;
119
139
  }
120
140
 
121
- &.bb-badge--bottom {
122
- .bb-badge__content-container {
123
- bottom: calc(0% - 10px);
124
- }
141
+ &.bb-badge--left .bb-badge__content-container {
142
+ right: auto;
143
+ left: calc(0% - var(--bb-badge-offset));
125
144
  }
126
145
 
127
- &.bb-badge--empty {
128
- .bb-badge__content-container {
129
- transform: scale(0);
130
- }
146
+ &.bb-badge--bottom .bb-badge__content-container {
147
+ top: auto;
148
+ bottom: calc(0% - var(--bb-badge-offset));
149
+ }
150
+
151
+ &.bb-badge--empty .bb-badge__content-container {
152
+ transform: scale(0);
153
+ }
154
+
155
+ /* Dot: smaller so it needs a tighter offset */
156
+ &.bb-badge--dot .bb-badge__content-container {
157
+ top: calc(0% - var(--bb-badge-dot-offset));
158
+ right: calc(0% - var(--bb-badge-dot-offset));
159
+ }
160
+
161
+ &.bb-badge--dot.bb-badge--left .bb-badge__content-container {
162
+ right: auto;
163
+ left: calc(0% - var(--bb-badge-dot-offset));
131
164
  }
132
165
 
133
- &.bb-badge--floating {
166
+ &.bb-badge--dot.bb-badge--bottom .bb-badge__content-container {
167
+ top: auto;
168
+ bottom: calc(0% - var(--bb-badge-dot-offset));
169
+ }
170
+
171
+ /* Floating */
172
+ &.bb-badge--floating .bb-badge__content-container {
173
+ top: calc(0% - var(--bb-badge-float-offset));
174
+ right: calc(0% - var(--bb-badge-float-offset));
175
+ bottom: auto;
176
+ left: auto;
177
+ }
178
+
179
+ &.bb-badge--floating.bb-badge--left .bb-badge__content-container {
180
+ right: auto;
181
+ left: calc(0% - var(--bb-badge-float-offset));
182
+ }
183
+
184
+ &.bb-badge--floating.bb-badge--bottom .bb-badge__content-container {
185
+ top: auto;
186
+ bottom: calc(0% - var(--bb-badge-float-offset));
187
+ }
188
+
189
+ /* Floating dot */
190
+ &.bb-badge--floating.bb-badge--dot .bb-badge__content-container {
191
+ top: calc(0% - var(--bb-badge-dot-float-offset));
192
+ right: calc(0% - var(--bb-badge-dot-float-offset));
193
+ bottom: auto;
194
+ left: auto;
195
+ }
196
+
197
+ &.bb-badge--floating.bb-badge--dot.bb-badge--left
134
198
  .bb-badge__content-container {
135
- bottom: calc(100% - 4px);
136
- left: calc(100% - 4px);
137
-
138
- &.bb-badge--left {
139
- left: calc(0% + 4px);
140
- transform: translateX(-100%);
141
- }
142
-
143
- &.bb-badge--bottom {
144
- bottom: calc(0% + 4px);
145
- transform: translateY(100%);
146
- }
147
- }
199
+ right: auto;
200
+ left: calc(0% - var(--bb-badge-dot-float-offset));
148
201
  }
149
202
 
150
- .bb-badge__content-container {
151
- bottom: calc(100% - 10px);
152
- left: calc(100% - 10px);
153
- min-height: 18px;
154
- min-width: 18px;
155
- position: absolute;
203
+ &.bb-badge--floating.bb-badge--dot.bb-badge--bottom
204
+ .bb-badge__content-container {
205
+ top: auto;
206
+ bottom: calc(0% - var(--bb-badge-dot-float-offset));
156
207
  }
157
208
  }
158
209
 
210
+ /* ── Badge bubble ────────────────────────────────────────── */
159
211
  &__content-container {
160
212
  align-items: center;
161
- background-color: var(--color);
162
- border-radius: var(--radius);
163
- color: var(--bb-contrasting);
213
+ background-color: var(--bb-badge-bg);
214
+ border: var(--bb-badge-border-width) solid var(--bb-badge-border-color);
215
+ border-radius: var(--bb-badge-radius);
216
+ color: var(--bb-badge-color);
164
217
  display: inline-flex;
165
- font-size: 12px;
218
+ font-size: var(--bb-badge-font-size);
219
+ font-weight: 600;
166
220
  justify-content: center;
167
- line-height: 0;
168
- min-height: 22px;
169
- padding-bottom: 3px;
170
- padding-left: 6px;
171
- padding-right: 6px;
172
- padding-top: 3px;
221
+ line-height: 1;
222
+ min-height: var(--bb-badge-min-size);
223
+ min-width: var(--bb-badge-min-size);
224
+ padding-block: 0.1875rem;
225
+ padding-inline: 0.375rem;
173
226
  transition:
174
227
  color 0.2s,
175
- background-color 0.2s;
228
+ background-color 0.2s,
229
+ transform 0.15s;
230
+ white-space: nowrap;
176
231
  }
177
232
 
178
- &__content-inner {
233
+ /* ── Dot mode ────────────────────────────────────────────── */
234
+ &--dot .bb-badge__content-container {
235
+ min-height: var(--bb-badge-dot-size);
236
+ min-width: var(--bb-badge-dot-size);
237
+ padding: 0;
179
238
  }
180
239
 
181
240
  &__wrapper {
@@ -8,6 +8,10 @@ export type BbBadgeProps = Pick<CommonProps, 'color'> & {
8
8
  * Text content of the badge.
9
9
  */
10
10
  content?: string | number | null;
11
+ /**
12
+ * Renders a small dot with no content instead of the full badge.
13
+ */
14
+ dot?: boolean;
11
15
  /**
12
16
  * Renders the badge a little further from the wrapped component,
13
17
  * making it look like it's floating and not stacked.