@solibo/solibo-ui 0.2.14 → 0.2.15

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 (131) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index10.css +0 -1
  3. package/dist/assets/index11.css +1 -1
  4. package/dist/assets/index12.css +1 -1
  5. package/dist/assets/index13.css +1 -1
  6. package/dist/assets/index14.css +1 -1
  7. package/dist/assets/index15.css +1 -1
  8. package/dist/assets/index16.css +1 -1
  9. package/dist/assets/index17.css +1 -1
  10. package/dist/assets/index18.css +1 -1
  11. package/dist/assets/index19.css +1 -1
  12. package/dist/assets/index2.css +1 -1
  13. package/dist/assets/index20.css +1 -0
  14. package/dist/assets/index21.css +1 -0
  15. package/dist/assets/index22.css +1 -0
  16. package/dist/assets/index23.css +1 -0
  17. package/dist/assets/index24.css +1 -0
  18. package/dist/assets/index25.css +1 -0
  19. package/dist/assets/index26.css +1 -0
  20. package/dist/assets/index27.css +1 -0
  21. package/dist/assets/index3.css +1 -1
  22. package/dist/assets/index4.css +1 -1
  23. package/dist/assets/index5.css +1 -1
  24. package/dist/assets/index6.css +1 -1
  25. package/dist/assets/index7.css +1 -1
  26. package/dist/assets/index8.css +1 -1
  27. package/dist/assets/index9.css +1 -1
  28. package/dist/assets/styles.css +1 -0
  29. package/dist/components/accordion/index.cjs +1 -1
  30. package/dist/components/accordion/index.cjs.map +1 -1
  31. package/dist/components/accordion/index.js +14 -28
  32. package/dist/components/accordion/index.js.map +1 -1
  33. package/dist/components/aside/index.cjs +1 -1
  34. package/dist/components/aside/index.cjs.map +1 -1
  35. package/dist/components/aside/index.js +19 -17
  36. package/dist/components/aside/index.js.map +1 -1
  37. package/dist/components/banner/index.cjs +1 -1
  38. package/dist/components/banner/index.js +1 -1
  39. package/dist/components/branding/index.cjs +1 -1
  40. package/dist/components/branding/index.js +1 -1
  41. package/dist/components/button/index.cjs +1 -1
  42. package/dist/components/button/index.cjs.map +1 -1
  43. package/dist/components/button/index.js +49 -31
  44. package/dist/components/button/index.js.map +1 -1
  45. package/dist/components/card/index.cjs +1 -1
  46. package/dist/components/card/index.cjs.map +1 -1
  47. package/dist/components/card/index.js +34 -20
  48. package/dist/components/card/index.js.map +1 -1
  49. package/dist/components/checkbox/index.cjs +2 -0
  50. package/dist/components/checkbox/index.cjs.map +1 -0
  51. package/dist/components/checkbox/index.js +32 -0
  52. package/dist/components/checkbox/index.js.map +1 -0
  53. package/dist/components/component/index.cjs +1 -1
  54. package/dist/components/component/index.js +9 -9
  55. package/dist/components/dialog/index.cjs +1 -1
  56. package/dist/components/dialog/index.cjs.map +1 -1
  57. package/dist/components/dialog/index.js +16 -17
  58. package/dist/components/dialog/index.js.map +1 -1
  59. package/dist/components/document/index.cjs +2 -0
  60. package/dist/components/document/index.cjs.map +1 -0
  61. package/dist/components/document/index.js +53 -0
  62. package/dist/components/document/index.js.map +1 -0
  63. package/dist/components/dropdown/index.cjs +1 -1
  64. package/dist/components/dropdown/index.cjs.map +1 -1
  65. package/dist/components/dropdown/index.js +20 -15
  66. package/dist/components/dropdown/index.js.map +1 -1
  67. package/dist/components/dropzone/index.cjs +2 -0
  68. package/dist/components/dropzone/index.cjs.map +1 -0
  69. package/dist/components/dropzone/index.js +63 -0
  70. package/dist/components/dropzone/index.js.map +1 -0
  71. package/dist/components/editor/index.cjs +2 -2
  72. package/dist/components/editor/index.js +2 -2
  73. package/dist/components/figure/index.cjs +1 -1
  74. package/dist/components/figure/index.js +3 -3
  75. package/dist/components/footer/index.cjs +2 -0
  76. package/dist/components/footer/index.cjs.map +1 -0
  77. package/dist/components/footer/index.js +15 -0
  78. package/dist/components/footer/index.js.map +1 -0
  79. package/dist/components/form/index.cjs +1 -1
  80. package/dist/components/form/index.cjs.map +1 -1
  81. package/dist/components/form/index.js +5 -5
  82. package/dist/components/form/index.js.map +1 -1
  83. package/dist/components/grid/index.cjs +2 -0
  84. package/dist/components/grid/index.cjs.map +1 -0
  85. package/dist/components/grid/index.js +140 -0
  86. package/dist/components/grid/index.js.map +1 -0
  87. package/dist/components/header/index.cjs +1 -1
  88. package/dist/components/header/index.cjs.map +1 -1
  89. package/dist/components/header/index.js +11 -10
  90. package/dist/components/header/index.js.map +1 -1
  91. package/dist/components/icon/index.cjs +1 -1
  92. package/dist/components/icon/index.cjs.map +1 -1
  93. package/dist/components/icon/index.js +53 -31
  94. package/dist/components/icon/index.js.map +1 -1
  95. package/dist/components/input/index.cjs +1 -1
  96. package/dist/components/input/index.cjs.map +1 -1
  97. package/dist/components/input/index.js +13 -13
  98. package/dist/components/input/index.js.map +1 -1
  99. package/dist/components/layout/index.cjs +2 -0
  100. package/dist/components/layout/index.cjs.map +1 -0
  101. package/dist/components/layout/index.js +17 -0
  102. package/dist/components/layout/index.js.map +1 -0
  103. package/dist/components/link/index.cjs +1 -1
  104. package/dist/components/link/index.js +9 -9
  105. package/dist/components/list/index.cjs +1 -1
  106. package/dist/components/list/index.js +5 -5
  107. package/dist/components/loading/index.cjs +2 -0
  108. package/dist/components/loading/index.cjs.map +1 -0
  109. package/dist/components/loading/index.js +99 -0
  110. package/dist/components/loading/index.js.map +1 -0
  111. package/dist/components/nav/index.cjs +1 -1
  112. package/dist/components/nav/index.cjs.map +1 -1
  113. package/dist/components/nav/index.js +92 -24
  114. package/dist/components/nav/index.js.map +1 -1
  115. package/dist/components/picture/index.cjs +2 -0
  116. package/dist/components/picture/index.cjs.map +1 -0
  117. package/dist/components/picture/index.js +150 -0
  118. package/dist/components/picture/index.js.map +1 -0
  119. package/dist/components/toggle/index.cjs +2 -0
  120. package/dist/components/toggle/index.cjs.map +1 -0
  121. package/dist/components/toggle/index.js +39 -0
  122. package/dist/components/toggle/index.js.map +1 -0
  123. package/dist/index.cjs +1 -1
  124. package/dist/index.d.ts +153 -21
  125. package/dist/index.js +40 -22
  126. package/dist/index.js.map +1 -1
  127. package/dist/styles.module-B_pXIacc.cjs +2 -0
  128. package/dist/styles.module-B_pXIacc.cjs.map +1 -0
  129. package/dist/styles.module-BhmNqlYd.js +7 -0
  130. package/dist/styles.module-BhmNqlYd.js.map +1 -0
  131. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
