@dust-tt/sparkle 0.5.6 → 0.5.8-rc-1

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.
@@ -41,12 +41,12 @@ declare const animation: {
41
41
  to: number[];
42
42
  ti: number[];
43
43
  } | {
44
+ i?: undefined;
45
+ o?: undefined;
44
46
  to?: undefined;
45
47
  ti?: undefined;
46
48
  t: number;
47
49
  s: number[];
48
- i?: undefined;
49
- o?: undefined;
50
50
  })[];
51
51
  ix: number;
52
52
  l: number;
@@ -68,6 +68,19 @@ declare const animation: {
68
68
  shapes: {
69
69
  ty: string;
70
70
  it: ({
71
+ o?: undefined;
72
+ c?: undefined;
73
+ bm?: undefined;
74
+ p?: undefined;
75
+ a?: undefined;
76
+ s?: undefined;
77
+ sk?: undefined;
78
+ sa?: undefined;
79
+ r?: undefined;
80
+ w?: undefined;
81
+ lc?: undefined;
82
+ lj?: undefined;
83
+ ml?: undefined;
71
84
  ind: number;
72
85
  ty: string;
73
86
  ix: number;
@@ -90,6 +103,8 @@ declare const animation: {
90
103
  c: boolean;
91
104
  }[];
92
105
  } | {
106
+ i?: undefined;
107
+ o?: undefined;
93
108
  t: number;
94
109
  s: {
95
110
  i: number[][];
@@ -97,28 +112,22 @@ declare const animation: {
97
112
  v: number[][];
98
113
  c: boolean;
99
114
  }[];
100
- i?: undefined;
101
- o?: undefined;
102
115
  })[];
103
116
  ix: number;
104
117
  };
105
118
  nm: string;
106
119
  mn: string;
107
120
  hd: boolean;
108
- o?: undefined;
109
- c?: undefined;
110
- w?: undefined;
111
- lc?: undefined;
112
- lj?: undefined;
113
- ml?: undefined;
114
- bm?: undefined;
121
+ } | {
115
122
  p?: undefined;
116
123
  a?: undefined;
117
124
  s?: undefined;
118
- r?: undefined;
119
125
  sk?: undefined;
120
126
  sa?: undefined;
121
- } | {
127
+ ix?: undefined;
128
+ r?: undefined;
129
+ ind?: undefined;
130
+ ks?: undefined;
122
131
  ty: string;
123
132
  c: {
124
133
  a: number;
@@ -142,16 +151,19 @@ declare const animation: {
142
151
  nm: string;
143
152
  mn: string;
144
153
  hd: boolean;
145
- ind?: undefined;
146
- ix?: undefined;
147
- ks?: undefined;
154
+ } | {
148
155
  p?: undefined;
149
156
  a?: undefined;
150
157
  s?: undefined;
151
- r?: undefined;
152
158
  sk?: undefined;
153
159
  sa?: undefined;
154
- } | {
160
+ ix?: undefined;
161
+ ind?: undefined;
162
+ ks?: undefined;
163
+ w?: undefined;
164
+ lc?: undefined;
165
+ lj?: undefined;
166
+ ml?: undefined;
155
167
  ty: string;
156
168
  c: {
157
169
  a: number;
@@ -172,10 +184,10 @@ declare const animation: {
172
184
  t: number;
173
185
  s: number[];
174
186
  } | {
175
- t: number;
176
- s: number[];
177
187
  i?: undefined;
178
188
  o?: undefined;
189
+ t: number;
190
+ s: number[];
179
191
  })[];
180
192
  ix: number;
181
193
  };
@@ -184,19 +196,18 @@ declare const animation: {
184
196
  nm: string;
185
197
  mn: string;
186
198
  hd: boolean;
187
- ind?: undefined;
199
+ } | {
200
+ c?: undefined;
201
+ bm?: undefined;
202
+ mn?: undefined;
203
+ hd?: undefined;
188
204
  ix?: undefined;
205
+ ind?: undefined;
189
206
  ks?: undefined;
190
207
  w?: undefined;
191
208
  lc?: undefined;
192
209
  lj?: undefined;
193
210
  ml?: undefined;
194
- p?: undefined;
195
- a?: undefined;
196
- s?: undefined;
197
- sk?: undefined;
198
- sa?: undefined;
199
- } | {
200
211
  ty: string;
201
212
  p: {
202
213
  a: number;
@@ -234,17 +245,6 @@ declare const animation: {
234
245
  ix: number;
235
246
  };
236
247
  nm: string;
237
- ind?: undefined;
238
- ix?: undefined;
239
- ks?: undefined;
240
- c?: undefined;
241
- w?: undefined;
242
- lc?: undefined;
243
- lj?: undefined;
244
- ml?: undefined;
245
- bm?: undefined;
246
- mn?: undefined;
247
- hd?: undefined;
248
248
  })[];
249
249
  nm: string;
250
250
  np: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.5.6",
3
+ "version": "0.5.8-rc-1",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
6
6
  "tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",
@@ -212,7 +212,7 @@ const CardActions = React.forwardRef<
212
212
  <div
213
213
  ref={ref}
214
214
  className={cn(
215
- "s-absolute s-right-2 s-top-2 sm:s-opacity-0 s-transition-opacity",
215
+ "s-absolute s-right-2 s-top-2 s-transition-opacity sm:s-opacity-0",
216
216
  "group-focus-within/card:s-opacity-100 group-hover/card:s-opacity-100"
217
217
  )}
218
218
  {...props}
@@ -182,7 +182,7 @@ const DialogContainer = ({
182
182
  );
183
183
 
184
184
  const scrollableContent = (
185
- <ScrollArea className="s-w-full s-flex-grow">
185
+ <ScrollArea className="s-min-h-0 s-w-full s-flex-grow">
186
186
  <div
187
187
  className={cn(
188
188
  contentStyles,
@@ -197,7 +197,7 @@ const DialogContainer = ({
197
197
 
198
198
  if (fixedContent) {
199
199
  return (
200
- <div className="s-flex s-flex-grow s-flex-col s-overflow-hidden">
200
+ <div className="s-flex s-min-h-0 s-flex-grow s-flex-col s-overflow-hidden">
201
201
  <div className={cn(contentStyles, "s-flex-none")}>{fixedContent}</div>
202
202
  <Separator />
203
203
  {scrollableContent}
@@ -68,7 +68,8 @@ const NavigationList = React.forwardRef<
68
68
  NavigationList.displayName = "NavigationList";
69
69
 
70
70
  interface NavigationListItemProps
71
- extends React.HTMLAttributes<HTMLDivElement>,
71
+ extends
72
+ React.HTMLAttributes<HTMLDivElement>,
72
73
  Omit<LinkWrapperProps, "children" | "className"> {
73
74
  selected?: boolean;
74
75
  label?: string;
@@ -174,8 +175,7 @@ const NavigationListItem = React.forwardRef<
174
175
  );
175
176
  NavigationListItem.displayName = "NavigationListItem";
176
177
 
177
- interface NavigationListItemActionProps
178
- extends React.HTMLAttributes<HTMLDivElement> {
178
+ interface NavigationListItemActionProps extends React.HTMLAttributes<HTMLDivElement> {
179
179
  showOnHover?: boolean;
180
180
  }
181
181
 
@@ -223,8 +223,7 @@ const labelStyles = cva(
223
223
  "s-flex s-items-center s-justify-between s-gap-2 s-pt-4 s-pb-2 s-heading-xs s-whitespace-nowrap s-overflow-hidden s-text-ellipsis"
224
224
  );
225
225
 
226
- interface NavigationListLabelButtonProps
227
- extends React.ButtonHTMLAttributes<HTMLButtonElement> {
226
+ interface NavigationListLabelButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
228
227
  icon?: React.ComponentType;
229
228
  children?: React.ReactNode;
230
229
  }
@@ -261,7 +260,8 @@ const NavigationListLabelButton = React.forwardRef<
261
260
  NavigationListLabelButton.displayName = "NavigationListLabelButton";
262
261
 
263
262
  interface NavigationListLabelProps
264
- extends React.HTMLAttributes<HTMLDivElement>,
263
+ extends
264
+ React.HTMLAttributes<HTMLDivElement>,
265
265
  VariantProps<typeof variantStyles> {
266
266
  label: string;
267
267
  isCollapsible?: boolean;
@@ -312,8 +312,7 @@ const NavigationListLabel = React.forwardRef<
312
312
 
313
313
  NavigationListLabel.displayName = "NavigationListLabel";
314
314
 
315
- interface NavigationListCollapsibleSectionProps
316
- extends React.HTMLAttributes<HTMLDivElement> {
315
+ interface NavigationListCollapsibleSectionProps extends React.HTMLAttributes<HTMLDivElement> {
317
316
  label: string;
318
317
  action?: React.ReactNode;
319
318
  defaultOpen?: boolean;