@jiwambe/components 0.3.0 → 0.3.2

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 (36) hide show
  1. package/README.md +84 -0
  2. package/dist/components/Box/Box.d.ts +10 -32
  3. package/dist/components/Box/Box.d.ts.map +1 -1
  4. package/dist/components/Box/Box.js +9 -13
  5. package/dist/components/Box/Box.js.map +1 -1
  6. package/dist/components/Card/Card.d.ts.map +1 -1
  7. package/dist/components/Card/Card.js +33 -32
  8. package/dist/components/Card/Card.js.map +1 -1
  9. package/dist/components/FAQ/FAQ.d.ts.map +1 -1
  10. package/dist/components/FAQ/FAQ.js +7 -7
  11. package/dist/components/FAQ/FAQ.js.map +1 -1
  12. package/dist/components/List/List.d.ts +10 -9
  13. package/dist/components/List/List.d.ts.map +1 -1
  14. package/dist/components/List/List.js +20 -5
  15. package/dist/components/List/List.js.map +1 -1
  16. package/dist/components/List/index.d.ts +1 -1
  17. package/dist/components/List/index.d.ts.map +1 -1
  18. package/dist/components/Typography/Typography.d.ts +10 -293
  19. package/dist/components/Typography/Typography.d.ts.map +1 -1
  20. package/dist/components/Typography/Typography.js +6 -11
  21. package/dist/components/Typography/Typography.js.map +1 -1
  22. package/dist/components/index.d.ts +1 -1
  23. package/dist/components/index.d.ts.map +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/plugin/jiwambe-plugin.d.ts.map +1 -1
  27. package/dist/plugin/jiwambe-plugin.js +55 -2
  28. package/dist/plugin/jiwambe-plugin.js.map +1 -1
  29. package/dist/server.d.ts +1 -1
  30. package/dist/server.d.ts.map +1 -1
  31. package/dist/types/index.d.ts +0 -6
  32. package/dist/types/index.d.ts.map +1 -1
  33. package/dist/types/list.d.ts +21 -2
  34. package/dist/types/list.d.ts.map +1 -1
  35. package/dist/types/list.js.map +1 -1
  36. package/package.json +18 -17
@@ -1,3 +1,3 @@
1
1
  export { List } from './List';
2
- export type { ListProps, ListItemProps, ListMarker, ListItemSize, } from '../../types/list';
2
+ export type { ListProps, ListItemProps, ListMarker, ListItemSize, ListIndent, ListItemPadding, } from '../../types/list';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACV,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACV,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,GAChB,MAAM,kBAAkB,CAAC"}
@@ -1,9 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { TypographyVariant, TypographyElement } from '../../types';
3
- /**
4
- * Props for the Typography component. Extends HTML attributes for the chosen element.
5
- */
6
- export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
2
+ import { TypographyVariant } from '../../types';
3
+ export type TypographyProps<C extends React.ElementType> = {
7
4
  /**
8
5
  * Design-system typographic style. Maps to a .text-{variant} class generated
9
6
  * by jiwambe-plugin (e.g. title-sm, text-sm, form-label). Choose the variant
@@ -15,12 +12,10 @@ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
15
12
  * page title, as="p" for body, as="label" for form labels).
16
13
  * @default 'p'
17
14
  */
18
- as?: TypographyElement;
15
+ as?: C;
19
16
  /** Text or inline content to render inside the element. */
20
- children: React.ReactNode;
21
- /** Forwarded ref for the root element. @default undefined */
22
- ref?: React.Ref<HTMLElement>;
23
- }
17
+ children?: React.ReactNode;
18
+ } & Omit<React.ComponentPropsWithoutRef<C>, 'variant' | 'as'>;
24
19
  /**
25
20
  * Renders text with a design-system typographic style. Applies font family,
26
21
  * size, weight, line-height, and optional letter-spacing from the Jiwambe
@@ -34,288 +29,10 @@ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
34
29
  * @example
35
30
  * // Body and label
36
31
  * <Typography variant="text-sm" as="p">Body copy here.</Typography>
37
- * <Typography variant="form-label" as="label">Field name</Typography>
32
+ * <Typography variant="form-label" as="label" htmlFor="my-input">Field name</Typography>
38
33
  */
