@julseb-lib/react 1.1.32 → 1.1.34

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/README.md CHANGED
@@ -38,22 +38,22 @@ pnpm install @julseb-lib/react
38
38
  Access comprehensive TypeScript definitions:
39
39
 
40
40
  ```typescript
41
- import type {
42
- ILibButton,
43
- ILibText,
44
- LibAllColors,
45
- LibSpacers
46
- } from '@julseb-lib/react/types'
41
+ import type {
42
+ ILibButton,
43
+ ILibText,
44
+ LibAllColors,
45
+ LibSpacers,
46
+ } from "@julseb-lib/react/types"
47
47
  ```
48
48
 
49
49
  Component-specific prop types:
50
50
 
51
51
  ```typescript
52
- import type {
53
- ILibButton,
54
- ILibInput,
55
- ILibModal
56
- } from '@julseb-lib/react/component-props'
52
+ import type {
53
+ ILibButton,
54
+ ILibInput,
55
+ ILibModal,
56
+ } from "@julseb-lib/react/component-props"
57
57
  ```
58
58
 
59
59
  ## Styling & Customization
@@ -64,12 +64,12 @@ The library uses CSS custom properties for theming:
64
64
 
65
65
  ```css
66
66
  :root {
67
- --color-primary-500: #3b82f6;
68
- --color-secondary-500: #06b6d4;
69
- --spacer-xs: 8px;
70
- --spacer-sm: 16px;
71
- --radius-sm: 4px;
72
- --radius-md: 8px;
67
+ --color-primary-500: #3b82f6;
68
+ --color-secondary-500: #06b6d4;
69
+ --spacer-xs: 8px;
70
+ --spacer-sm: 16px;
71
+ --radius-sm: 4px;
72
+ --radius-md: 8px;
73
73
  }
74
74
  ```
75
75
 