+ import { default as default_2 } from 'react';
1
2
  import { DetailedHTMLProps } from 'react';
3
+ import { DragEvent as DragEvent_2 } from 'react';
2
4
  import { ForwardRefExoticComponent } from 'react';
3
5
  import { InputHTMLAttributes } from 'react';
4
6
  import { JSX } from 'react/jsx-runtime';
7
+ import { ReactNode } from 'react';
5
8
  import { RefAttributes } from 'react';
6
9
 
7
10
  export declare const Accordion: ({ children, icon, label, open }: AccordionProps) => JSX.Element;
@@ -55,29 +58,44 @@ declare const brandingSVG: {
55
58
  logo: string;
56
59
  };
57
60
 
58
- export declare const Button: ({ children, className, disabled, label, title, icon, iconOnly, type, variant, ...props }: ButtonProps) => JSX.Element;
61
+ export declare const Button: ({ children, className, disabled, icon, label, loading, onClick, title, type, variant, ...props }: ButtonProps) => JSX.Element;
59
62
 
60
63
  declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
61
64
  children?: React.ReactNode;
62
65
  className?: string;
63
66
  disabled?: boolean;
67
+ icon?: IconName;
64
68
  label?: string;
69
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
70
+ loading?: boolean;
65
71
  title?: string;
66
- iconOnly?: boolean;
67
- icon?: IconName;
68
- variant?: keyof typeof variants_3;
69
72
  type?: 'button' | 'submit' | 'reset';
73
+ variant?: keyof typeof variants_3;
70
74
  };
71
75
 