39
- export declare function Typography({ variant, as: Tag, children, className, style, ref, ...rest }: TypographyProps): React.DetailedReactHTMLElement<{
40
- defaultChecked?: boolean | undefined;
41
- defaultValue?: string | number | readonly string[] | undefined;
42
- suppressContentEditableWarning?: boolean | undefined;
43
- suppressHydrationWarning?: boolean | undefined;
44
- accessKey?: string | undefined;
45
- autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
46
- autoFocus?: boolean | undefined;
47
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
48
- contextMenu?: string | undefined;
49
- dir?: string | undefined;
50
- draggable?: (boolean | "true" | "false") | undefined;
51
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
52
- hidden?: boolean | undefined;
53
- id?: string | undefined;
54
- lang?: string | undefined;
55
- nonce?: string | undefined;
56
- slot?: string | undefined;
57
- spellCheck?: (boolean | "true" | "false") | undefined;
58
- tabIndex?: number | undefined;
59
- title?: string | undefined;
60
- translate?: "yes" | "no" | undefined;
61
- radioGroup?: string | undefined;
62
- role?: React.AriaRole | undefined;
63
- about?: string | undefined;
64
- content?: string | undefined;
65
- datatype?: string | undefined;
66
- inlist?: any;
67
- prefix?: string | undefined;
68
- property?: string | undefined;
69
- rel?: string | undefined;
70
- resource?: string | undefined;
71
- rev?: string | undefined;
72
- typeof?: string | undefined;
73
- vocab?: string | undefined;
74
- autoCorrect?: string | undefined;
75
- autoSave?: string | undefined;
76
- color?: string | undefined;
77
- itemProp?: string | undefined;
78
- itemScope?: boolean | undefined;
79
- itemType?: string | undefined;
80
- itemID?: string | undefined;
81
- itemRef?: string | undefined;
82
- results?: number | undefined;
83
- security?: string | undefined;
84
- unselectable?: "on" | "off" | undefined;
85
- popover?: "" | "auto" | "manual" | "hint" | undefined;
86
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
87
- popoverTarget?: string | undefined;
88
- inert?: boolean | undefined;
89
- inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
90
- is?: string | undefined;
91
- exportparts?: string | undefined;
92
- part?: string | undefined;
93
- "aria-activedescendant"?: string | undefined;
94
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
95
- "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
96
- "aria-braillelabel"?: string | undefined;
97
- "aria-brailleroledescription"?: string | undefined;
98
- "aria-busy"?: (boolean | "true" | "false") | undefined;
99
- "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
100
- "aria-colcount"?: number | undefined;
101
- "aria-colindex"?: number | undefined;
102
- "aria-colindextext"?: string | undefined;
103
- "aria-colspan"?: number | undefined;
104
- "aria-controls"?: string | undefined;
105
- "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
106
- "aria-describedby"?: string | undefined;
107
- "aria-description"?: string | undefined;
108
- "aria-details"?: string | undefined;
109
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
110
- "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
111
- "aria-errormessage"?: string | undefined;
112
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
113
- "aria-flowto"?: string | undefined;
114
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
115
- "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
116
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
117
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
118
- "aria-keyshortcuts"?: string | undefined;
119
- "aria-label"?: string | undefined;
120
- "aria-labelledby"?: string | undefined;
121
- "aria-level"?: number | undefined;
122
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
123
- "aria-modal"?: (boolean | "true" | "false") | undefined;
124
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
125
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
126
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
127
- "aria-owns"?: string | undefined;
128
- "aria-placeholder"?: string | undefined;
129
- "aria-posinset"?: number | undefined;
130
- "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
131
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
132
- "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
133
- "aria-required"?: (boolean | "true" | "false") | undefined;
134
- "aria-roledescription"?: string | undefined;
135
- "aria-rowcount"?: number | undefined;
136
- "aria-rowindex"?: number | undefined;
137
- "aria-rowindextext"?: string | undefined;
138
- "aria-rowspan"?: number | undefined;
139
- "aria-selected"?: (boolean | "true" | "false") | undefined;
140
- "aria-setsize"?: number | undefined;
141
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
142
- "aria-valuemax"?: number | undefined;
143
- "aria-valuemin"?: number | undefined;
144
- "aria-valuenow"?: number | undefined;
145
- "aria-valuetext"?: string | undefined;
146
- dangerouslySetInnerHTML?: {
147
- __html: string | TrustedHTML;
148
- } | undefined;
149
- onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
150
- onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
151
- onCut?: React.ClipboardEventHandler<HTMLElement> | undefined;
152
- onCutCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
153
- onPaste?: React.ClipboardEventHandler<HTMLElement> | undefined;
154
- onPasteCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
155
- onCompositionEnd?: React.CompositionEventHandler<HTMLElement> | undefined;
156
- onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
157
- onCompositionStart?: React.CompositionEventHandler<HTMLElement> | undefined;
158
- onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
159
- onCompositionUpdate?: React.CompositionEventHandler<HTMLElement> | undefined;
160
- onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
161
- onFocus?: React.FocusEventHandler<HTMLElement> | undefined;
162
- onFocusCapture?: React.FocusEventHandler<HTMLElement> | undefined;
163
- onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
164
- onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
165
- onChange?: React.ChangeEventHandler<HTMLElement, Element> | undefined;
166
- onChangeCapture?: React.ChangeEventHandler<HTMLElement, Element> | undefined;
167
- onBeforeInput?: React.InputEventHandler<HTMLElement> | undefined;
168
- onBeforeInputCapture?: React.InputEventHandler<HTMLElement> | undefined;
169
- onInput?: React.InputEventHandler<HTMLElement> | undefined;
170
- onInputCapture?: React.InputEventHandler<HTMLElement> | undefined;
171
- onReset?: React.ReactEventHandler<HTMLElement> | undefined;
172
- onResetCapture?: React.ReactEventHandler<HTMLElement> | undefined;
173
- onSubmit?: React.SubmitEventHandler<HTMLElement> | undefined;
174
- onSubmitCapture?: React.SubmitEventHandler<HTMLElement> | undefined;
175
- onInvalid?: React.ReactEventHandler<HTMLElement> | undefined;
176
- onInvalidCapture?: React.ReactEventHandler<HTMLElement> | undefined;
177
- onLoad?: React.ReactEventHandler<HTMLElement> | undefined;
178
- onLoadCapture?: React.ReactEventHandler<HTMLElement> | undefined;
179
- onError?: React.ReactEventHandler<HTMLElement> | undefined;
180
- onErrorCapture?: React.ReactEventHandler<HTMLElement> | undefined;
181
- onKeyDown?: React.KeyboardEventHandler<HTMLElement> | undefined;
182
- onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
183
- onKeyPress?: React.KeyboardEventHandler<HTMLElement> | undefined;
184
- onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
185
- onKeyUp?: React.KeyboardEventHandler<HTMLElement> | undefined;
186
- onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
187
- onAbort?: React.ReactEventHandler<HTMLElement> | undefined;
188
- onAbortCapture?: React.ReactEventHandler<HTMLElement> | undefined;
189
- onCanPlay?: React.ReactEventHandler<HTMLElement> | undefined;
190
- onCanPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
191
- onCanPlayThrough?: React.ReactEventHandler<HTMLElement> | undefined;
192
- onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement> | undefined;
193
- onDurationChange?: React.ReactEventHandler<HTMLElement> | undefined;
194
- onDurationChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
195
- onEmptied?: React.ReactEventHandler<HTMLElement> | undefined;
196
- onEmptiedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
197
- onEncrypted?: React.ReactEventHandler<HTMLElement> | undefined;
198
- onEncryptedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
199
- onEnded?: React.ReactEventHandler<HTMLElement> | undefined;
200
- onEndedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
201
- onLoadedData?: React.ReactEventHandler<HTMLElement> | undefined;
202
- onLoadedDataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
203
- onLoadedMetadata?: React.ReactEventHandler<HTMLElement> | undefined;
204
- onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
205
- onLoadStart?: React.ReactEventHandler<HTMLElement> | undefined;
206
- onLoadStartCapture?: React.ReactEventHandler<HTMLElement> | undefined;
207
- onPause?: React.ReactEventHandler<HTMLElement> | undefined;
208
- onPauseCapture?: React.ReactEventHandler<HTMLElement> | undefined;
209
- onPlay?: React.ReactEventHandler<HTMLElement> | undefined;
210
- onPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
211
- onPlaying?: React.ReactEventHandler<HTMLElement> | undefined;
212
- onPlayingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
213
- onProgress?: React.ReactEventHandler<HTMLElement> | undefined;
214
- onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
215
- onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
216
- onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
217
- onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
218
- onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
219
- onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
220
- onSeekingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
221
- onStalled?: React.ReactEventHandler<HTMLElement> | undefined;
222
- onStalledCapture?: React.ReactEventHandler<HTMLElement> | undefined;
223
- onSuspend?: React.ReactEventHandler<HTMLElement> | undefined;
224
- onSuspendCapture?: React.ReactEventHandler<HTMLElement> | undefined;
225
- onTimeUpdate?: React.ReactEventHandler<HTMLElement> | undefined;
226
- onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement> | undefined;
227
- onVolumeChange?: React.ReactEventHandler<HTMLElement> | undefined;
228
- onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
229
- onWaiting?: React.ReactEventHandler<HTMLElement> | undefined;
230
- onWaitingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
231
- onAuxClick?: React.MouseEventHandler<HTMLElement> | undefined;
232
- onAuxClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
233
- onClick?: React.MouseEventHandler<HTMLElement> | undefined;
234
- onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
235
- onContextMenu?: React.MouseEventHandler<HTMLElement> | undefined;
236
- onContextMenuCapture?: React.MouseEventHandler<HTMLElement> | undefined;
237
- onDoubleClick?: React.MouseEventHandler<HTMLElement> | undefined;
238
- onDoubleClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
239
- onDrag?: React.DragEventHandler<HTMLElement> | undefined;
240
- onDragCapture?: React.DragEventHandler<HTMLElement> | undefined;
241
- onDragEnd?: React.DragEventHandler<HTMLElement> | undefined;
242
- onDragEndCapture?: React.DragEventHandler<HTMLElement> | undefined;
243
- onDragEnter?: React.DragEventHandler<HTMLElement> | undefined;
244
- onDragEnterCapture?: React.DragEventHandler<HTMLElement> | undefined;
245
- onDragExit?: React.DragEventHandler<HTMLElement> | undefined;
246
- onDragExitCapture?: React.DragEventHandler<HTMLElement> | undefined;
247
- onDragLeave?: React.DragEventHandler<HTMLElement> | undefined;
248
- onDragLeaveCapture?: React.DragEventHandler<HTMLElement> | undefined;
249
- onDragOver?: React.DragEventHandler<HTMLElement> | undefined;
250
- onDragOverCapture?: React.DragEventHandler<HTMLElement> | undefined;
251
- onDragStart?: React.DragEventHandler<HTMLElement> | undefined;
252
- onDragStartCapture?: React.DragEventHandler<HTMLElement> | undefined;
253
- onDrop?: React.DragEventHandler<HTMLElement> | undefined;
254
- onDropCapture?: React.DragEventHandler<HTMLElement> | undefined;
255
- onMouseDown?: React.MouseEventHandler<HTMLElement> | undefined;
256
- onMouseDownCapture?: React.MouseEventHandler<HTMLElement> | undefined;
257
- onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined;
258
- onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined;
259
- onMouseMove?: React.MouseEventHandler<HTMLElement> | undefined;
260
- onMouseMoveCapture?: React.MouseEventHandler<HTMLElement> | undefined;
261
- onMouseOut?: React.MouseEventHandler<HTMLElement> | undefined;
262
- onMouseOutCapture?: React.MouseEventHandler<HTMLElement> | undefined;
263
- onMouseOver?: React.MouseEventHandler<HTMLElement> | undefined;
264
- onMouseOverCapture?: React.MouseEventHandler<HTMLElement> | undefined;
265
- onMouseUp?: React.MouseEventHandler<HTMLElement> | undefined;
266
- onMouseUpCapture?: React.MouseEventHandler<HTMLElement> | undefined;
267
- onSelect?: React.ReactEventHandler<HTMLElement> | undefined;
268
- onSelectCapture?: React.ReactEventHandler<HTMLElement> | undefined;
269
- onTouchCancel?: React.TouchEventHandler<HTMLElement> | undefined;
270
- onTouchCancelCapture?: React.TouchEventHandler<HTMLElement> | undefined;
271
- onTouchEnd?: React.TouchEventHandler<HTMLElement> | undefined;
272
- onTouchEndCapture?: React.TouchEventHandler<HTMLElement> | undefined;
273
- onTouchMove?: React.TouchEventHandler<HTMLElement> | undefined;
274
- onTouchMoveCapture?: React.TouchEventHandler<HTMLElement> | undefined;
275
- onTouchStart?: React.TouchEventHandler<HTMLElement> | undefined;
276
- onTouchStartCapture?: React.TouchEventHandler<HTMLElement> | undefined;
277
- onPointerDown?: React.PointerEventHandler<HTMLElement> | undefined;
278
- onPointerDownCapture?: React.PointerEventHandler<HTMLElement> | undefined;
279
- onPointerMove?: React.PointerEventHandler<HTMLElement> | undefined;
280
- onPointerMoveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
281
- onPointerUp?: React.PointerEventHandler<HTMLElement> | undefined;
282
- onPointerUpCapture?: React.PointerEventHandler<HTMLElement> | undefined;
283
- onPointerCancel?: React.PointerEventHandler<HTMLElement> | undefined;
284
- onPointerCancelCapture?: React.PointerEventHandler<HTMLElement> | undefined;
285
- onPointerEnter?: React.PointerEventHandler<HTMLElement> | undefined;
286
- onPointerLeave?: React.PointerEventHandler<HTMLElement> | undefined;
287
- onPointerOver?: React.PointerEventHandler<HTMLElement> | undefined;
288
- onPointerOverCapture?: React.PointerEventHandler<HTMLElement> | undefined;
289
- onPointerOut?: React.PointerEventHandler<HTMLElement> | undefined;
290
- onPointerOutCapture?: React.PointerEventHandler<HTMLElement> | undefined;
291
- onGotPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
292
- onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
293
- onLostPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
294
- onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
295
- onScroll?: React.UIEventHandler<HTMLElement> | undefined;
296
- onScrollCapture?: React.UIEventHandler<HTMLElement> | undefined;
297
- onScrollEnd?: React.UIEventHandler<HTMLElement> | undefined;
298
- onScrollEndCapture?: React.UIEventHandler<HTMLElement> | undefined;
299
- onWheel?: React.WheelEventHandler<HTMLElement> | undefined;
300
- onWheelCapture?: React.WheelEventHandler<HTMLElement> | undefined;
301
- onAnimationStart?: React.AnimationEventHandler<HTMLElement> | undefined;
302
- onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
303
- onAnimationEnd?: React.AnimationEventHandler<HTMLElement> | undefined;
304
- onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
305
- onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
306
- onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
307
- onToggle?: React.ToggleEventHandler<HTMLElement> | undefined;
308
- onBeforeToggle?: React.ToggleEventHandler<HTMLElement> | undefined;
309
- onTransitionCancel?: React.TransitionEventHandler<HTMLElement> | undefined;
310
- onTransitionCancelCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
311
- onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
312
- onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
313
- onTransitionRun?: React.TransitionEventHandler<HTMLElement> | undefined;
314
- onTransitionRunCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
315
- onTransitionStart?: React.TransitionEventHandler<HTMLElement> | undefined;
316
- onTransitionStartCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
317
- ref: React.Ref<HTMLElement> | undefined;
318
- className: string;
319
- style: React.CSSProperties | undefined;
320
- }, HTMLElement>;
34
+ export type TypographyComponent = <C extends React.ElementType = 'p'>(props: TypographyProps<C> & {
35
+ ref?: React.ComponentPropsWithRef<C>['ref'];
36
+ }) => React.ReactElement | null;
37
+ export declare const Typography: TypographyComponent;
321
38
  //# sourceMappingURL=Typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE;;;;OAIG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAC3B;;;;OAIG;IACH,EAAE,CAAC,EAAE,iBAAiB,CAAC;IACvB,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6DAA6D;IAC7D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;CAC9B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,EAAE,EAAE,GAAS,EACb,QAAQ,EACR,SAAc,EACd,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAQjB"}
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI;IACzD;;;;OAIG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAC3B;;;;OAIG;IACH,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,EAClE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;CAAE,KACxE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;AAiB/B,eAAO,MAAM,UAAU,EAAE,mBAAqE,CAAC"}
@@ -1,20 +1,15 @@
1
1
  import React from "react";
