@solibo/solibo-ui 1.0.3 → 1.0.5

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 (67) hide show
  1. package/dist/assets/index13.css +1 -1
  2. package/dist/assets/index17.css +1 -1
  3. package/dist/assets/index27.css +1 -1
  4. package/dist/assets/index31.css +1 -1
  5. package/dist/assets/index32.css +1 -1
  6. package/dist/assets/index39.css +1 -1
  7. package/dist/assets/index41.css +1 -1
  8. package/dist/assets/index47.css +1 -1
  9. package/dist/components/avatar/index.cjs +1 -1
  10. package/dist/components/avatar/index.cjs.map +1 -1
  11. package/dist/components/avatar/index.js +64 -44
  12. package/dist/components/avatar/index.js.map +1 -1
  13. package/dist/components/button/index.cjs +1 -1
  14. package/dist/components/button/index.js +16 -16
  15. package/dist/components/card/index.cjs +1 -1
  16. package/dist/components/card/index.cjs.map +1 -1
  17. package/dist/components/card/index.js +41 -31
  18. package/dist/components/card/index.js.map +1 -1
  19. package/dist/components/checkbox/index.cjs +1 -1
  20. package/dist/components/checkbox/index.js +1 -1
  21. package/dist/components/dropdown/index.cjs +1 -1
  22. package/dist/components/dropdown/index.js +3 -3
  23. package/dist/components/editor/index.cjs +27 -27
  24. package/dist/components/editor/index.cjs.map +1 -1
  25. package/dist/components/editor/index.js +3001 -2973
  26. package/dist/components/editor/index.js.map +1 -1
  27. package/dist/components/icon/index.cjs +1 -1
  28. package/dist/components/icon/index.js +1 -1
  29. package/dist/components/input/index.cjs +1 -1
  30. package/dist/components/input/index.js +2 -2
  31. package/dist/components/menu/index.cjs +1 -1
  32. package/dist/components/menu/index.cjs.map +1 -1
  33. package/dist/components/menu/index.js +14 -13
  34. package/dist/components/menu/index.js.map +1 -1
  35. package/dist/components/message/index.cjs +1 -1
  36. package/dist/components/message/index.cjs.map +1 -1
  37. package/dist/components/message/index.js +15 -14
  38. package/dist/components/message/index.js.map +1 -1
  39. package/dist/components/nav/index.cjs +1 -1
  40. package/dist/components/nav/index.cjs.map +1 -1
  41. package/dist/components/nav/index.js +35 -30
  42. package/dist/components/nav/index.js.map +1 -1
  43. package/dist/components/popover/index.cjs +1 -1
  44. package/dist/components/popover/index.cjs.map +1 -1
  45. package/dist/components/popover/index.js +83 -39
  46. package/dist/components/popover/index.js.map +1 -1
  47. package/dist/components/search/index.cjs +1 -1
  48. package/dist/components/search/index.js +1 -1
  49. package/dist/components/select/index.cjs +1 -1
  50. package/dist/components/select/index.js +2 -2
  51. package/dist/{icons-DYCSlAoX.cjs → icons-BROXUtPz.cjs} +2 -2
  52. package/dist/{icons-DYCSlAoX.cjs.map → icons-BROXUtPz.cjs.map} +1 -1
  53. package/dist/{icons-CKzd_L4D.js → icons-CH48JQqt.js} +6 -2
  54. package/dist/{icons-CKzd_L4D.js.map → icons-CH48JQqt.js.map} +1 -1
  55. package/dist/{index-DFXqYJat.js → index-BrGCs_7h.js} +2 -2
  56. package/dist/{index-DFXqYJat.js.map → index-BrGCs_7h.js.map} +1 -1
  57. package/dist/{index-CP5A_BGJ.cjs → index-CIugi8vq.cjs} +2 -2
  58. package/dist/{index-CP5A_BGJ.cjs.map → index-CIugi8vq.cjs.map} +1 -1
  59. package/dist/{index-B9xtLe2w.js → index-CRAuAHow.js} +2 -2
  60. package/dist/{index-B9xtLe2w.js.map → index-CRAuAHow.js.map} +1 -1
  61. package/dist/{index-N4IMha5Q.cjs → index-CSYOtiWJ.cjs} +2 -2
  62. package/dist/{index-N4IMha5Q.cjs.map → index-CSYOtiWJ.cjs.map} +1 -1
  63. package/dist/index.cjs +1 -1
  64. package/dist/index.d.ts +49 -25
  65. package/dist/index.js +39 -38
  66. package/dist/tokens.json +1 -1
  67. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -21,18 +21,20 @@ declare type AsideProps = {
21
21
  variant?: keyof typeof variants;
22
22
  };
