@flipdish/ui-library 0.35.1 → 0.36.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.
Files changed (35) hide show
  1. package/dist/components/atoms/Badge/Badge.styles.cjs +194 -0
  2. package/dist/components/atoms/Badge/Badge.styles.cjs.map +1 -0
  3. package/dist/components/atoms/Badge/Badge.styles.d.ts +236 -0
  4. package/dist/components/atoms/Badge/Badge.styles.d.ts.map +1 -0
  5. package/dist/components/atoms/Badge/Badge.styles.js +192 -0
  6. package/dist/components/atoms/Badge/Badge.styles.js.map +1 -0
  7. package/dist/components/atoms/Badge/badge.types.cjs.map +1 -1
  8. package/dist/components/atoms/Badge/badge.types.d.ts +0 -2
  9. package/dist/components/atoms/Badge/badge.types.d.ts.map +1 -1
  10. package/dist/components/atoms/Badge/badge.types.js.map +1 -1
  11. package/dist/components/atoms/Badge/badge.utils.d.ts +21 -0
  12. package/dist/components/atoms/Badge/badge.utils.d.ts.map +1 -0
  13. package/dist/components/atoms/Badge/index.cjs +15 -248
  14. package/dist/components/atoms/Badge/index.cjs.map +1 -1
  15. package/dist/components/atoms/Badge/index.d.ts +11 -50
  16. package/dist/components/atoms/Badge/index.d.ts.map +1 -1
  17. package/dist/components/atoms/Badge/index.js +15 -248
  18. package/dist/components/atoms/Badge/index.js.map +1 -1
  19. package/dist/native/components/atoms/Badge/Badge.styles.d.ts +236 -0
  20. package/dist/native/components/atoms/Badge/Badge.styles.d.ts.map +1 -0
  21. package/dist/native/components/atoms/Badge/Badge.styles.js +327 -0
  22. package/dist/native/components/atoms/Badge/Badge.styles.js.map +1 -0
  23. package/dist/native/components/atoms/Badge/badge.types.d.ts +21 -0
  24. package/dist/native/components/atoms/Badge/badge.types.d.ts.map +1 -0
  25. package/dist/native/components/atoms/Badge/badge.types.js +8 -0
  26. package/dist/native/components/atoms/Badge/badge.types.js.map +1 -0
  27. package/dist/native/components/atoms/Badge/badge.utils.d.ts +21 -0
  28. package/dist/native/components/atoms/Badge/badge.utils.d.ts.map +1 -0
  29. package/dist/native/components/atoms/Badge/badge.utils.js +32 -0
  30. package/dist/native/components/atoms/Badge/badge.utils.js.map +1 -0
  31. package/dist/native/components/atoms/Badge/index.d.ts +94 -8
  32. package/dist/native/components/atoms/Badge/index.d.ts.map +1 -0
  33. package/dist/native/components/atoms/Badge/index.js +66 -0
  34. package/dist/native/components/atoms/Badge/index.js.map +1 -0
  35. package/package.json +2 -2
@@ -4,118 +4,8 @@ import { Dot } from '@flipdish/ui-library/components/atoms/Dot';
4
4
  import { Flag } from '@flipdish/ui-library/components/atoms/Flag';
5
5
  import { cx } from '@flipdish/ui-library/utilities/cx';