2
- function Typography({
3
- variant,
4
- as: Tag = "p",
5
- children,
6
- className = "",
7
- style,
8
- ref,
9
- ...rest
10
- }) {
11
- const classes = [`text-${variant}`, className].filter(Boolean).join(" ");
2
+ const TypographyInner = (props, ref) => {
3
+ const { variant, as, children, className, style, ...rest } = props;
4
+ const Tag = as || "p";
5
+ const classes = [`text-${variant}`, className || ""].filter(Boolean).join(" ");
12
6
  return React.createElement(
13
7
  Tag,
14
8
  { ref, className: classes, style, ...rest },
15
9
  children
16
10
  );
17
- }
11
+ };
12
+ const Typography = React.forwardRef(TypographyInner);
18
13
  export {
19
14
  Typography
20
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.js","sources":["../../../src/components/Typography/Typography.tsx"],"sourcesContent":["import React from 'react';\nimport type { TypographyVariant, TypographyElement } from '../../types';\n\n/**\n * Props for the Typography component. Extends HTML attributes for the chosen element.\n */\nexport interface TypographyProps extends React.HTMLAttributes<HTMLElement> {\n /**\n * Design-system typographic style. Maps to a .text-{variant} class generated\n * by jiwambe-plugin (e.g. title-sm, text-sm, form-label). Choose the variant\n * that matches the semantic role of the text (heading, body, label, etc.).\n */\n variant: TypographyVariant;\n /**\n * The HTML element to render. Use for semantic correctness (e.g. as=\"h1\" for\n * page title, as=\"p\" for body, as=\"label\" for form labels).\n * @default 'p'\n */\n as?: TypographyElement;\n /** Text or inline content to render inside the element. */\n children: React.ReactNode;\n /** Forwarded ref for the root element. @default undefined */\n ref?: React.Ref<HTMLElement>;\n}\n\n/**\n * Renders text with a design-system typographic style. Applies font family,\n * size, weight, line-height, and optional letter-spacing from the Jiwambe\n * theme. Use Typography instead of raw elements when you want consistent\n * type scale and token-based styling.\n *\n * @example\n * // Page heading\n * <Typography variant=\"title-lg\" as=\"h1\">Hello World</Typography>\n *\n * @example\n * // Body and label\n * <Typography variant=\"text-sm\" as=\"p\">Body copy here.</Typography>\n * <Typography variant=\"form-label\" as=\"label\">Field name</Typography>\n */\nexport function Typography({\n variant,\n as: Tag = 'p',\n children,\n className = '',\n style,\n ref,\n ...rest\n}: TypographyProps) {\n const classes = [`text-${variant}`, className].filter(Boolean).join(' ');\n\n return React.createElement(\n Tag,\n { ref, className: classes, style, ...rest },\n children,\n );\n}\n"],"names":[],"mappings":";AAwCO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,IAAI,MAAM;AAAA,EACV;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAoB;AAClB,QAAM,UAAU,CAAC,QAAQ,OAAO,IAAI,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAEvE,SAAO,MAAM;AAAA,IACX;AAAA,IACA,EAAE,KAAK,WAAW,SAAS,OAAO,GAAG,KAAA;AAAA,IACrC;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"Typography.js","sources":["../../../src/components/Typography/Typography.tsx"],"sourcesContent":["import React from 'react';\nimport type { TypographyVariant } from '../../types';\n\nexport type TypographyProps<C extends React.ElementType> = {\n /**\n * Design-system typographic style. Maps to a .text-{variant} class generated\n * by jiwambe-plugin (e.g. title-sm, text-sm, form-label). Choose the variant\n * that matches the semantic role of the text (heading, body, label, etc.).\n */\n variant: TypographyVariant;\n /**\n * The HTML element to render. Use for semantic correctness (e.g. as=\"h1\" for\n * page title, as=\"p\" for body, as=\"label\" for form labels).\n * @default 'p'\n */\n as?: C;\n /** Text or inline content to render inside the element. */\n children?: React.ReactNode;\n} & Omit<React.ComponentPropsWithoutRef<C>, 'variant' | 'as'>;\n\n/**\n * Renders text with a design-system typographic style. Applies font family,\n * size, weight, line-height, and optional letter-spacing from the Jiwambe\n * theme. Use Typography instead of raw elements when you want consistent\n * type scale and token-based styling.\n *\n * @example\n * // Page heading\n * <Typography variant=\"title-lg\" as=\"h1\">Hello World</Typography>\n *\n * @example\n * // Body and label\n * <Typography variant=\"text-sm\" as=\"p\">Body copy here.</Typography>\n * <Typography variant=\"form-label\" as=\"label\" htmlFor=\"my-input\">Field name</Typography>\n */\nexport type TypographyComponent = <C extends React.ElementType = 'p'>(\n props: TypographyProps<C> & { ref?: React.ComponentPropsWithRef<C>['ref'] }\n) => React.ReactElement | null;\n\nconst TypographyInner = <C extends React.ElementType = 'p'>(\n props: TypographyProps<C>,\n ref: React.ComponentPropsWithRef<C>['ref']\n) => {\n const { variant, as, children, className, style, ...rest } = props as any;\n const Tag = as || 'p';\n const classes = [`text-${variant}`, className || ''].filter(Boolean).join(' ');\n\n return React.createElement(\n Tag,\n { ref, className: classes, style, ...rest },\n children\n );\n};\n\nexport const Typography: TypographyComponent = React.forwardRef(TypographyInner as any) as any;\n\n"],"names":[],"mappings":";AAuCA,MAAM,kBAAkB,CACtB,OACA,QACG;AACH,QAAM,EAAE,SAAS,IAAI,UAAU,WAAW,OAAO,GAAG,SAAS;AAC7D,QAAM,MAAM,MAAM;AAClB,QAAM,UAAU,CAAC,QAAQ,OAAO,IAAI,aAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAE7E,SAAO,MAAM;AAAA,IACX;AAAA,IACA,EAAE,KAAK,WAAW,SAAS,OAAO,GAAG,KAAA;AAAA,IACrC;AAAA,EAAA;AAEJ;AAEO,MAAM,aAAkC,MAAM,WAAW,eAAsB;"}
@@ -61,5 +61,5 @@ export type { SectionProps, SectionSize } from './Section/Section';
61
61
  export { Skeleton } from './Skeleton';