72
- export declare const Card: ({ ...props }: CardProps) => JSX.Element;
76
+ export declare const Card: ({ children, contentHtml, contentText, draft, headerText, image, onClick, onDrop, subHeaderText, }: CardProps) => JSX.Element;
73
77
 
74
78
  declare type CardProps = {
75
- image?: React.ReactNode;
76
- headerText?: string;
77
- subHeaderText?: string;
79
+ children?: ReactNode;
80
+ contentHtml?: string;
78
81
  contentText?: string;
79
- children: React.ReactNode;
82
+ draft?: boolean;
83
+ headerText?: string;
84
+ image?: ReactNode;
80
85
  onClick?: () => void;
86
+ onDrop?: (event: DragEvent_2<HTMLElement>) => void;
87
+ subHeaderText?: string;
88
+ };
89
+
90
+ export declare const Checkbox: ({ isChecked, isDefaultChecked, isDisabled, isLoading, label, onChange, ...props }: CheckboxProps) => JSX.Element;
91
+
92
+ declare type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
93
+ isChecked?: boolean;
94
+ isDefaultChecked?: boolean;
95
+ isDisabled?: boolean;
96
+ isLoading?: boolean;
97
+ label?: string;
98
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
81
99
  };
82
100
 
83
101
  export declare const Dialog: ({ button, children, message, title, ...props }: DialogProps) => JSX.Element;
@@ -89,14 +107,38 @@ declare type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {
89
107
  title?: string;
90
108
  };
91
109
 
92
- export declare const Dropdown: ({ children, label, placeholder, ...props }: DropdownProps) => JSX.Element;
110
+ declare type DivProps = Omit<default_2.HTMLAttributes<HTMLDivElement>, 'children'>;
111
+
112
+ declare const Document_2: ({ name, onClick, onDelete }: DocumentProps) => JSX.Element;
113
+ export { Document_2 as Document }
93
114
 
94
- declare type DropdownProps = {
115
+ declare type DocumentProps = {
116
+ name: string;
117
+ onClick?: () => void;
118
+ onDelete?: () => void;
119
+ };
120
+
121
+ export declare const Dropdown: ({ children, inline, label, placeholder, ...props }: DropdownProps) => JSX.Element;
122
+
123
+ declare type DropdownProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
95
124
  children?: React.ReactNode;
125
+ inline?: boolean;
96
126
  label?: string;
97
127
  placeholder?: string;
98
128
  };
99
129
 
130
+ export declare const Dropzone: (props: DropzoneProps) => JSX.Element;
131
+
132
+ declare type DropzoneProps = {
133
+ allowDirectoryUpload?: boolean;
134
+ inputId?: string;
135
+ isMultiple?: boolean;
136
+ label?: string;
137
+ maxFileSizeMB?: number;
138
+ mimeTypes?: string[];
139
+ onUpload: (uploadContent: File[] | FileList) => void;
140
+ };
141
+
100
142
  export declare const Editor: ({ autofocus, autolink, content, inline, onChange, }: EditorProps) => JSX.Element;
101
143
 
