@nasa-jpl/stellar-svelte 2.0.0-alpha.30 → 2.0.0-alpha.31

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.
@@ -1,11 +1,10 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import { type Variant } from "./index.js";
3
2
  declare const __propDef: {
4
3
  props: {
5
4
  [x: string]: any;
6
- href?: string | undefined;
7
- variant?: Variant;
8
- class?: string | undefined | null;
5
+ href?: string | undefined | undefined;
6
+ variant?: "default" | "destructive" | "outline" | "secondary" | undefined;
7
+ class?: string | undefined | null | undefined;
9
8
  };
10
9
  events: {
11
10
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,8 @@
1
- import Root from "./card.svelte";
2
- import Content from "./card-content.svelte";
3
- import Description from "./card-description.svelte";
4
- import Footer from "./card-footer.svelte";
5
- import Header from "./card-header.svelte";
6
- import Title from "./card-title.svelte";
7
- export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
8
- export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
1
+ import Content from './card-content.svelte';
2
+ import Description from './card-description.svelte';
3
+ import Footer from './card-footer.svelte';
4
+ import Header from './card-header.svelte';
5
+ import Title from './card-title.svelte';
6
+ import Root from './card.svelte';
7
+ export { Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, Content, Description, Footer, Header, Root, Title, };
8
+ export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
@@ -1,9 +1,9 @@
1
- import Root from "./card.svelte";
2
- import Content from "./card-content.svelte";
3
- import Description from "./card-description.svelte";
4
- import Footer from "./card-footer.svelte";
5
- import Header from "./card-header.svelte";
6
- import Title from "./card-title.svelte";
7
- export { Root, Content, Description, Footer, Header, Title,
1
+ import Content from './card-content.svelte';
2
+ import Description from './card-description.svelte';
3
+ import Footer from './card-footer.svelte';
4
+ import Header from './card-header.svelte';
5
+ import Title from './card-title.svelte';
6
+ import Root from './card.svelte';
7
+ export {
8
8
  //
9
- Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
9
+ Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, Content, Description, Footer, Header, Root, Title, };
@@ -6,7 +6,7 @@ declare const __propDef: {
6
6
  closeOnOutsideClick?: boolean | undefined;
7
7
  onOutsideClick?: ((event: PointerEvent | MouseEvent | TouchEvent) => void) | undefined;
8
8
  portal?: (HTMLElement | string | null) | undefined;
9
- open?: (import("@melt-ui/svelte").CreateDialogProps["defaultOpen"] & {}) | undefined;
9
+ open?: boolean | undefined;
10
10
  onOpenChange?: import("bits-ui/dist/internal").OnChangeFn<boolean> | undefined;
11
11
  openFocus?: import("bits-ui").FocusProp | undefined;
12
12
  closeFocus?: import("bits-ui").FocusProp | undefined;
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- asChild?: boolean | undefined;
4
+ asChild?: boolean | undefined | undefined;
5
5
  el?: HTMLDivElement | undefined;
6
6
  } & import("bits-ui/dist/internal").HTMLDivAttributes & {
7
7
  inset?: boolean;
@@ -2,8 +2,8 @@ import { SvelteComponent } from "svelte";
2
2
  import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
3
  declare const __propDef: {
4
4
  props: {
5
- disabled?: boolean | undefined;
6
- asChild?: boolean | undefined;
5
+ disabled?: boolean | undefined | undefined;
6
+ asChild?: boolean | undefined | undefined;
7
7
  el?: HTMLDivElement | undefined;
8
8
  } & import("bits-ui/dist/internal").HTMLDivAttributes & {
9
9
  inset?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- asChild?: boolean | undefined;
4
+ asChild?: boolean | undefined | undefined;
5
5
  el?: HTMLDivElement | undefined;
6
6
  } & import("bits-ui/dist/internal").HTMLDivAttributes & {
7
7
  inset?: boolean;
@@ -2,8 +2,8 @@ import { SvelteComponent } from "svelte";
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
3
3
  declare const __propDef: {
4
4
  props: {
5
- disabled?: boolean | undefined;
6
- asChild?: boolean | undefined;
5
+ disabled?: boolean | undefined | undefined;
6
+ asChild?: boolean | undefined | undefined;
7
7
  el?: HTMLDivElement | undefined;
8
8
  } & import("bits-ui/dist/internal").HTMLDivAttributes & {
9
9
  inset?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- asChild?: boolean | undefined;
4
+ asChild?: boolean | undefined | undefined;
5
5
  el?: HTMLDivElement | undefined;
6
6
  } & import("bits-ui/dist/internal").HTMLDivAttributes & {
7
7
  inset?: boolean;
@@ -2,8 +2,8 @@ import { SvelteComponent } from "svelte";
2
2
  import { Menubar as MenubarPrimitive } from "bits-ui";
3
3
  declare const __propDef: {
4
4
  props: {
5
- disabled?: boolean | undefined;
6
- asChild?: boolean | undefined;
5
+ disabled?: boolean | undefined | undefined;
6
+ asChild?: boolean | undefined | undefined;
7
7
  el?: HTMLDivElement | undefined;
8
8
  } & import("bits-ui/dist/internal").HTMLDivAttributes & {
9
9
  inset?: boolean;
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  props: {
5
5
  page: import("bits-ui").Page;
6
6
  } & {
7
- asChild?: boolean | undefined;
7
+ asChild?: boolean | undefined | undefined;
8
8
  el?: HTMLButtonElement | undefined;
9
9
  } & (import("svelte/elements").HTMLButtonAttributes & (Props & {
10
10
  isActive: boolean;
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- asChild?: boolean | undefined;
4
+ asChild?: boolean | undefined | undefined;
5
5
  el?: HTMLDivElement | undefined;
6
6
  } & {
7
7
  orientation: "horizontal" | "vertical";
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  dir?: import("@melt-ui/svelte/internal/types").TextDirection | undefined;
6
6
  hideDelay?: number | undefined;
7
7
  } & {
8
- asChild?: boolean | undefined;
8
+ asChild?: boolean | undefined | undefined;
9
9
  el?: HTMLDivElement | undefined;
10
10
  } & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
11
11
  orientation?: "vertical" | "horizontal" | "both";
@@ -8,7 +8,7 @@ declare const __propDef: {
8
8
  inTransitionConfig?: any;
9
9
  outTransition?: import("bits-ui/dist/internal/types.js").Transition | undefined;
10
10
  outTransitionConfig?: any;
11
- asChild?: boolean | undefined;
11
+ asChild?: boolean | undefined | undefined;
12
12
  el?: HTMLDivElement | undefined;
13
13
  } & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
14
14
  side?: Side;
@@ -4,9 +4,9 @@ import { type Size, type Variant } from "./index.js";
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  disabled?: boolean | undefined;
7
- pressed?: boolean | undefined;
7
+ pressed?: boolean | undefined | undefined;
8
8
  onPressedChange?: import("bits-ui/dist/internal/types.js").OnChangeFn<boolean> | undefined;
9
- asChild?: boolean | undefined;
9
+ asChild?: boolean | undefined | undefined;
10
10
  el?: HTMLButtonElement | undefined;
11
11
  } & import("svelte/elements.js").HTMLButtonAttributes & {
12
12
  variant?: Variant;
@@ -3,8 +3,8 @@ import { type ToggleVariants } from "./index.js";
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  value: string;
6
- disabled?: boolean | undefined;
7
- asChild?: boolean | undefined;
6
+ disabled?: boolean | undefined | undefined;
7
+ asChild?: boolean | undefined | undefined;
8
8
  el?: HTMLButtonElement | undefined;
9
9
  } & import("svelte/elements.js").HTMLButtonAttributes & ToggleVariants;
10
10
  events: {
@@ -9,7 +9,7 @@ declare class __sveltets_Render<T extends "single" | "multiple"> {
9
9
  rovingFocus?: boolean | undefined;
10
10
  value?: (T extends "single" ? string : string[]) | undefined;
11
11
  onValueChange?: import("bits-ui/dist/internal/types.js").OnChangeFn<(T extends "single" ? string : string[]) | undefined> | undefined;
12
- asChild?: boolean | undefined;
12
+ asChild?: boolean | undefined | undefined;
13
13
  el?: HTMLDivElement | undefined;
14
14
  } & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & VariantProps<import("tailwind-variants").TVReturnType<{
15
15
  variant: {
package/dist/index.css CHANGED
@@ -731,6 +731,10 @@ body {
731
731
  top: 3.5rem;
732
732
  }
733
733
 
734
+ .top-16 {
735
+ top: 4rem;
736
+ }
737
+
734
738
  .top-2\.5 {
735
739
  top: 0.625rem;
736
740
  }
@@ -793,6 +797,10 @@ body {
793
797
  margin-left: -1rem;
794
798
  }
795
799
 
800
+ .-mt-10 {
801
+ margin-top: -2.5rem;
802
+ }
803
+
796
804
  .-mt-4 {
797
805
  margin-top: -1rem;
798
806
  }
@@ -825,6 +833,10 @@ body {
825
833
  margin-right: 1.5rem;
826
834
  }
827
835
 
836
+ .mr-auto {
837
+ margin-right: auto;
838
+ }
839
+
828
840
  .mt-2 {
829
841
  margin-top: 0.5rem;
830
842
  }
@@ -985,6 +997,10 @@ body {
985
997
  max-height: 100vh;
986
998
  }
987
999
 
1000
+ .min-h-\[350px\] {
1001
+ min-height: 350px;
1002
+ }
1003
+
988
1004
  .min-h-\[80px\] {
989
1005
  min-height: 80px;
990
1006
  }
@@ -1106,10 +1122,6 @@ body {
1106
1122
  max-width: 42rem;
1107
1123
  }
1108
1124
 
1109
- .max-w-\[980px\] {
1110
- max-width: 980px;
1111
- }
1112
-
1113
1125
  .max-w-lg {
1114
1126
  max-width: 32rem;
1115
1127
  }
@@ -1232,6 +1244,10 @@ body {
1232
1244
  user-select: none;
1233
1245
  }
1234
1246
 
1247
+ .scroll-m-20 {
1248
+ scroll-margin: 5rem;
1249
+ }
1250
+
1235
1251
  .appearance-none {
1236
1252
  -webkit-appearance: none;
1237
1253
  -moz-appearance: none;
@@ -1270,6 +1286,10 @@ body {
1270
1286
  align-items: center;
1271
1287
  }
1272
1288
 
1289
+ .justify-start {
1290
+ justify-content: flex-start;
1291
+ }
1292
+
1273
1293
  .justify-center {
1274
1294
  justify-content: center;
1275
1295
  }
@@ -1362,6 +1382,10 @@ body {
1362
1382
  white-space: nowrap;
1363
1383
  }
1364
1384
 
1385
+ .text-balance {
1386
+ text-wrap: balance;
1387
+ }
1388
+
1365
1389
  .break-words {
1366
1390
  overflow-wrap: break-word;
1367
1391
  }
@@ -1382,6 +1406,10 @@ body {
1382
1406
  border-radius: var(--radius);
1383
1407
  }
1384
1408
 
1409
+ .rounded-none {
1410
+ border-radius: 0px;
1411
+ }
1412
+
1385
1413
  .rounded-sm {
1386
1414
  border-radius: calc(var(--radius) - 2px);
1387
1415
  }
@@ -1407,6 +1435,10 @@ body {
1407
1435
  border-bottom-width: 1px;
1408
1436
  }
1409
1437
 
1438
+ .border-b-2 {
1439
+ border-bottom-width: 2px;
1440
+ }
1441
+
1410
1442
  .border-l {
1411
1443
  border-left-width: 1px;
1412
1444
  }
@@ -1470,6 +1502,10 @@ body {
1470
1502
  border-color: rgb(254 240 138 / var(--tw-border-opacity));
1471
1503
  }
1472
1504
 
1505
+ .border-b-transparent {
1506
+ border-bottom-color: transparent;
1507
+ }
1508
+
1473
1509
  .border-l-transparent {
1474
1510
  border-left-color: transparent;
1475
1511
  }
@@ -1578,6 +1614,10 @@ body {
1578
1614
  padding: 0.25rem;
1579
1615
  }
1580
1616
 
1617
+ .p-10 {
1618
+ padding: 2.5rem;
1619
+ }
1620
+
1581
1621
  .p-16 {
1582
1622
  padding: 4rem;
1583
1623
  }
@@ -1691,6 +1731,14 @@ body {
1691
1731
  padding-bottom: 0px;
1692
1732
  }
1693
1733
 
1734
+ .pb-12 {
1735
+ padding-bottom: 3rem;
1736
+ }
1737
+
1738
+ .pb-3 {
1739
+ padding-bottom: 0.75rem;
1740
+ }
1741
+
1694
1742
  .pb-4 {
1695
1743
  padding-bottom: 1rem;
1696
1744
  }
@@ -1727,6 +1775,10 @@ body {
1727
1775
  padding-top: 0.25rem;
1728
1776
  }
1729
1777
 
1778
+ .pt-2 {
1779
+ padding-top: 0.5rem;
1780
+ }
1781
+
1730
1782
  .pt-4 {
1731
1783
  padding-top: 1rem;
1732
1784
  }
@@ -1735,6 +1787,14 @@ body {
1735
1787
  padding-top: 1.25rem;
1736
1788
  }
1737
1789
 
1790
+ .pt-6 {
1791
+ padding-top: 1.5rem;
1792
+ }
1793
+
1794
+ .pt-8 {
1795
+ padding-top: 2rem;
1796
+ }
1797
+
1738
1798
  .text-left {
1739
1799
  text-align: left;
1740
1800
  }
@@ -1831,6 +1891,10 @@ body {
1831
1891
  text-transform: uppercase;
1832
1892
  }
1833
1893
 
1894
+ .capitalize {
1895
+ text-transform: capitalize;
1896
+ }
1897
+
1834
1898
  .leading-7 {
1835
1899
  line-height: 1.75rem;
1836
1900
  }
@@ -2053,6 +2117,10 @@ body {
2053
2117
  transition-duration: 150ms;
2054
2118
  }
2055
2119
 
2120
+ .transition-none {
2121
+ transition-property: none;
2122
+ }
2123
+
2056
2124
  .transition-opacity {
2057
2125
  transition-property: opacity;
2058
2126
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -2367,6 +2435,11 @@ body {
2367
2435
  flex-direction: column;
2368
2436
  }
2369
2437
 
2438
+ .data-\[state\=active\]\:border-b-primary[data-state="active"] {
2439
+ --tw-border-opacity: 1;
2440
+ border-bottom-color: hsl(var(--primary) / var(--tw-border-opacity));
2441
+ }
2442
+
2370
2443
  .data-\[highlighted\]\:bg-accent[data-highlighted] {
2371
2444
  --tw-bg-opacity: 1;
2372
2445
  background-color: hsl(var(--accent) / var(--tw-bg-opacity));
@@ -2512,6 +2585,12 @@ body {
2512
2585
  opacity: 1;
2513
2586
  }
2514
2587
 
2588
+ .data-\[state\=active\]\:shadow-none[data-state="active"] {
2589
+ --tw-shadow: 0 0 #0000;
2590
+ --tw-shadow-colored: 0 0 #0000;
2591
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2592
+ }
2593
+
2515
2594
  .data-\[state\=active\]\:shadow-sm[data-state="active"] {
2516
2595
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2517
2596
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
@@ -2813,15 +2892,6 @@ body {
2813
2892
  padding-bottom: 0px;
2814
2893
  }
2815
2894
 
2816
- .md\:py-12 {
2817
- padding-top: 3rem;
2818
- padding-bottom: 3rem;
2819
- }
2820
-
2821
- .md\:pb-8 {
2822
- padding-bottom: 2rem;
2823
- }
2824
-
2825
2895
  .md\:pt-0 {
2826
2896
  padding-top: 0px;
2827
2897
  }
@@ -2879,25 +2949,30 @@ body {
2879
2949
  padding-right: 1.5rem;
2880
2950
  }
2881
2951
 
2882
- .lg\:py-24 {
2883
- padding-top: 6rem;
2884
- padding-bottom: 6rem;
2885
- }
2886
-
2887
2952
  .lg\:py-8 {
2888
2953
  padding-top: 2rem;
2889
2954
  padding-bottom: 2rem;
2890
2955
  }
2891
2956
 
2892
- .lg\:pb-20 {
2893
- padding-bottom: 5rem;
2894
- }
2895
-
2896
2957
  .lg\:leading-\[1\.1\] {
2897
2958
  line-height: 1.1;
2898
2959
  }
2899
2960
  }
2900
2961
 
2962
+ @media (min-width: 1280px) {
2963
+ .xl\:block {
2964
+ display: block;
2965
+ }
2966
+
2967
+ .xl\:grid {
2968
+ display: grid;
2969
+ }
2970
+
2971
+ .xl\:grid-cols-\[1fr_300px\] {
2972
+ grid-template-columns: 1fr 300px;
2973
+ }
2974
+ }
2975
+
2901
2976
  .\[\&\:has\(\[data-selected\]\)\]\:rounded-md:has([data-selected]) {
2902
2977
  border-radius: var(--radius);
2903
2978
  }
package/package.json CHANGED
@@ -20,6 +20,7 @@
20
20
  "description": "Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).",
21
21
  "devDependencies": {
22
22
  "@nasa-jpl/stellar": "file:../css/dist",
23
+ "@nasa-jpl/stellar-react": "file:../react/dist",
23
24
  "@sveltejs/adapter-node": "^5.0.1",
24
25
  "@sveltejs/kit": "^2.0.0",
25
26
  "@sveltejs/package": "^2.0.0",
@@ -79,6 +80,6 @@
79
80
  "svelte": "./dist/index.js",
80
81
  "type": "module",
81
82
  "types": "./dist/index.d.ts",
82
- "version": "2.0.0-alpha.30",
83
- "gitHead": "1ec987ef6b58e8c08ffff9fc5d51ed6691a6eda7"
83
+ "version": "2.0.0-alpha.31",
84
+ "gitHead": "f95f8962fbc32d635349479eabdb91ed7e46702b"
84
85
  }