62
62
  export type { SkeletonProps, SkeletonRadius } from './Skeleton';
63
63
  export { List } from './List';
64
- export type { ListProps, ListItemProps, ListMarker, ListItemSize } from './List';
64
+ export type { ListProps, ListItemProps, ListMarker, ListItemSize, ListIndent, ListItemPadding } from './List';
65
65
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEpG,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,YAAY,EAAE,QAA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AC5C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Typography, Button, Link, Accordion, AccordionSpecs, FAQ, Tab, Grid, Container, Box, Stack, Divider, Overlay, Drawer, Popover, TextInput, TextArea, Select, SelectTab, DateInput, PhoneInput, EAST_AFRICA_COUNTRIES, UploadInput, RadioGroup, CheckboxGroup, Slider, Toggle, ToggleButton, Card, ProductImage, ProductImageGallery, Icon, Section, Skeleton, List, } from './components';
2
2
  export type { TypographyProps, ButtonProps, LinkProps, AccordionProps, AccordionSpecsProps, FAQProps, TabProps, GridProps, ContainerProps, ContainerMaxWidth, BoxProps, ResponsiveValue, StackProps, StackDirection, StackAlign, StackJustify, DividerProps, DividerOrientation, DividerVariant, OverlayProps, DrawerProps, DrawerAnchor, PopoverProps, PopoverAlign, TextInputProps, TextAreaProps, SelectProps, SelectOption, SelectTabProps, SelectTabOption, DateInputProps, DateValue, PhoneInputProps, PhoneCountry, UploadInputProps, RadioGroupProps, RadioOption, CheckboxGroupProps, CheckboxOption, SliderProps, ToggleProps, ToggleButtonProps, ToggleOption, ToggleSize, CardProps, CardType, ProductImageProps, ProductImageGalleryProps, GalleryImage, IconProps, IconName, SectionProps, SectionSize, SkeletonProps, SkeletonRadius, ListProps, ListItemProps, ListMarker, ListItemSize, } from './components';
