@dloizides/ui-layout 1.32.0 → 1.33.0

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/dist/index.mjs CHANGED
@@ -153,6 +153,10 @@ var styles3 = StyleSheet.create({
153
153
  alignItems: "center",
154
154
  gap: ICON_GAP
155
155
  },
156
+ badgeDashed: {
157
+ borderWidth: 1,
158
+ borderStyle: "dashed"
159
+ },
156
160
  text: {
157
161
  fontSize: DEFAULT_FONT_SIZE,
158
162
  fontWeight: "600",
@@ -164,12 +168,14 @@ var StatusBadge = ({
164
168
  color,
165
169
  backgroundColor,
166
170
  icon,
171
+ dashed = false,
167
172
  testID = LAYOUT_TEST_IDS.statusLabel,
168
173
  accessibilityLabel,
169
174
  accessibilityHint
170
175
  }) => {
171
176
  const { t } = useUi();
172
177
  const dynamicBadge = useMemo(() => ({ backgroundColor }), [backgroundColor]);
178
+ const dashedColor = useMemo(() => ({ borderColor: color }), [color]);
173
179
  const dynamicText = useMemo(() => ({ color }), [color]);
174
180
  const hasIcon = icon !== void 0 && icon !== null;
175
181
  return /* @__PURE__ */ jsxs(
@@ -177,7 +183,7 @@ var StatusBadge = ({
177
183
  {
178
184
  accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.statusBadgeHint),
179
185
  accessibilityLabel: accessibilityLabel ?? label,
180
- style: [styles3.badge, hasIcon && styles3.badgeWithIcon, dynamicBadge],
186
+ style: [styles3.badge, hasIcon && styles3.badgeWithIcon, dynamicBadge, dashed && styles3.badgeDashed, dashed && dashedColor],
181
187
  testID,
182
188
  children: [
183
189
  hasIcon ? /* @__PURE__ */ jsx(View, { "aria-hidden": true, children: icon }) : null,