@@ -107,13 +107,13 @@ function ContactForm() {
107
107
  return (
108
108
  <form>
109
109
  <Flexbox direction="column" gap="md">
110
- <Input
110
+ <Input
111
111
  label="Email"
112
112
  type="email"
113
113
  required
114
114
  validation="Please enter a valid email"
115
115
  />
116
- <Input
116
+ <Input
117
117
  label="Message"
118
118
  element="textarea"
119
119
  rows={4}
@@ -141,9 +141,9 @@ function App() {
141
141
  <Button onClick={() => setIsOpen(true)}>
142
142
  Open Modal
143
143
  </Button>
144
-
145
- <Modal
146
- isOpen={isOpen}
144
+
145
+ <Modal
146
+ isOpen={isOpen}
147
147
  onClose={() => setIsOpen(false)}
148
148
  title="Contact Form"
149
149
  >
@@ -190,8 +190,8 @@ MIT © [Julien Sebag](https://julien-sebag.com)
190
190
 
191
191
  ### Links
192
192
 
193
- [Documentation](https://doc-julseb-lib-react.vercel.app/)
193
+ [Documentation](https://julseb-lib.vercel.app/components/)
194
194
 
195
195
  [GitHub Repository](https://github.com/JulSeb42/julseb-lib-react)
196
196
 
197
- [NPM Package](https://www.npmjs.com/package/@julseb-lib/react)
197
+ [NPM Package](https://www.npmjs.com/package/@julseb-lib/react)
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Image
3
- } from "./chunk-PXJ4JXEH.js";
3
+ } from "./chunk-AXOMYMGN.js";
4
4
 
5
5
  // src/lib/components/LazyImage/Image.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -11,4 +11,4 @@ var Image_default = Image2;
11
11
  export {
12
12
  Image_default as default
13
13
  };
14
- //# sourceMappingURL=Image-4MLJ7FPA.js.map
14
+ //# sourceMappingURL=Image-N6SBVL55.js.map
@@ -329,6 +329,15 @@ var designTokens = {
329
329
  bold: "bold",
330
330
  black: "black"
331
331
  },
332
+ /**
333
+ * Letter spacing (tracking) values.
334
+ * Tighter — -0.05em
335
+ * Tight — -0.025em
336
+ * Normal — 0em
337
+ * Wide — 0.025em
338
+ * Wider — 0.05em
339
+ * Widest — 0.1em
340
+ */
332
341
  libTracking: {
333
342
  tighter: "tighter",
334
343
  tight: "tight",
@@ -337,6 +346,15 @@ var designTokens = {
337
346
  wider: "wider",
338
347
  widest: "widest"
339
348
  },
349
+ /**
350
+ * Line height (leading) values.
351
+ * Tight — 1.25
352
+ * Snug — 1.375
353
+ * Normal — 1.5
354
+ * Relaxed — 1.625
355
+ * Loose — 2
356
+ * None — 1
357
+ */
340
358
  libLeading: {
341
359
  tight: "tight",
342
360
  snug: "snug",
@@ -345,6 +363,18 @@ var designTokens = {
345
363
  loose: "loose",
346
364
  none: "none"
347
365
  },
366
+ /**
367
+ * Border radius values.
368
+ * xs — 0.125rem
369
+ * sm — 0.25rem
370
+ * md — 0.375rem
371
+ * lg — 0.5rem
372
+ * xl — 0.75rem
373
+ * 2xl — 1rem
374
+ * 3xl — 1.5rem
375
+ * 4xl — 2rem
376
+ * full — 9999px
377
+ */
348
378
  libRadius: {
349
379
  xs: "xs",
350
380
  sm: "sm",
@@ -356,6 +386,7 @@ var designTokens = {
356
386
  "4xl": "4xl",
357
387
  full: "full"
358
388
  },
389
+ /** Box shadow size values. */
359
390
  libShadows: {
360
391
  "2xs": "2xs",
361
392
  xs: "xs",
@@ -366,11 +397,13 @@ var designTokens = {
366
397
  "2xl": "2xl",
367
398
  none: "none"
368
399
  },
400
+ /** Inset (inner) shadow size values. */
369
401
  libInsetShadows: {
370
402
  "2xs": "2xs",
371
403
  xs: "xs",
372
404
  sm: "sm"
373
405
  },
406
+ /** Drop shadow filter size values. */
374
407
  libDropShadows: {
375
408
  xs: "xs",
376
409
  sm: "sm",
@@ -379,6 +412,7 @@ var designTokens = {
379
412
  xl: "xl",
380
413
  "2xl": "2xl"
381
414
  },
415
+ /** Text shadow size values. */
382
416
  libTextShadow: {
383
417
  "2xs": "2xs",
384
418
  xs: "xs",
@@ -386,17 +420,20 @@ var designTokens = {
386
420
  md: "md",
387
421
  lg: "lg"
388
422
  },
423
+ /** CSS transition timing function values. */
389
424
  libTransitionTimingFunctions: {
390
425
  "--ease-in": "--ease-in",
391
426
  "--ease-out": "--ease-out",
392
427
  "--ease-in-out": "--ease-in-out"
393
428
  },
429
+ /** CSS animation presets. */
394
430
  libAnimate: {
395
431
  spin: "spin",
396
432
  ping: "ping",
397
433
  pulse: "pulse",
398
434
  bounce: "bounce"
399
435
  },
436
+ /** Blur filter size values. */
400
437
  libBlur: {
401
438
  xs: "xs",
402
439
  sm: "sm",
@@ -406,6 +443,7 @@ var designTokens = {
406
443
  "2xl": "2xl",
407
444
  "3xl": "3xl"
408
445
  },
446
+ /** CSS perspective distance values for 3D transforms. */
409
447
  libPerspective: {
410
448
  dramatic: "dramatic",
411
449
  near: "near",
@@ -413,8 +451,11 @@ var designTokens = {
413
451
  midrange: "midrange",
414
452
  distant: "distant"
415
453
  },
454
+ /** Video aspect ratio token (16:9). */
416
455
  libAspectVideo: {},
456
+ /** Display heading tags (h1–h5) reference. */
417
457
  libTextDisplayTags,
458
+ /** Text-level HTML element tags (h6, p, strong, em, small, blockquote, ul, ol, dl). */
418
459
  libTextTags: {
419
460
  h6: "h6",
420
461
  p: "p",
@@ -426,6 +467,7 @@ var designTokens = {
426
467
  ol: "ol",
427
468
  dl: "dl"
428
469
  },
470
+ /** CSS transition property targets. */
429
471
  libTransitions: {
430
472
  none: "none",
431
473
  all: "all",
@@ -435,27 +477,33 @@ var designTokens = {
435
477
  shadow: "shadow",
436
478
  transform: "transform"
437
479
  },
480
+ /** Color theme modes. */
438
481
  libThemes: {
439
482
  light: "light",
440
483
  dark: "dark"
441
484
  },
485
+ /** Input field border radius variants. */
442
486
  libInputVariants: {
443
487
  rounded: "rounded",
444
488
  pill: "pill"
445
489
  },
490
+ /** Input field background color modes. */
446
491
  libInputBackgrounds: {
447
492
  light: "light",
448
493
  dark: "dark"
449
494
  },
495
+ /** Main content area width presets. */
450
496
  libMainSizes: {
451
497
  default: "default",
452
498
  large: "large",
453
499
  form: "form"
454
500
  },
501
+ /** Aside panel width presets. */
455
502
  libAsideSizes: {
456
503
  default: "default",
457
504
  small: "small"
458
505
  },
506
+ /** Z-index layer values (0–50, with negative counterparts). */
459
507
  libZIndex: {
460
508
  "0": "0",
461
509
  "10": "10",
@@ -470,11 +518,13 @@ var designTokens = {
470
518
  "-40": "-40",
471
519
  "-50": "-50"
472
520
  },
521
+ /** CSS position property values. */
473
522
  libPosition: {
474
523
  relative: "relative",
475
524
  absolute: "absolute",
476
525
  fixed: "fixed"
477
526
  },
527
+ /** Minimum height sizing values. */
478
528
  libMinHeights: {
479
529
  px: "px",
480
530
  full: "full",
@@ -491,7 +541,9 @@ var designTokens = {
491
541
  fit: "fit",
492
542
  lh: "lh"
493
543
  },
544
+ /** Keyboard Key component size variants. */
494
545
  libKeySizes: { large: "large", small: "small" },
546
+ /** Maximum width sizing values. */
495
547
  libMaxWidths: {
496
548
  "3xs": "3xs",
497
549
  "2xs": "2xs",
@@ -520,23 +572,32 @@ var designTokens = {
520
572
  max: "max",
521
573
  fit: "fit"
522
574
  },
575
+ /** Skeleton loading animation styles. */
523
576
  libSkeletonAnimations: { pulse: "pulse", shine: "shine", none: "none" },
577
+ /** Tooltip positioning options. */
524
578
  libTooltipPositions: {
525
579
  top: "top",
526
580
  bottom: "bottom",
527
581
  left: "left",
528
582
  right: "right"
529
583
  },
584
+ /** Tooltip trigger interaction modes. */
530
585
  libTooltipTriggers: { hover: "hover", click: "click" },
586
+ /** Loader spinner visual variants. */
531
587
  libLoaderVariants: { 1: 1, 2: 2, 3: 3 },
588
+ /** Button visual style variants. */
532
589
  libButtonVariants: {
533
590
  plain: "plain",
534
591
  ghost: "ghost",
535
592
  transparent: "transparent"
536
593
  },
594
+ /** Button size presets. */
537
595
  libButtonSize: { default: "default", small: "small" },
596
+ /** ButtonGroup toggle selection modes (single or multi). */
538
597
  libButtonGroupToggle: { single: "single", multi: "multi" },
598
+ /** Tag visual style variants. */
539
599
  libTagVariant: { plain: "plain", outline: "outline" },
600
+ /** HTML input type values supported by the Input component. */
540
601
  libInputTypes: {
541
602
  color: "color",
542
603
  date: "date",
@@ -555,14 +616,19 @@ var designTokens = {
555
616
  select: "select",
556
617
  textarea: "textarea"
557
618
  },
619
+ /** Checkbox/radio input visual variants (tile, toggle, selector). */
558
620
  libCheckInputVariants: {
559
621
  tile: "tile",
560
622
  toggle: "toggle",
561
623
  selector: "selector"
562
624
  },
625
+ /** Dropdown list expansion direction. */
563
626
  libListInputDirections: { up: "up", down: "down" },
627
+ /** Accordion visual style variants. */
564
628
  libAccordionVariant: { basic: "basic", rounded: "rounded" },
629
+ /** Accordion expand/collapse icon styles. */
565
630
  libAccordionIcon: { plus: "plus", chevron: "chevron" },
631
+ /** Toast notification status types. */
566
632
  libToastStatus: {
567
633
  success: "success",
568
634
  error: "error",
@@ -570,27 +636,36 @@ var designTokens = {
570
636
  info: "info",
571
637
  loading: "loading"
572
638
  },
639
+ /** Tabs button alignment options. */
573
640
  libTabsJustify: { start: "start", stretch: "stretch" },
641
+ /** Tabs visual style variants. */
574
642
  libTabsVariant: { basic: "basic", rounded: "rounded" },
643
+ /** Slideshow pagination indicator styles. */
575
644
  libSlideshowPagination: {
576
645
  dots: "dots",
577
646
  "dots-outline": "dots-outline",
578
647
  bars: "bars",
579
648
  thumbnails: "thumbnails"
580
649
  },
650
+ /** Slideshow pagination placement (inside or outside the slide area). */
581
651
  libSlideshowPaginationPosition: { inside: "inside", outside: "outside" },
652
+ /** Slideshow navigation button alignment. */
582
653
  libSlideshowButtonsPositions: { left: "left", right: "right" },
654
+ /** Slideshow navigation button size presets. */
583
655
  libSlideshowButtonsSizes: { small: "small", large: "large" },
656
+ /** Table visual style variants. */
584
657
  libTableVariants: {
585
658
  bordered: "bordered",
586
659
  stripped: "stripped",
587
660
  "border-bottom": "border-bottom"
588
661
  },
662
+ /** Markdown editor view modes (code, live preview, preview only). */
589
663
  libMdEditorViews: {
590
664
  viewCode: "viewCode",
591
665
  viewLive: "viewLive",
592
666
  viewPreview: "viewPreview"
593
667
  },
668
+ /** Markdown editor toolbar formatting buttons. */
594
669
  libMdEditorButtons: {
595
670
  bold: "bold",
596
671
  italic: "italic",
@@ -606,12 +681,19 @@ var designTokens = {
606
681
  comment: "comment",
607
682
  image: "image"
608
683
  },
684
+ /** Markdown editor heading level options (h1–h6). */
609
685
  libMdEditorTitles: { ...libTextDisplayTags, h6: "h6" },
686
+ /** Drawer panel slide-in positions. */
610
687
  libDrawerPositions: { left: "left", right: "right" },
688
+ /** Mobile navigation burger button position. */
611
689
  libNavBurgerPositions: { left: "left", right: "right" },
690
+ /** Mobile navigation display variants. */
612
691
  libNavMobileVariants: { full: "full", top: "top", drawer: "drawer" },
692
+ /** Footer links layout direction. */
613
693
  libFooterDirection: { horizontal: "horizontal", vertical: "vertical" },
694
+ /** Footer links separator character styles. */
614
695
  libFooterLinksSeparator: { dot: "dot", dash: "dash" },
696
+ /** ISO 3166-1 alpha-2 country codes for the InputPhone component. */
615
697
  libCountryCodes: {
616
698
  af: "af",
617
699
  ax: "ax",
@@ -1572,7 +1654,7 @@ var Table = ({
1572
1654
  className: clsx(
1573
1655
  "flex gap-6 overflow-x-scroll",
1574
1656
  (variant === "bordered" || variant === "border-bottom") && [
1575
- "border-b border-b-gray-200"
1657
+ "not-last:border-b not-last:border-b-gray-200"
1576
1658
  ],
1577
1659
  variant === "stripped" && [
1578
1660
  j % 2 === 0 && "bg-gray-100"
@@ -2407,4 +2489,4 @@ export {
2407
2489
  genFontWeight,
2408
2490
  Image
2409
2491
  };
2410
- //# sourceMappingURL=chunk-PXJ4JXEH.js.map
2492
+ //# sourceMappingURL=chunk-AXOMYMGN.js.map