23
23
 
24
- export declare const Avatar: ({ accessibleLabel, color, imageUrl, link, name, role, size, }: AvatarProps) => JSX.Element;
24
+ export declare const Avatar: ({ accessibleLabel, color, icon, imageUrl, link, name, role, size, text, }: AvatarProps) => JSX.Element;
25
25
 
26
26
  export declare type AvatarColor = 'solibo' | 'board' | 'owner' | 'renter' | 'external' | '1' | '2' | '3' | '4' | '5';
27
27
 
28
28
  export declare type AvatarProps = {
29
29
  accessibleLabel?: string;
30
30
  color?: AvatarColor;
31
+ icon?: IconProps['name'];
31
32
  imageUrl?: string;
32
33
  link?: string;
33
34
  name?: string;
34
35
  role?: string;
35
36
  size?: AvatarSize;
37
+ text?: string;
36
38
  };
37
39
 
38
40
  export declare type AvatarSize = 'small' | 'medium' | 'large';
@@ -46,7 +48,7 @@ export declare type BadgeProps = {
46
48
  children?: React.ReactNode;
47
49
  icon?: IconName;
48
50
  position?: 'left' | 'right';
49
- variant?: keyof typeof variants_2;
51
+ variant?: keyof typeof variants_3;
50
52
  };
51
53
 
52
54
  export declare const Banner: ({ button, message, onClick, onDismiss, visible }: BannerProps) => JSX.Element;
@@ -73,7 +75,7 @@ export declare const Branding: ({ name, size, variant }: BrandingProps) => JSX.E
73
75
  declare type BrandingProps = {
74
76
  name: keyof typeof brandingSVG;
75
77
  size?: number | string;
76
- variant?: keyof typeof variants_3;
78
+ variant?: keyof typeof variants_4;
77
79
  };
78
80
 