6
6
  import { useResolvedTestId, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
7
- import { badgeTypes } from './badge.types.js';
7
+ import { styles } from './Badge.styles.js';
8
8
 
9
- const filledColors = {
10
- gray: {
11
- root: 'bg-utility-neutral-50 text-utility-neutral-700 ring-utility-neutral-200',
12
- addon: 'text-utility-neutral-500',
13
- dotColor: 'utility-neutral-500',
14
- addonButton: 'hover:bg-utility-neutral-100 text-utility-neutral-400 hover:text-utility-neutral-500',
15
- },
16
- brand: {
17
- root: 'bg-utility-brand-50 text-utility-brand-700 ring-utility-brand-200',
18
- addon: 'text-utility-brand-500',
19
- dotColor: 'utility-brand-500',
20
- addonButton: 'hover:bg-utility-brand-100 text-utility-brand-400 hover:text-utility-brand-500',
21
- },
22
- error: {
23
- root: 'bg-utility-red-50 text-utility-red-700 ring-utility-red-200',
24
- addon: 'text-utility-red-500',
25
- dotColor: 'utility-red-500',
26
- addonButton: 'hover:bg-utility-red-100 text-utility-red-400 hover:text-utility-red-500',
27
- },
28
- warning: {
29
- root: 'bg-utility-yellow-50 text-utility-yellow-700 ring-utility-yellow-200',
30
- addon: 'text-utility-yellow-500',
31
- dotColor: 'utility-yellow-500',
32
- addonButton: 'hover:bg-utility-yellow-100 text-utility-yellow-400 hover:text-utility-yellow-500',
33
- },
34
- success: {
35
- root: 'bg-utility-green-50 text-utility-green-700 ring-utility-green-200',
36
- addon: 'text-utility-green-500',
37
- dotColor: 'utility-green-500',
38
- addonButton: 'hover:bg-utility-green-100 text-utility-green-400 hover:text-utility-green-500',
39
- },
40
- slate: {
41
- root: 'bg-utility-slate-50 text-utility-slate-700 ring-utility-slate-200',
42
- addon: 'text-utility-slate-500',
43
- dotColor: 'utility-slate-500',
44
- addonButton: 'hover:bg-utility-slate-100 text-utility-slate-400 hover:text-utility-slate-500',
45
- },
46
- sky: {
47
- root: 'bg-utility-sky-50 text-utility-sky-700 ring-utility-sky-200',
48
- addon: 'text-utility-sky-500',
49
- dotColor: 'utility-sky-500',
50
- addonButton: 'hover:bg-utility-sky-100 text-utility-sky-400 hover:text-utility-sky-500',
51
- },
52
- blue: {
53
- root: 'bg-utility-blue-50 text-utility-blue-700 ring-utility-blue-200',
54
- addon: 'text-utility-blue-500',
55
- dotColor: 'utility-blue-500',
56
- addonButton: 'hover:bg-utility-blue-100 text-utility-blue-400 hover:text-utility-blue-500',
57
- },
58
- indigo: {
59
- root: 'bg-utility-indigo-50 text-utility-indigo-700 ring-utility-indigo-200',
60
- addon: 'text-utility-indigo-500',
61
- dotColor: 'utility-indigo-500',
62
- addonButton: 'hover:bg-utility-indigo-100 text-utility-indigo-400 hover:text-utility-indigo-500',
63
- },
64
- purple: {
65
- root: 'bg-utility-purple-50 text-utility-purple-700 ring-utility-purple-200',
66
- addon: 'text-utility-purple-500',
67
- dotColor: 'utility-purple-500',
68
- addonButton: 'hover:bg-utility-purple-100 text-utility-purple-400 hover:text-utility-purple-500',
69
- },
70
- pink: {
71
- root: 'bg-utility-pink-50 text-utility-pink-700 ring-utility-pink-200',
72
- addon: 'text-utility-pink-500',
73
- dotColor: 'utility-pink-500',
74
- addonButton: 'hover:bg-utility-pink-100 text-utility-pink-400 hover:text-utility-pink-500',
75
- },
76
- orange: {
77
- root: 'bg-utility-orange-50 text-utility-orange-700 ring-utility-orange-200',
78
- addon: 'text-utility-orange-500',
79
- dotColor: 'utility-orange-500',
80
- addonButton: 'hover:bg-utility-orange-100 text-utility-orange-400 hover:text-utility-orange-500',
81
- },
82
- };
83
- const addonOnlyColors = Object.fromEntries(Object.entries(filledColors).map(([key, value]) => [key, { root: '', addon: value.addon, dotColor: value.dotColor }]));
84
- const withPillTypes = {
85
- [badgeTypes.pillColor]: {
86
- common: 'size-max flex items-center whitespace-nowrap rounded-full ring-1 ring-inset',
87
- styles: filledColors,
88
- },
89
- [badgeTypes.badgeColor]: {
90
- common: 'size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset',
91
- styles: filledColors,
92
- },
93
- [badgeTypes.badgeModern]: {
94
- common: 'size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset shadow-xs',
95
- styles: {
96
- gray: {
97
- root: 'bg-primary text-secondary ring-primary',
98
- addon: 'text-fg-quaternary',
99
- dotColor: 'fg-quaternary',
100
- addonButton: 'hover:bg-utility-neutral-100 text-utility-neutral-400 hover:text-utility-neutral-500',
101
- },
102
- },
103
- },
104
- };
105
- const withBadgeTypes = {
106
- [badgeTypes.pillColor]: {
107
- common: 'size-max flex items-center whitespace-nowrap rounded-full ring-1 ring-inset',
108
- styles: filledColors,
109
- },
110
- [badgeTypes.badgeColor]: {
111
- common: 'size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset',
112
- styles: filledColors,
113
- },
114
- [badgeTypes.badgeModern]: {
115
- common: 'size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset bg-primary text-secondary ring-primary shadow-xs',
116
- styles: addonOnlyColors,
117
- },
118
- };
119
9
  /**
120
10
  * Compact label for statuses, categories, counts, and tags. Conveys metadata at
121
11
  * a glance through color and shape without competing with primary content.
@@ -124,172 +14,49 @@ const withBadgeTypes = {
124
14
  */
125
15
  const Badge = (props) => {
126
16
  const { type = 'pill-color', size = 'md', color = 'gray', children, 'data-testid': dataTestId } = props;
127
- const colors = withPillTypes[type];
17
+ const colors = styles.types.standard[type];
128
18
  const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
129
- const pillSizes = {
130
- sm: 'py-0.5 px-2 text-xs font-medium',
131
- md: 'py-0.5 px-2.5 text-sm font-medium',
132
- lg: 'py-1 px-3 text-sm font-medium',
133
- };
134
- const badgeSizes = {
135
- sm: 'py-0.5 px-1.5 text-xs font-medium',
136
- md: 'py-0.5 px-2 text-sm font-medium',
137
- lg: 'py-1 px-2.5 text-sm font-medium rounded-lg',
138
- };
139
- const sizes = {
140
- [badgeTypes.pillColor]: pillSizes,
141
- [badgeTypes.badgeColor]: badgeSizes,
142
- [badgeTypes.badgeModern]: badgeSizes,
143
- };
144
- return (jsx("span", { "data-testid": badgeTestId, className: cx(colors.common, sizes[type][size], colors.styles[color].root, props.className), children: children }));
19
+ return (jsx("span", { "data-testid": badgeTestId, className: cx(colors.common, styles.sizes.label[type][size], colors.styles[color].root, props.className), children: children }));
145
20
  };
146
21
  /** `Badge` variant with a coloured status dot before the label. */
147
22
  const BadgeWithDot = (props) => {
148
23
  const { size = 'md', color = 'gray', type = 'pill-color', className, children, 'data-testid': dataTestId } = props;
149
- const colors = withBadgeTypes[type];
24
+ const colors = styles.types.addon[type];
150
25
  const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
151
- const pillSizes = {
152
- sm: 'gap-1 py-0.5 pl-1.5 pr-2 text-xs font-medium',
153
- md: 'gap-1.5 py-0.5 pl-2 pr-2.5 text-sm font-medium',
154
- lg: 'gap-1.5 py-1 pl-2.5 pr-3 text-sm font-medium',
155
- };
156
- const badgeSizes = {
157
- sm: 'gap-1 py-0.5 px-1.5 text-xs font-medium',
158
- md: 'gap-1.5 py-0.5 px-2 text-sm font-medium',
159
- lg: 'gap-1.5 py-1 px-2.5 text-sm font-medium rounded-lg',
160
- };
161
- const sizes = {
162
- [badgeTypes.pillColor]: pillSizes,
163
- [badgeTypes.badgeColor]: badgeSizes,
164
- [badgeTypes.badgeModern]: badgeSizes,
165
- };
166
- return (jsxs("span", { "data-testid": badgeTestId, className: cx(colors.common, sizes[type][size], colors.styles[color].root, className), children: [jsx(Dot, { color: colors.styles[color].dotColor, size: "sm", "data-testid": joinTestId(badgeTestId, 'dot') }), children] }));
26
+ return (jsxs("span", { "data-testid": badgeTestId, className: cx(colors.common, styles.sizes.dot[type][size], colors.styles[color].root, className), children: [jsx(Dot, { color: colors.styles[color].dotColor, size: "sm", "data-testid": joinTestId(badgeTestId, 'dot') }), children] }));
167
27
  };
168
28
  /** `Badge` variant with a leading or trailing icon beside the label. */
169
29
  const BadgeWithIcon = (props) => {
170
30
  const { size = 'md', color = 'gray', type = 'pill-color', iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, 'data-testid': dataTestId, } = props;
171
- const colors = withBadgeTypes[type];
31
+ const colors = styles.types.addon[type];
172
32
  const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
173
33
  const icon = IconLeading ? 'leading' : 'trailing';
174
- const pillSizes = {
175
- sm: {
176
- trailing: 'gap-0.5 py-0.5 pl-2 pr-1.5 text-xs font-medium',
177
- leading: 'gap-0.5 py-0.5 pr-2 pl-1.5 text-xs font-medium',
178
- },
179
- md: {
180
- trailing: 'gap-1 py-0.5 pl-2.5 pr-2 text-sm font-medium',
181
- leading: 'gap-1 py-0.5 pr-2.5 pl-2 text-sm font-medium',
182
- },
183
- lg: {
184
- trailing: 'gap-1 py-1 pl-3 pr-2.5 text-sm font-medium',
185
- leading: 'gap-1 py-1 pr-3 pl-2.5 text-sm font-medium',
186
- },
187
- };
188
- const badgeSizes = {
189
- sm: {
190
- trailing: 'gap-0.5 py-0.5 pl-2 pr-1.5 text-xs font-medium',
191
- leading: 'gap-0.5 py-0.5 pr-2 pl-1.5 text-xs font-medium',
192
- },
193
- md: {
194
- trailing: 'gap-1 py-0.5 pl-2 pr-1.5 text-sm font-medium',
195
- leading: 'gap-1 py-0.5 pr-2 pl-1.5 text-sm font-medium',
196
- },
197
- lg: {
198
- trailing: 'gap-1 py-1 pl-2.5 pr-2 text-sm font-medium rounded-lg',
199
- leading: 'gap-1 py-1 pr-2.5 pl-2 text-sm font-medium rounded-lg',
200
- },
201
- };
202
- const sizes = {
203
- [badgeTypes.pillColor]: pillSizes,
204
- [badgeTypes.badgeColor]: badgeSizes,
205
- [badgeTypes.badgeModern]: badgeSizes,
206
- };
207
- return (jsxs("span", { "data-testid": badgeTestId, className: cx(colors.common, sizes[type][size][icon], colors.styles[color].root, className), children: [IconLeading && jsx(IconLeading, { className: cx(colors.styles[color].addon, 'size-3 stroke-3'), "data-testid": joinTestId(badgeTestId, 'icon') }), children, IconTrailing && jsx(IconTrailing, { className: cx(colors.styles[color].addon, 'size-3 stroke-3'), "data-testid": joinTestId(badgeTestId, 'icon') })] }));
34
+ return (jsxs("span", { "data-testid": badgeTestId, className: cx(colors.common, styles.sizes.icon[type][size][icon], colors.styles[color].root, className), children: [IconLeading && jsx(IconLeading, { className: cx(colors.styles[color].addon, 'size-3 stroke-3'), "data-testid": joinTestId(badgeTestId, 'icon') }), children, IconTrailing && jsx(IconTrailing, { className: cx(colors.styles[color].addon, 'size-3 stroke-3'), "data-testid": joinTestId(badgeTestId, 'icon') })] }));
208
35
  };
209
36
  /** `Badge` variant with a round country flag before the label. */
210
37
  const BadgeWithFlag = (props) => {
211
38
  const { size = 'md', color = 'gray', flag = 'AU', type = 'pill-color', children } = props;
212
- const colors = withPillTypes[type];
213
- const pillSizes = {
214
- sm: 'gap-1 py-0.5 pl-0.75 pr-2 text-xs font-medium',
215
- md: 'gap-1.5 py-0.5 pl-1 pr-2.5 text-sm font-medium',
216
- lg: 'gap-1.5 py-1 pl-1.5 pr-3 text-sm font-medium',
217
- };
218
- const badgeSizes = {
219
- sm: 'gap-1 py-0.5 pl-1 pr-1.5 text-xs font-medium',
220
- md: 'gap-1.5 py-0.5 pl-1.5 pr-2 text-sm font-medium',
221
- lg: 'gap-1.5 py-1 pl-2 pr-2.5 text-sm font-medium rounded-lg',
222
- };
223
- const sizes = {
224
- [badgeTypes.pillColor]: pillSizes,
225
- [badgeTypes.badgeColor]: badgeSizes,
226
- [badgeTypes.badgeModern]: badgeSizes,
227
- };
228
- return (jsxs("span", { className: cx(colors.common, sizes[type][size], colors.styles[color].root), children: [jsx(Flag, { code: flag, size: "xs" }), children] }));
39
+ const colors = styles.types.standard[type];
40
+ return (jsxs("span", { className: cx(colors.common, styles.sizes.media[type][size], colors.styles[color].root), children: [jsx(Flag, { code: flag, size: "xs" }), children] }));
229
41
  };
230
42
  /** `Badge` variant with a small round image before the label. */
231
43
  const BadgeWithImage = (props) => {
232
44
  const { size = 'md', color = 'gray', type = 'pill-color', imgSrc, children } = props;
233
- const colors = withPillTypes[type];
234
- const pillSizes = {
235
- sm: 'gap-1 py-0.5 pl-0.75 pr-2 text-xs font-medium',
236
- md: 'gap-1.5 py-0.5 pl-1 pr-2.5 text-sm font-medium',
237
- lg: 'gap-1.5 py-1 pl-1.5 pr-3 text-sm font-medium',
238
- };
239
- const badgeSizes = {
240
- sm: 'gap-1 py-0.5 pl-1 pr-1.5 text-xs font-medium',
241
- md: 'gap-1.5 py-0.5 pl-1.5 pr-2 text-sm font-medium',
242
- lg: 'gap-1.5 py-1 pl-2 pr-2.5 text-sm font-medium rounded-lg',
243
- };
244
- const sizes = {
245
- [badgeTypes.pillColor]: pillSizes,
246
- [badgeTypes.badgeColor]: badgeSizes,
247
- [badgeTypes.badgeModern]: badgeSizes,
248
- };
249
- return (jsxs("span", { className: cx(colors.common, sizes[type][size], colors.styles[color].root), children: [jsx("img", { src: imgSrc, className: "size-4 max-w-none rounded-full", alt: "Badge image" }), children] }));
45
+ const colors = styles.types.standard[type];
46
+ return (jsxs("span", { className: cx(colors.common, styles.sizes.media[type][size], colors.styles[color].root), children: [jsx("img", { src: imgSrc, className: "size-4 max-w-none rounded-full", alt: "Badge image" }), children] }));
250
47
  };
251
48
  /** `Badge` variant with a trailing icon button, typically to dismiss or remove the tag. */
252
49
  const BadgeWithButton = (props) => {
253
50
  const { size = 'md', color = 'gray', type = 'pill-color', icon: Icon = X, buttonLabel, children, 'data-testid': dataTestId } = props;
254
- const colors = withPillTypes[type];
51
+ const colors = styles.types.standard[type];
255
52
  const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
256
- const pillSizes = {
257
- sm: 'gap-0.5 py-0.5 pl-2 pr-0.75 text-xs font-medium',
258
- md: 'gap-0.5 py-0.5 pl-2.5 pr-1 text-sm font-medium',
259
- lg: 'gap-0.5 py-1 pl-3 pr-1.5 text-sm font-medium',
260
- };
261
- const badgeSizes = {
262
- sm: 'gap-0.5 py-0.5 pl-1.5 pr-0.75 text-xs font-medium',
263
- md: 'gap-0.5 py-0.5 pl-2 pr-1 text-sm font-medium',
264
- lg: 'gap-0.5 py-1 pl-2.5 pr-1.5 text-sm font-medium rounded-lg',
265
- };
266
- const sizes = {
267
- [badgeTypes.pillColor]: pillSizes,
268
- [badgeTypes.badgeColor]: badgeSizes,
269
- [badgeTypes.badgeModern]: badgeSizes,
270
- };
271
- return (jsxs("span", { "data-testid": badgeTestId, className: cx(colors.common, sizes[type][size], colors.styles[color].root), children: [children, jsx("button", { type: "button", "aria-label": buttonLabel, onClick: props.onButtonClick, "data-testid": joinTestId(badgeTestId, 'close-button'), className: cx('flex cursor-pointer items-center justify-center p-0.5 outline-focus-ring transition duration-100 ease-linear focus-visible:outline-2', colors.styles[color].addonButton, type === 'pill-color' ? 'rounded-full' : 'rounded-[3px]'), children: jsx(Icon, { className: "size-3 stroke-[3px] transition-inherit-all" }) })] }));
53
+ return (jsxs("span", { "data-testid": badgeTestId, className: cx(colors.common, styles.sizes.button[type][size], colors.styles[color].root), children: [children, jsx("button", { type: "button", "aria-label": buttonLabel, onClick: props.onButtonClick, "data-testid": joinTestId(badgeTestId, 'close-button'), className: cx('flex cursor-pointer items-center justify-center p-0.5 outline-focus-ring transition duration-100 ease-linear focus-visible:outline-2', colors.styles[color].addonButton, type === 'pill-color' ? 'rounded-full' : 'rounded-[3px]'), children: jsx(Icon, { className: "size-3 stroke-[3px] transition-inherit-all" }) })] }));
272
54
  };
273
55
  /** Icon-only `Badge` with no label text. */
274
56
  const BadgeIcon = (props) => {
275
57
  const { size = 'md', color = 'gray', type = 'pill-color', icon: Icon } = props;
276
- const colors = withPillTypes[type];
277
- const pillSizes = {
278
- sm: 'p-1.25',
279
- md: 'p-1.5',
280
- lg: 'p-2',
281
- };
282
- const badgeSizes = {
283
- sm: 'p-1.25',
284
- md: 'p-1.5',
285
- lg: 'p-2 rounded-lg',
286
- };
287
- const sizes = {
288
- [badgeTypes.pillColor]: pillSizes,
289
- [badgeTypes.badgeColor]: badgeSizes,
290
- [badgeTypes.badgeModern]: badgeSizes,
291
- };
292
- return (jsx("span", { className: cx(colors.common, sizes[type][size], colors.styles[color].root), children: jsx(Icon, { className: cx('size-3 stroke-[3px]', colors.styles[color].addon) }) }));
58
+ const colors = styles.types.standard[type];
59
+ return (jsx("span", { className: cx(colors.common, styles.sizes.iconOnly[type][size], colors.styles[color].root), children: jsx(Icon, { className: cx('size-3 stroke-[3px]', colors.styles[color].addon) }) }));
293
60
  };
294
61
 
295
62
  export { Badge, BadgeIcon, BadgeWithButton, BadgeWithDot, BadgeWithFlag, BadgeWithIcon, BadgeWithImage };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/atoms/Badge/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","CloseX"],"mappings":";;;;;;;;AAeA,MAAM,YAAY,GAA0C;AAC1D,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,yEAAyE;AAC/E,QAAA,KAAK,EAAE,0BAA0B;AACjC,QAAA,QAAQ,EAAE,qBAAqB;AAC/B,QAAA,WAAW,EAAE,sFAAsF;AACpG,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,mEAAmE;AACzE,QAAA,KAAK,EAAE,wBAAwB;AAC/B,QAAA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AC1E,IAAA,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,IAAI,GAAG,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK;IAE9E,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;IAE1C,QACEA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAA,QAAA,EAC9FA,GAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAA,CAAI,EAAA,CACrE;AAEX;;"}
@@ -0,0 +1,236 @@
1
+ import type { DotColor } from '@flipdish/ui-library/components/atoms/Dot';
2
+ import type { BadgeColors, BadgeTypes, Sizes } from './badge.types';
3
+ /** React Native colour set for one badge colour: `View` classes plus the hex values `Text` and icons need. */
4
+ export type NativeTone = {
5
+ bg: string;
6
+ border: string;
7
+ text: string;
8
+ addon: string;
9
+ button: string;
10
+ buttonPressed: string;
11
+ buttonPressedBg: string;
12
+ };
13
+ export type BadgeColorStyles = {
14
+ root: string;
15
+ addon: string;
16
+ dotColor: DotColor;
17
+ addonButton: string;
18
+ };
19
+ /**
20
+ * Shared `Badge` style config, read by `index.tsx` (and by `index.native.tsx` once it exists).
21
+ *
22
+ * `types.standard` serves `Badge`, `BadgeWithFlag`, `BadgeWithImage`, `BadgeWithButton` and `BadgeIcon`:
23
+ * its `modern` type only offers `gray`, with the fill in `root`. `types.addon` serves `BadgeWithDot`
24
+ * and `BadgeWithIcon`: its `modern` type takes every colour, which tints only the dot or icon while
25
+ * the fill sits in `common`.
26
+ *
27
+ * Complete literal class names, never template literals — Tailwind scans source for whole candidates.
28
+ */
29
+ export declare const styles: {
30
+ types: {
31
+ standard: {
32
+ "pill-color": {
33
+ common: string;
34
+ styles: Record<BadgeColors, BadgeColorStyles>;
35
+ };
36
+ color: {
37
+ common: string;
38
+ styles: Record<BadgeColors, BadgeColorStyles>;
39
+ };
40
+ modern: {
41
+ common: string;
42
+ styles: {
43
+ gray: {
44
+ root: string;
45
+ addon: string;
46
+ dotColor: "fg-quaternary";
47
+ addonButton: string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ addon: {
53
+ "pill-color": {
54
+ common: string;
55
+ styles: Record<BadgeColors, BadgeColorStyles>;
56
+ };
57
+ color: {
58
+ common: string;
59
+ styles: Record<BadgeColors, BadgeColorStyles>;
60
+ };
61
+ modern: {
62
+ common: string;
63
+ styles: Record<BadgeColors, Omit<BadgeColorStyles, "addonButton">>;
64
+ };
65
+ };
66
+ };
67
+ sizes: {
68
+ label: Record<BadgeTypes, Record<Sizes, string>>;
69
+ dot: Record<BadgeTypes, Record<Sizes, string>>;
70
+ icon: Record<BadgeTypes, Record<Sizes, {
71
+ trailing: string;
72
+ leading: string;
73
+ }>>;
74
+ /** Shared by `BadgeWithFlag` and `BadgeWithImage`, whose media sits flush to the leading edge. */
75
+ media: Record<BadgeTypes, Record<Sizes, string>>;
76
+ button: Record<BadgeTypes, Record<Sizes, string>>;
77
+ iconOnly: Record<BadgeTypes, Record<Sizes, string>>;
78
+ };
79
+ /**
80
+ * React Native only. Text and icon colours are light-mode hex rather than tokens: `Text` ignores
81
+ * `className` under the current `react-native-css` preview (see `Avatar/index.native.tsx`) and an icon
82
+ * has no `currentColor` to inherit, so both take an explicit value, as `Button` does. `text` mirrors
83
+ * web's `*-700`, `addon` its `*-500`, and `button`, `buttonPressed` and `buttonPressedBg` the dismiss button's resting tint and `hover:` state.
84
+ * `bg` and `border` are classes because a `View` resolves them. Primitive hex values are
85
+ * Tailwind's, so they match web in light mode only.
86
+ */
87
+ native: {
88
+ common: {
89
+ "pill-color": string;
90
+ color: string;
91
+ modern: string;
92
+ };
93
+ colors: {
94
+ gray: {
95
+ bg: string;
96
+ border: string;
97
+ text: string;
98
+ addon: string;
99
+ button: string;
100
+ buttonPressed: string;
101
+ buttonPressedBg: string;
102
+ };
103
+ brand: {
104
+ bg: string;
105
+ border: string;
106
+ text: string;
107
+ addon: string;
108
+ button: string;
109
+ buttonPressed: string;
110
+ buttonPressedBg: string;
111
+ };
112
+ error: {
113
+ bg: string;
114
+ border: string;
115
+ text: string;
116
+ addon: string;
117
+ button: string;
118
+ buttonPressed: string;
119
+ buttonPressedBg: string;
120
+ };
121
+ warning: {
122
+ bg: string;
123
+ border: string;
124
+ text: string;
125
+ addon: string;
126
+ button: string;
127
+ buttonPressed: string;
128
+ buttonPressedBg: string;
129
+ };
130
+ success: {
131
+ bg: string;
132
+ border: string;
133
+ text: string;
134
+ addon: string;
135
+ button: string;
136
+ buttonPressed: string;
137
+ buttonPressedBg: string;
138
+ };
139
+ slate: {
140
+ bg: string;
141
+ border: string;
142
+ text: string;
143
+ addon: string;
144
+ button: string;
145
+ buttonPressed: string;
146
+ buttonPressedBg: string;
147
+ };
148
+ sky: {
149
+ bg: string;
150
+ border: string;
151
+ text: string;
152
+ addon: string;
153
+ button: string;
154
+ buttonPressed: string;
155
+ buttonPressedBg: string;
156
+ };
157
+ blue: {
158
+ bg: string;
159
+ border: string;
160
+ text: string;
161
+ addon: string;
162
+ button: string;
163
+ buttonPressed: string;
164
+ buttonPressedBg: string;
165
+ };
166
+ indigo: {
167
+ bg: string;
168
+ border: string;
169
+ text: string;
170
+ addon: string;
171
+ button: string;
172
+ buttonPressed: string;
173
+ buttonPressedBg: string;
174
+ };
175
+ purple: {
176
+ bg: string;
177
+ border: string;
178
+ text: string;
179
+ addon: string;
180
+ button: string;
181
+ buttonPressed: string;
182
+ buttonPressedBg: string;
183
+ };
184
+ pink: {
185
+ bg: string;
186
+ border: string;
187
+ text: string;
188
+ addon: string;
189
+ button: string;
190
+ buttonPressed: string;
191
+ buttonPressedBg: string;
192
+ };
193
+ orange: {
194
+ bg: string;
195
+ border: string;
196
+ text: string;
197
+ addon: string;
198
+ button: string;
199
+ buttonPressed: string;
200
+ buttonPressedBg: string;
201
+ };
202
+ };
203
+ /** The neutral `modern` fill; `text` is `text-secondary` and `addon` is `fg-quaternary`. */
204
+ modern: {
205
+ bg: string;
206
+ border: string;
207
+ text: string;
208
+ addon: string;
209
+ button: string;
210
+ buttonPressed: string;
211
+ buttonPressedBg: string;
212
+ };
213
+ /** Pixel size of the leading, trailing and dismiss icons — web's `size-3`. */
214
+ iconSize: number;
215
+ /** Stroke width of those icons, in the 24px icon viewBox — web's `stroke-3`. */
216
+ iconStrokeWidth: number;
217
+ /** Diameter of the image in `BadgeWithImage` — web's `size-4`. */
218
+ imageSize: number;
219
+ /** Label type scale, web's `text-xs` for `sm` and `text-sm` otherwise. */
220
+ text: {
221
+ sm: {
222
+ fontSize: number;
223
+ lineHeight: number;
224
+ };
225
+ md: {
226
+ fontSize: number;
227
+ lineHeight: number;
228
+ };
229
+ lg: {
230
+ fontSize: number;
231
+ lineHeight: number;
232
+ };
233
+ };
234
+ };
235
+ };
236
+ //# sourceMappingURL=Badge.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Badge/Badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpE,8GAA8G;AAC9G,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAuGxG;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuEf,kGAAkG;;;;;IA2BpG;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiID,4FAA4F;;;;;;;;;;QAW5F,8EAA8E;;QAE9E,gFAAgF;;QAEhF,kEAAkE;;QAElE,0EAA0E;;;;;;;;;;;;;;;;CAO7E,CAAC"}