102
144
  declare type EditorProps = {
@@ -114,51 +156,111 @@ declare type FigureProps = {
114
156
  label?: string;
115
157
  };
116
158
 
159
+ export declare const Footer: ({ children, ...props }: FooterProps) => JSX.Element;
160
+
161
+ declare type FooterProps = {
162
+ children?: React.ReactNode;
163
+ };
164
+
117
165
  export declare const Form: ({ animation, children, inline, ...props }: FormProps) => JSX.Element;
118
166
 
119
- declare type FormProps = {
167
+ declare type FormProps = React.FormHTMLAttributes<HTMLFormElement> & {
120
168
  animation?: AnimationName;
121
169
  children?: React.ReactNode;
122
170
  inline?: boolean;
123
171
  };
124
172
 
125
- export declare const Header: ({ children, size, label, subtitle }: HeaderProps) => JSX.Element;
173
+ export declare const Grid: ({ canRearrange, className, columns, items, onRearrange, ...props }: GridProps) => JSX.Element;
174
+
175
+ declare type GridItem = {
176
+ component: default_2.ReactNode;
177
+ id: number;
178
+ };
179
+
180
+ declare type GridProps = DivProps & {
181
+ canRearrange?: boolean;
182
+ columns?: number;
183
+ items: GridItem[];
184
+ onRearrange?: (items: Array<{
185
+ id: number;
186
+ index: number;
187
+ }>) => void;
188
+ };
189
+
190
+ export declare const Header: ({ children, size, label, ...props }: HeaderProps) => JSX.Element;
126
191
 
127
192
  declare type HeaderProps = {
128
193
  children?: React.ReactNode;
129
- label: string;
194
+ label?: string;
130
195
  size?: 1 | 2 | 3;
131
- subtitle?: string;
196
+ superHeader?: string;
197
+ subHeader?: string;
132
198
  };
133
199
 
134
- export declare const Icon: ({ name, size, variant }: IconProps) => JSX.Element;
200
+ export declare const Icon: ({ name, size, variant, loading, }: IconProps) => JSX.Element;
135
201
 
136
202
  declare type IconName = keyof typeof iconPaths;
137
203
 
138
204
  declare const iconPaths: {
139
205
  bold: string;
206
+ buildings: string;
207
+ card: string;
140
208
  chevron: string;
209
+ clipboard: string;
210
+ gear: string;
211
+ document: string;
141
212
  home: string;
142
213
  italic: string;
143
214
  link: string;
144
215
  list: string;
216
+ pencil: string;
217
+ people: string;
218
+ phone: string;
219
+ plus: string;
145
220
  search: string;
221
+ toDocument: string;
222
+ upload: string;
223
+ user: string;
146
224
  x: string;
147
225
  };
148
226
 
149
227
  declare type IconProps = {
150
- variant?: keyof typeof variants_4;
151
228
  name: IconName;
152
229
  size?: keyof typeof sizes;
230
+ variant?: keyof typeof variants_4;
231
+ loading?: boolean;
232
+ };
233
+
234
+ declare type ImageProps = {
235
+ alt: string;
236
+ canEdit: boolean;
237
+ caption?: string;
238
+ handleUpload?: (imageFile: File) => void;
239
+ inputId?: string;
240
+ isUploading?: boolean;
241
+ minimumImagePixelHeight?: number;
242
+ minimumImagePixelWidth?: number;
243
+ placeholderSrc?: string;
244
+ sizes?: string;
245
+ source?: string;
246
+ srcSet?: string;
247
+ variant?: keyof typeof variants_6;
153
248
  };
154
249
 
155
250
  export declare const Input: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
156
251
  disabled?: boolean;
157
252
  label?: string;
158
253
  placeholder?: string;
159
- type?: "email" | "number" | "password" | "search" | "tel" | "text";
254
+ type?: "datetime-local" | "email" | "number" | "password" | "radio" | "search" | "tel" | "text";
160
255
  } & RefAttributes<HTMLInputElement>>;
161
256
 
257
+ export declare const Layout: ({ children, feature, ...props }: LayoutProps) => JSX.Element;
258
+
259
+ declare type LayoutProps = {
260
+ children: React.ReactNode;
261
+ feature: 'home';
262
+ };
263
+
162
264
  export declare const Link: ({ children, className, to, label, ...props }: LinkProps) => JSX.Element;
163
265
 
164
266
  declare type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -175,23 +277,46 @@ declare type ListProps = {
175
277
  className?: string;
176
278
  };
177
279
 
178
- export declare const Nav: ({ animation, children, horizontal, variant }: NavProps) => JSX.Element;
280
+ export declare const Nav: ({ animation, children, horizontal, variant, ...props }: NavProps) => JSX.Element;
179
281
 
180
282
  declare type NavProps = {
181
283
  animation?: AnimationName;
182
284
  children?: React.ReactNode;
183
285
  horizontal?: boolean;
286
+ isResultsPage?: boolean;
287
+ isSearchable?: boolean;
288
+ onSearchSubmit?: (value: string) => void;
184
289
  variant?: keyof typeof variants_5;
185
290
  };
186
291
 
292
+ export declare const PageLoader: ({ size }: PageLoaderProps) => JSX.Element;
293
+
294
+ declare type PageLoaderProps = {
295
+ size?: number;
296
+ };
297
+
298
+ export declare const Picture: ({ source, alt, variant, ...props }: ImageProps) => JSX.Element;
299
+
187
300
  declare const sizes: {
188
- medium: string;
189
301
  large: string;
302
+ medium: string;
190
303
  small: string;
191
304
  };
192
305
 
306
+ export declare const Toggle: ({ isChecked, isDefaultChecked, isDisabled, isLoading, label, onChange, }: ToggleProps) => JSX.Element;
307
+
308
+ declare type ToggleProps = {
309
+ isChecked?: boolean;
310
+ isDefaultChecked?: boolean;
311
+ isDisabled?: boolean;
312
+ isLoading?: boolean;
313
+ label?: string;
314
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
315
+ };
316
+
193
317
  declare const variants: {
194
318
  default: string;
319
+ right: string;
195
320
  'site-wide': string;
196
321
  };
197
322
 
@@ -211,15 +336,22 @@ declare const variants_3: {
211
336
  };
212
337
 
213
338
  declare const variants_4: {
339
+ clickable: string;
214
340
  default: string;
341
+ deletable: string;
215
342
  dialog: string;
216
343
  white: string;
217
344
  };
218
345
 
219
346
  declare const variants_5: {
220
347
  default: string;
221
- tabs: string;
222
348
  pills: string;
349
+ tabs: string;
350
+ };
351
+
352
+ declare const variants_6: {
353
+ default: string;
354
+ profile: string;
223
355
  };
224
356
 
225
357
  export { }
package/dist/index.js CHANGED
@@ -1,38 +1,56 @@
1
1
  import { Accordion as e, AccordionGroup as t } from "./components/accordion/index.js";
2
2
  import { Aside as m } from "./components/aside/index.js";
3
- import { Banner as x } from "./components/banner/index.js";
3
+ import { Banner as f } from "./components/banner/index.js";
4
4
  import { Branding as i } from "./components/branding/index.js";
5
5
  import { Button as a } from "./components/button/index.js";
6
6
  import { Card as u } from "./components/card/index.js";
7
+ import { Checkbox as D } from "./components/checkbox/index.js";
7
8
  import { Dialog as A } from "./components/dialog/index.js";
8
- import { Dropdown as s } from "./components/dropdown/index.js";
9
- import { Editor as F } from "./components/editor/index.js";
10
- import { Figure as L } from "./components/figure/index.js";
11
- import { Form as l } from "./components/form/index.js";
12
- import { Header as w } from "./components/header/index.js";
13
- import { Icon as E } from "./components/icon/index.js";
14
- import { Input as H } from "./components/input/index.js";
15
- import { Link as b } from "./components/link/index.js";
16
- import { List as j } from "./components/list/index.js";
17
- import { Nav as y } from "./components/nav/index.js";
9
+ import { Document as F } from "./components/document/index.js";
10
+ import { Dropdown as l } from "./components/dropdown/index.js";
11
+ import { Dropzone as C } from "./components/dropzone/index.js";
12
+ import { Editor as I } from "./components/editor/index.js";
13
+ import { Figure as b } from "./components/figure/index.js";
14
+ import { Footer as v } from "./components/footer/index.js";
15
+ import { Form as y } from "./components/form/index.js";
16
+ import { Grid as E } from "./components/grid/index.js";
17
+ import { Header as N } from "./components/header/index.js";
18
+ import { Icon as j } from "./components/icon/index.js";
19
+ import { Input as J } from "./components/input/index.js";
20
+ import { Layout as M } from "./components/layout/index.js";
21
+ import { Link as Q } from "./components/link/index.js";
22
+ import { List as S } from "./components/list/index.js";
23
+ import { Nav as V } from "./components/nav/index.js";
24
+ import { PageLoader as X } from "./components/loading/index.js";
25
+ import { Picture as Z } from "./components/picture/index.js";
26
+ import { Toggle as $ } from "./components/toggle/index.js";
18
27
  import './assets/index.css';export {
19
28
  e as Accordion,
20
29
  t as AccordionGroup,
21
30
  m as Aside,
22
- x as Banner,
31
+ f as Banner,
23
32
  i as Branding,
24
33
  a as Button,
25
34
  u as Card,
35
+ D as Checkbox,
26
36
  A as Dialog,
27
- s as Dropdown,
28
- F as Editor,
29
- L as Figure,
30
- l as Form,
31
- w as Header,
32
- E as Icon,
33
- H as Input,
34
- b as Link,
35
- j as List,
36
- y as Nav
37
+ F as Document,
38
+ l as Dropdown,
39
+ C as Dropzone,
40
+ I as Editor,
41
+ b as Figure,
42
+ v as Footer,
43
+ y as Form,
44
+ E as Grid,
45
+ N as Header,
46
+ j as Icon,
47
+ J as Input,
48
+ M as Layout,
49
+ Q as Link,
50
+ S as List,
51
+ V as Nav,
52
+ X as PageLoader,
53
+ Z as Picture,
54
+ $ as Toggle
37
55
  };
38
56
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";require('./assets/styles.css');const s="_spinner_gsv2s_1",n={spinner:s};exports.loadingStyles=n;
2
+ //# sourceMappingURL=styles.module-B_pXIacc.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.module-B_pXIacc.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import './assets/styles.css';const n = "_spinner_gsv2s_1", s = {
2
+ spinner: n
3
+ };
4
+ export {
5
+ s as l
6
+ };
7
+ //# sourceMappingURL=styles.module-BhmNqlYd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.module-BhmNqlYd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite build --watch",