79
81
  declare const brandingSVG: {
@@ -89,12 +91,18 @@ declare type ButtonProps = React.ComponentPropsWithRef<'button'> & {
89
91
  disabled?: boolean;
90
92
  icon?: IconName;
91
93
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
92
- variant?: keyof typeof variants_4;
94
+ variant?: keyof typeof variants_5;
93
95
  };
94
96
 
95
- export declare const Card: ({ actions, badge, checkbox, children, emphasis, header, icon, image, imagePosition, onClick, variant, }: CardProps) => JSX.Element;
97
+ export declare const Card: ({ actions, badge, checkbox, children, emphasis, header, icon, image, imagePosition, onClick, preview, variant, }: CardProps) => JSX.Element;
96
98
 
97
- declare type CardProps = DefaultCardProps | MinimalCardProps;
99
+ export declare type CardPreviewProps = {
100
+ children: React.ReactNode;
101
+ leading?: React.ReactNode;
102
+ trailing?: React.ReactNode;
103
+ };
104
+
105
+ export declare type CardProps = DefaultCardProps | MinimalCardProps;
98
106
 
99
107
  export declare const Checkbox: ({ checked, disabled, isLoading, label, onChange, ...props }: CheckboxProps) => JSX.Element;
100
108
 
@@ -127,7 +135,7 @@ export declare const Controls: ({ children, className, variant, ...props }: Cont
127
135
 
128
136
  declare type ControlsProps = React.HTMLAttributes<HTMLDivElement> & {
129
137
  children?: React.ReactNode;
130
- variant?: keyof typeof variants_5;
138
+ variant?: keyof typeof variants_6;
131
139
  };
132
140
 
133
141
  export declare const Croppable: ({ children, fill, height, image, label, onCroppableChange, onFileChange, onImageChange, onTransformChange, transform, standalone, }: CroppableProps) => JSX.Element;
@@ -159,6 +167,7 @@ declare type DefaultCardProps = BaseCardProps & {
159
167
  header?: React.ReactNode;
160
168
  image?: React.ReactNode;
161
169
  imagePosition?: 'top' | 'left';
170
+ preview?: CardPreviewProps;
162
171
  variant?: 'default';
163
172
  };
164
173
 
@@ -218,16 +227,18 @@ declare type DropzoneProps = {
218
227
  variant?: 'default' | 'minimal';
219
228
  };
220
229
 
221
- export declare const Editor: ({ autofocus, autolink, content, disabled, fill, files, inline, maxRows, minRows, onChange, onFilesChange, onSubmit, onUpload, placeholder, submitLabel, }: EditorProps) => JSX.Element;
230
+ export declare const Editor: ({ autofocus, autolink, content, disabled, errorMessage, fill, files, inline, invalid, maxRows, minRows, onChange, onFilesChange, onSubmit, onUpload, placeholder, required, submitLabel, }: EditorProps) => JSX.Element;
222
231
 
223
232
  export declare type EditorProps = {
224
233
  autofocus?: boolean;
225
234
  autolink?: boolean;
226
235
  content?: string;
227
236
  disabled?: boolean;
237
+ errorMessage?: string;
228
238
  fill?: boolean;
229
239
  files?: readonly File[];
230
240
  inline?: boolean;
241
+ invalid?: boolean;
231
242
  maxRows?: number;
232
243
  minRows?: number;
233
244
  onChange?: (html: string) => void;
@@ -235,6 +246,7 @@ export declare type EditorProps = {
235
246
  onSubmit?: () => Promise<void> | void;
236
247
  onUpload?: (files: FileList) => Promise<void> | void;
237
248
  placeholder?: string;
249
+ required?: boolean;
238
250
  submitLabel?: string;
239
251
  };
240
252
 
@@ -313,7 +325,7 @@ export declare const Header: ({ capitalize, children, variant }: HeaderProps) =>
313
325
  declare type HeaderProps = {
314
326
  capitalize?: boolean;
315
327
  children: React.ReactNode;
316
- variant?: keyof typeof variants_6;
328
+ variant?: keyof typeof variants_7;
317
329
  };
318
330
 
319
331
  export declare const Icon: ({ fill, gap, name, size, variant }: IconProps) => JSX.Element;
@@ -419,7 +431,11 @@ declare const iconPaths: {
419
431
  };
420
432
  menu: string;
421
433
  mobile: string;
422
- pencil: string;
434
+ paperclip: string;
435
+ pencil: {
436
+ filled: string;
437
+ outline: string;
438
+ };
423
439
  people: string;
424
440
  phone: string;
425
441
  plane: {
@@ -463,7 +479,7 @@ export declare type IconProps = {
463
479
  gap?: 'left' | 'none' | 'right';
464
480
  name: IconName;
465
481
  size?: keyof typeof sizes;
466
- variant?: keyof typeof variants_7;
482
+ variant?: keyof typeof variants_2;
467
483
  };
468
484
 
469
485
  export declare const Iframe: ({ accessibleLabel, autoResize, className, closeFullscreenLabel, fullscreenLabel, hasFullscreenView, loading, onLoad, referrerPolicy, sandbox, srcDoc, style, ...props }: IframeProps) => JSX.Element;
@@ -524,7 +540,7 @@ declare type LoadingProps = {
524
540
  variant?: 'default' | 'ping';
525
541
  };
526
542
 
527
- export declare const Menu: ({ items, menuAccessibleLabel, onItemSelect, position, triggerAccessibleLabel, }: MenuProps) => JSX.Element;
543
+ export declare const Menu: ({ inline, items, menuAccessibleLabel, onItemSelect, position, triggerAccessibleLabel, }: MenuProps) => JSX.Element;
528
544
 
529
545
  declare type MenuItem = {
530
546
  accessibleLabel?: string;
@@ -538,14 +554,15 @@ declare type MenuItem = {
538
554
  };
539
555
 
540
556
  declare type MenuProps = {
557
+ inline?: boolean;
541
558
  items: MenuItem[];
542
559
  menuAccessibleLabel?: string;
543
560
  onItemSelect?: (item: MenuItem) => void;
544
- position?: 'left' | 'right';
561
+ position?: 'auto' | 'left' | 'right';
545
562
  triggerAccessibleLabel?: string;
546
563
  };
547
564
 
548
- export declare const Message: ({ appearance, attachments, author, authorColor, authorImageUrl, authorRole, content, iconName, id, preview, timestamp, type, }: MessageOptions) => JSX.Element;
565
+ export declare const Message: ({ appearance, attachments, author, authorColor, authorImageUrl, authorRole, content, iconName, id, preview, timestamp, timestampText, type, }: MessageOptions) => JSX.Element;
549
566
 
550
567
  declare type MessageItem = MessageOptions;
551
568
 
@@ -561,6 +578,7 @@ export declare type MessageOptions = {
561
578
  id: string;
562
579
  preview?: boolean;
563
580
  timestamp?: Date | string;
581
+ timestampText?: React.ReactNode;
564
582
  type?: 'default' | 'minimal' | 'system' | 'user';
565
583
  };
566
584
 
@@ -586,6 +604,7 @@ declare type MinimalCardProps = BaseCardProps & {
586
604
  header: React.ReactNode;
587
605
  image?: never;
588
606
  imagePosition?: never;
607
+ preview?: never;
589
608
  variant: 'minimal';
590
609
  };
591
610
 
@@ -598,7 +617,11 @@ declare type NativeSelectProps = Omit<default_2.ComponentPropsWithoutRef<'select
598
617
 
599
618
  export declare const Nav: ({ animation, children, className, horizontal, variant, ...props }: NavProps) => JSX.Element;
600
619
 
601
- declare type NavProps = React.HTMLAttributes<HTMLElement> & {
620
+ export declare const NavLabel: ({ className, ...props }: NavLabelProps) => JSX.Element;
621
+
622
+ export declare type NavLabelProps = React.HTMLAttributes<HTMLSpanElement>;
623
+
624
+ export declare type NavProps = React.HTMLAttributes<HTMLElement> & {
602
625
  animation?: string;
603
626
  children?: React.ReactNode;
604
627
  className?: string;
@@ -614,7 +637,7 @@ declare type ObjectProps = Omit<ComponentPropsWithoutRef<'object'>, 'data' | 'ty
614
637
  url: string;
615
638
  };
616
639
 
617
- export declare const Popover: ({ children, position, triggerAccessibleLabel, triggerAriaHasPopup, triggerButtonContent, }: PopoverProps) => JSX.Element;
640
+ export declare const Popover: ({ children, inline, position, triggerAccessibleLabel, triggerAriaHasPopup, triggerButtonContent, }: PopoverProps) => JSX.Element;
618
641
 
619
642
  declare type PopoverCloseOptions = {
620
643
  restoreFocus?: boolean;
@@ -624,7 +647,8 @@ declare type PopoverInitialFocus = 'first' | 'last';
624
647
 
625
648
  declare type PopoverProps = {
626
649
  children: ReactNode | ((props: PopoverRenderProps) => ReactNode);
627
- position?: 'left' | 'right';
650
+ inline?: boolean;
651
+ position?: 'auto' | 'left' | 'right';
628
652
  triggerAccessibleLabel?: string;
629
653
  triggerAriaHasPopup?: AriaAttributes['aria-haspopup'];
630
654
  triggerButtonContent: ReactNode;
@@ -775,6 +799,10 @@ declare const variants: {
775
799
  };
776
800
 
777
801
  declare const variants_2: {
802
+ danger: string;
803
+ };
804
+
805
+ declare const variants_3: {
778
806
  default: string;
779
807
  highlight: string;
780
808
  info: string;
@@ -783,33 +811,29 @@ declare const variants_2: {
783
811
  warning: string;
784
812
  };
785
813
 
786
- declare const variants_3: {
814
+ declare const variants_4: {
787
815
  default: string;
788
816
  white: string;
789
817
  };
790
818
 
791
- declare const variants_4: {
819
+ declare const variants_5: {
792
820
  danger: string;
793
821
  primary: string;
794
822
  secondary: string;
795
823
  tertiary: string;
796
824
  };
797
825
 
798
- declare const variants_5: {
826
+ declare const variants_6: {
799
827
  default: string;
800
828
  fixed: string;
801
829
  inline: string;
802
830
  };
803
831
 
804
- declare const variants_6: {
832
+ declare const variants_7: {
805
833
  default: string;
806
834
  jumbo: string;
807
835
  };
808
836
 
809
- declare const variants_7: {
810
- danger: string;
811
- };
812
-
813
837
  declare const variants_8: {
814
838
  default: string;
815
839
  pills: string;
package/dist/index.js CHANGED
@@ -2,21 +2,21 @@ import { AppLink as e } from "./components/app-link/index.js";
2
2
  import { Aside as p } from "./components/aside/index.js";
3
3
  import { Avatar as x } from "./components/avatar/index.js";
4
4
  import { Badge as a } from "./components/badge/index.js";
5
- import { Banner as l } from "./components/banner/index.js";
5
+ import { Banner as i } from "./components/banner/index.js";
6
6
  import { Branding as n } from "./components/branding/index.js";
7
7
  import { Button as d } from "./components/button/index.js";
8
8
  import { Card as T } from "./components/card/index.js";
9
9
  import { Checkbox as c } from "./components/checkbox/index.js";
10
10
  import { Chip as F } from "./components/chip/index.js";
11
- import { Collapsible as S } from "./components/collapsible/index.js";
12
- import { Controls as B } from "./components/controls/index.js";
13
- import { Croppable as k } from "./components/croppable/index.js";
11
+ import { Collapsible as L } from "./components/collapsible/index.js";
12
+ import { Controls as h } from "./components/controls/index.js";
13
+ import { Croppable as B } from "./components/croppable/index.js";
14
14
  import { Dialog as A } from "./components/dialog/index.js";
15
15
  import { Dropdown as M } from "./components/dropdown/index.js";
16
16
  import { Dropzone as G } from "./components/dropzone/index.js";
17
- import { Editor as j } from "./components/editor/index.js";
18
- import { EmptyState as y } from "./components/empty-state/index.js";
19
- import { Fieldset as H } from "./components/fieldset/index.js";
17
+ import { Editor as P } from "./components/editor/index.js";
18
+ import { EmptyState as w } from "./components/empty-state/index.js";
19
+ import { Fieldset as z } from "./components/fieldset/index.js";
20
20
  import { Figure as O } from "./components/figure/index.js";
21
21
  import { File as q } from "./components/file/index.js";
22
22
  import { Footer as K } from "./components/footer/index.js";
@@ -27,48 +27,48 @@ import { Header as _ } from "./components/header/index.js";
27
27
  import { Icon as oo } from "./components/icon/index.js";
28
28
  import { Iframe as eo } from "./components/iframe/index.js";
29
29
  import { Image as po } from "./components/image/index.js";
30
- import { I as xo } from "./index-DFXqYJat.js";
30
+ import { I as xo } from "./index-BrGCs_7h.js";
31
31
  import { Link as ao } from "./components/link/index.js";
32
- import { List as lo } from "./components/list/index.js";
32
+ import { List as io } from "./components/list/index.js";
33
33
  import { Loading as no } from "./components/loading/index.js";
34
34
  import { Menu as bo } from "./components/menu/index.js";
35
35
  import { Message as Co } from "./components/message/index.js";
36
36
  import { Messages as uo } from "./components/messages/index.js";
37
- import { Nav as Io } from "./components/nav/index.js";
37
+ import { Nav as Io, NavLabel as Lo } from "./components/nav/index.js";
38
38
  import { Object as ho } from "./components/object/index.js";
39
- import { Popover as Lo } from "./components/popover/index.js";
40
- import { Portal as vo } from "./components/portal/index.js";
41
- import { Search as Do } from "./components/search/index.js";
42
- import { S as Eo } from "./index-B9xtLe2w.js";
39
+ import { Popover as Bo } from "./components/popover/index.js";
40
+ import { Portal as Ao } from "./components/portal/index.js";
41
+ import { Search as Mo } from "./components/search/index.js";
42
+ import { S as Go } from "./index-CRAuAHow.js";
43
43
  import { Sortable as Po } from "./components/sortable/index.js";
44
44
  import { Table as wo } from "./components/table/index.js";
45
45
  import { Textarea as zo } from "./components/textarea/index.js";
46
- import { Toast as No } from "./components/toast/index.js";
47
- import { Toasts as Wo } from "./components/toasts/index.js";
48
- import { Toggle as Jo } from "./components/toggle/index.js";
49
- import { Toolbar as Qo } from "./components/toolbar/index.js";
50
- import { Tooltip as Uo } from "./components/tooltip/index.js";
51
- import { Widget as Xo } from "./components/widget/index.js";
46
+ import { Toast as Oo } from "./components/toast/index.js";
47
+ import { Toasts as qo } from "./components/toasts/index.js";
48
+ import { Toggle as Ko } from "./components/toggle/index.js";
49
+ import { Toolbar as Ro } from "./components/toolbar/index.js";
50
+ import { Tooltip as Vo } from "./components/tooltip/index.js";
51
+ import { Widget as Yo } from "./components/widget/index.js";
52
52
  import './assets/index.css';export {
53
53
  e as AppLink,
54
54
  p as Aside,
55
55
  x as Avatar,
56
56
  a as Badge,
57
- l as Banner,
57
+ i as Banner,
58
58
  n as Branding,
59
59
  d as Button,
60
60
  T as Card,
61
61
  c as Checkbox,
62
62
  F as Chip,
63
- S as Collapsible,
64
- B as Controls,
65
- k as Croppable,
63
+ L as Collapsible,
64
+ h as Controls,
65
+ B as Croppable,
66
66
  A as Dialog,
67
67
  M as Dropdown,
68
68
  G as Dropzone,
69
- j as Editor,
70
- y as EmptyState,
71
- H as Fieldset,
69
+ P as Editor,
70
+ w as EmptyState,
71
+ z as Fieldset,
72
72
  O as Figure,
73
73
  q as File,
74
74
  K as Footer,
@@ -81,25 +81,26 @@ import './assets/index.css';export {
81
81
  po as Image,
82
82
  xo as Input,
83
83
  ao as Link,
84
- lo as List,
84
+ io as List,
85
85
  no as Loading,
86
86
  bo as Menu,
87
87
  Co as Message,
88
88
  uo as Messages,
89
89
  Io as Nav,
90
+ Lo as NavLabel,
90
91
  ho as Object,
91
- Lo as Popover,
92
- vo as Portal,
93
- Do as Search,
94
- Eo as Select,
92
+ Bo as Popover,
93
+ Ao as Portal,
94
+ Mo as Search,
95
+ Go as Select,
95
96
  Po as Sortable,
96
97
  wo as Table,
97
98
  zo as Textarea,
98
- No as Toast,
99
- Wo as Toasts,
100
- Jo as Toggle,
101
- Qo as Toolbar,
102
- Uo as Tooltip,
103
- Xo as Widget
99
+ Oo as Toast,
100
+ qo as Toasts,
101
+ Ko as Toggle,
102
+ Ro as Toolbar,
103
+ Vo as Tooltip,
104
+ Yo as Widget
104
105
  };
105
106
  //# sourceMappingURL=index.js.map
package/dist/tokens.json CHANGED
@@ -358,7 +358,7 @@
358
358
  },
359
359
  "com.solibo": {
360
360
  "packageName": "@solibo/solibo-ui",
361
- "packageVersion": "1.0.3"
361
+ "packageVersion": "1.0.5"
362
362
  }
363
363
  },
364
364
  "$name": "Solibo UI Tokens",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "pnpm run tokens:build && vite build --watch",