@dust-tt/sparkle 0.2.432-rc-2 → 0.2.432-rc-3

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.
@@ -23,7 +23,7 @@ export interface CollapsibleContentProps extends React.ComponentPropsWithoutRef<
23
23
  declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
24
24
  export interface CollapsibleComponentProps {
25
25
  rootProps: Omit<CollapsibleProps, "children">;
26
- triggerProps: Omit<CollapsibleTriggerProps, "children" | "defaultOpen">;
26
+ triggerProps?: Omit<CollapsibleTriggerProps, "children" | "defaultOpen">;
27
27
  triggerChildren?: React.ReactNode;
28
28
  contentProps?: Omit<CollapsibleContentProps, "children">;
29
29
  contentChildren?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,aAAa;;;mFAmBlB,CAAC;AAoBF,MAAM,WAAW,gBACf,SAAQ,oBAAoB,CAAC,gBAAgB;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,WAAW,yFAOf,CAAC;AAGH,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,EACzE,IAAI,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,EAAE,UAAU,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,kBAAkB,mGA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AAC,YAAY,CAAC,OAAO,aAAa,CAAC,EAAE,UAAU,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,kBAAkB,mGAiDvB,CAAC;AAGF,QAAA,MAAM,eAAe;;mFASnB,CAAC;AAEH,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,EACzE,YAAY,CAAC,OAAO,eAAe,CAAC;CAAG;AAE3C,QAAA,MAAM,kBAAkB,gGAetB,CAAC;AAGH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,aAAa,CAAC,CAAC;IACzE,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACnC;AAED,QAAA,MAAM,oBAAoB,kGAsBzB,CAAC;AAEF,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GACnB,CAAC"}
package/dist/sparkle.css CHANGED
@@ -5625,12 +5625,36 @@ select {
5625
5625
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
5626
5626
  }
5627
5627
 
5628
+ @keyframes s-collapse-up {
5629
+ from {
5630
+ height: var(--radix-collapsible-content-height);
5631
+ opacity: 1;
5632
+ }
5633
+
5634
+ to {
5635
+ height: 0;
5636
+ opacity: 0;
5637
+ }
5638
+ }
5639
+
5628
5640
  .data-\[state\=closed\]\:s-animate-collapse-up[data-state=closed] {
5629
- animation: collapse-up 150ms ease-out;
5641
+ animation: s-collapse-up 150ms ease-out;
5642
+ }
5643
+
5644
+ @keyframes s-collapse-down {
5645
+ from {
5646
+ height: 0;
5647
+ opacity: 0;
5648
+ }
5649
+
5650
+ to {
5651
+ height: var(--radix-collapsible-content-height);
5652
+ opacity: 1;
5653
+ }
5630
5654
  }
5631
5655
 
5632
5656
  .data-\[state\=open\]\:s-animate-collapse-down[data-state=open] {
5633
- animation: collapse-down 150ms ease-out;
5657
+ animation: s-collapse-down 150ms ease-out;
5634
5658
  }
5635
5659
 
5636
5660
  .data-\[panel-group-direction\=vertical\]\:s-flex-col[data-panel-group-direction=vertical] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.432-rc-2",
3
+ "version": "0.2.432-rc-3",
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",
@@ -156,7 +156,7 @@ CollapsibleContent.displayName = "CollapsibleContent";
156
156
 
157
157
  export interface CollapsibleComponentProps {
158
158
  rootProps: Omit<CollapsibleProps, "children">;
159
- triggerProps: Omit<CollapsibleTriggerProps, "children" | "defaultOpen">;
159
+ triggerProps?: Omit<CollapsibleTriggerProps, "children" | "defaultOpen">;
160
160
  triggerChildren?: React.ReactNode;
161
161
  contentProps?: Omit<CollapsibleContentProps, "children">;
162
162
  contentChildren?: React.ReactNode;