@studiocms/ui 1.0.0-beta.3 → 1.0.0-beta.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.
@@ -47,6 +47,9 @@ declare module 'studiocms:ui/components/radiogroup' {
47
47
 
48
48
  declare module 'studiocms:ui/components/toaster' {
49
49
  export const Toaster: typeof import('./components/Toast/Toaster.astro').default;
50
+ }
51
+
52
+ declare module 'studiocms:ui/components/toaster/client' {
50
53
  export const toast: typeof import('./components/Toast/toast.js').toast;
51
54
  }
52
55
 
@@ -56,7 +59,9 @@ declare module 'studiocms:ui/components/card' {
56
59
 
57
60
  declare module 'studiocms:ui/components/modal' {
58
61
  export const Modal: typeof import('./components/Modal/Modal.astro').default;
62
+ }
59
63
 
64
+ declare module 'studiocms:ui/components/modal/client' {
60
65
  export class ModalHelper {
61
66
  private element;
62
67
  private cancelButton;
@@ -111,9 +116,21 @@ declare module 'studiocms:ui/components/select' {
111
116
  export const SearchSelect: typeof import('./components/SearchSelect/SearchSelect.astro').default;
112
117
  }
113
118
 
119
+ declare module 'studiocms:ui/components/select/script' {
120
+ export type SelectOption = {
121
+ value: string;
122
+ label: string;
123
+ disabled?: boolean;
124
+ };
125
+
126
+ export const SUISelectElement: typeof import('./components/Select/select.js').SUISelectElement;
127
+ }
128
+
114
129
  declare module 'studiocms:ui/components/dropdown' {
115
130
  export const Dropdown: typeof import('./components/Dropdown/Dropdown.astro').default;
131
+ }
116
132
 
133
+ declare module 'studiocms:ui/components/dropdown/client' {
117
134
  export class DropdownHelper {
118
135
  private container;
119
136
  private toggleEl;
@@ -178,7 +195,9 @@ declare module 'studiocms:ui/components/footer' {
178
195
 
179
196
  declare module 'studiocms:ui/components/progress' {
180
197
  export const Progress: typeof import('./components/Progress/Progress.astro').default;
198
+ }
181
199
 
200
+ declare module 'studiocms:ui/components/progress/client' {
182
201
  export class ProgressHelper {
183
202
  private bar;
184
203
  private progress;
@@ -205,7 +224,9 @@ declare module 'studiocms:ui/components/accordion' {
205
224
  declare module 'studiocms:ui/components/sidebar' {
206
225
  export const Sidebar: typeof import('./components/Sidebar/Single.astro').default;
207
226
  export const DoubleSidebar: typeof import('./components/Sidebar/Double.astro').default;
227
+ }
208
228
 
229
+ declare module 'studiocms:ui/components/sidebar/client' {
209
230
  export class SingleSidebarHelper {
210
231
  private sidebar;
211
232
  private sidebarToggle?;
@@ -326,10 +347,12 @@ declare module 'studiocms:ui/components' {
326
347
  export const Textarea: typeof import('./components/Textarea/Textarea.astro').default;
327
348
  export const Toaster: typeof import('./components/Toast/Toaster.astro').default;
328
349
  export const Tooltip: typeof import('./components/Tooltip/Tooltip.astro').default;
329
- export const toast: typeof import('./components/Toast/toast.js').toast;
330
350
  export const Toggle: typeof import('./components/Toggle/Toggle.astro').default;
331
351
  export const User: typeof import('./components/User/User.astro').default;
352
+ }
332
353
 
354
+ declare module 'studiocms:ui/components/client' {
355
+ export const toast: typeof import('./components/Toast/toast.js').toast;
333
356
  export class ModalHelper {
334
357
  private element;
335
358
  private cancelButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiocms/ui",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,7 +72,8 @@
72
72
  "@types/node": "^24.5.2"
73
73
  },
74
74
  "scripts": {
75
- "build": "buildkit build 'src/**/*.{ts,d.ts,css,astro,stub}' --tsconfig=tsconfig.build.json",
75
+ "delete:dist": "node -e \"import { rmSync } from 'fs'; rmSync('./dist', { recursive: true, force: true });\"",
76
+ "build": "pnpm delete:dist && buildkit build 'src/**/*.{ts,d.ts,css,astro,stub}' --tsconfig=tsconfig.build.json",
76
77
  "dev": "buildkit dev 'src/**/*.{ts,d.ts,css,astro,stub}' --tsconfig=tsconfig.build.json",
77
78
  "playwright:setup": "pnpm exec playwright install --with-deps",
78
79
  "test-server": "pnpm --filter @test-fixture/server dev",