3
- export type { TypographyVariant, TypographyElement, ButtonVariant, ButtonSize, LinkVariant, LinkSize, AccordionItem, AccordionVariant, AccordionSpecItem, FAQItem, TabItem, } from './types';
3
+ export type { TypographyVariant, ButtonVariant, ButtonSize, LinkVariant, LinkSize, AccordionItem, AccordionVariant, AccordionSpecItem, FAQItem, TabItem, } from './types';
4
4
  export type { FixedSpacingToken, FluidSpacingToken, SpacingToken, MarginToken, SpacingProps, GapProps, } from './types/spacing';
5
5
  export type { DisplayValue, AlignItemsValue, JustifyContentValue, FlexDirectionValue, FlexWrapValue, AlignSelfValue, LayoutProps, StackLayoutProps, } from './types/layout';
6
6
  export type { JiwambePluginOptions, TypographyDef, } from './plugin/jiwambe-plugin';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,GAAG,EACH,GAAG,EACH,IAAI,EACJ,SAAS,EACT,GAAG,EACH,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,MAAM,EACN,SAAS,EACT,SAAS,EACT,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,aAAa,EACb,MAAM,EACN,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,GACL,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,eAAe,EACf,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAc,EACd,SAAS,EACT,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,wBAAwB,EACxB,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,WAAW,EACX,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,EACP,OAAO,GACR,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,WAAW,EACX,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACV,oBAAoB,EACpB,aAAa,GACd,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,GAAG,EACH,GAAG,EACH,IAAI,EACJ,S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AAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAW7D;AA6cD,QAAA,MAAM,aAAa;;;cAnlBD,CAAC;;;CAizBlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -327,6 +327,8 @@ const spacingTokens = {
327
327
  "space-36": "9rem",
328
328
  "space-48": "12rem",
329
329
  "space-72": "18rem",
330
+ /** List indent for legal/body-copy lists (27px). Use with List indent prop. */
331
+ "space-list-indent": "1.6875rem",
330
332
  // Fluid
331
333
  "space-fluid-1-2": "clamp(0.25rem, 0.1706rem + 0.3968vw, 0.5rem)",
332
334
  "space-fluid-2-4": "clamp(0.5rem, 0.3413rem + 0.7937vw, 1rem)",
@@ -485,7 +487,7 @@ function resolvedFontFamilies(options) {
485
487
  }
486
488
  const jiwambePlugin = plugin.withOptions(
487
489
  (options) => {
488
- return ({ addBase, addUtilities }) => {
490
+ return ({ addBase, addComponents }) => {
489
491
  const fonts = resolvedFontFamilies(options);
490
492
  const mergedColors = { ...defaultSemanticColors(), ...(options == null ? void 0 : options.colors) ?? {} };
491
493
  const mergedSpacing = { ...spacingTokens, ...(options == null ? void 0 : options.spacing) ?? {} };
@@ -571,9 +573,17 @@ const jiwambePlugin = plugin.withOptions(
571
573
  paddingLeft: "0",
572
574
  listStyle: "none"
573
575
  },
576
+ ".jiwambe-list--disc": {
577
+ listStyleType: "disc",
578
+ listStylePosition: "outside"
579
+ },
574
580
  ".jiwambe-list--disc li::marker": {
575
581
  color: "var(--col-text-secondary)"
576
582
  },
583
+ ".jiwambe-list--decimal": {
584
+ listStyleType: "decimal",
585
+ listStylePosition: "outside"
586
+ },
577
587
  ".jiwambe-list--decimal li::marker": {
578
588
  color: "var(--col-text-secondary)",
579
589
  fontVariantNumeric: "tabular-nums"
@@ -585,10 +595,53 @@ const jiwambePlugin = plugin.withOptions(
585
595
  ".jiwambe-list-item": {
586
596
  paddingLeft: "var(--space-1)"
587
597
  },
598
+ ".jiwambe-list--item-padding-none .jiwambe-list-item": {
599
+ paddingLeft: "0"
600
+ },
588
601
  ".jiwambe-list-item + .jiwambe-list-item": {
589
602
  marginTop: "var(--space-0)"
590
603
  }
591
604
  });
605
+ const listSpacingTokens = [
606
+ "space-0",
607
+ "space-0-25",
608
+ "space-1",
609
+ "space-2",
610
+ "space-3",
611
+ "space-4",
612
+ "space-5",
613
+ "space-6",
614
+ "space-8",
615
+ "space-9",
616
+ "space-12",
617
+ "space-16",
618
+ "space-18",
619
+ "space-24",
620
+ "space-30",
621
+ "space-36",
622
+ "space-48",
623
+ "space-72",
624
+ "space-list-indent",
625
+ "space-fluid-1-2",
626
+ "space-fluid-2-4",
627
+ "space-fluid-4-5",
628
+ "space-fluid-4-6",
629
+ "space-fluid-4-8",
630
+ "space-fluid-4-9",
631
+ "space-fluid-5-6",
632
+ "space-fluid-6-9",
633
+ "space-fluid-8-16",
634
+ "space-fluid-16-18",
635
+ "space-fluid-30-36",
636
+ "space-fluid-48-72"
637
+ ];
638
+ const listSpacingBase = {};
639
+ for (const token of listSpacingTokens) {
640
+ listSpacingBase[`.jiwambe-list--spacing-${token} > .jiwambe-list-item + .jiwambe-list-item`] = {
641
+ marginTop: `var(--${token})`
642
+ };
643
+ }
644
+ addBase(listSpacingBase);
592
645
  const typographyUtilities = {};
593
646
  for (const [name, def] of Object.entries(mergedTypography)) {
594
647
  const styles = {
@@ -601,7 +654,7 @@ const jiwambePlugin = plugin.withOptions(
601
654
  if (def.textWrap) styles["text-wrap"] = def.textWrap;
602
655
  typographyUtilities[`.text-${name}`] = styles;
603
656
  }
604
- addUtilities(typographyUtilities);
657
+ addComponents(typographyUtilities);
605
658
  };
606
659
  },
607
660
  (options) => {