@max-ts/svelte 1.0.3 → 1.0.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.
Files changed (103) hide show
  1. package/dist/assets/{styles.css.ts.vanilla-CRRIM3FB.css → styles.css.ts.vanilla-BTOQ-HsW.css} +2 -2
  2. package/dist/assets/styles.css.ts.vanilla-CLnCzIMF.css +8 -0
  3. package/dist/components/Accordion/Content/Content.svelte.d.ts +1 -1
  4. package/dist/components/Accordion/Trigger/Trigger.svelte.d.ts +1 -1
  5. package/dist/components/Accordion/index.d.ts +1 -1
  6. package/dist/components/Alert/Alert.svelte.d.ts +1 -1
  7. package/dist/components/Alert/Description/Description.svelte.d.ts +1 -1
  8. package/dist/components/Alert/Title/Title.svelte.d.ts +1 -1
  9. package/dist/components/Alert/index.d.ts +2 -2
  10. package/dist/components/Calendar/Calendar.svelte.d.ts +2 -18
  11. package/dist/components/Calendar/Month/Month.svelte.d.ts +1 -1
  12. package/dist/components/Calendar/Months/Months.svelte.d.ts +1 -1
  13. package/dist/components/Calendar/Nav/Nav.svelte.d.ts +1 -1
  14. package/dist/components/Calendar/NextButton/NextButton.svelte.d.ts +1 -1
  15. package/dist/components/Calendar/PrevButton/PrevButton.svelte.d.ts +1 -1
  16. package/dist/components/Calendar/index.d.ts +1 -0
  17. package/dist/components/Calendar/types.d.ts +17 -0
  18. package/dist/components/Card/Action/Action.svelte.d.ts +1 -1
  19. package/dist/components/Card/Card.svelte.d.ts +1 -1
  20. package/dist/components/Card/Content/Content.svelte.d.ts +1 -1
  21. package/dist/components/Card/Description/Description.svelte.d.ts +1 -1
  22. package/dist/components/Card/Footer/Footer.svelte.d.ts +1 -1
  23. package/dist/components/Card/Header/Header.svelte.d.ts +1 -1
  24. package/dist/components/Card/Title/Title.svelte.d.ts +1 -1
  25. package/dist/components/Card/index.d.ts +7 -7
  26. package/dist/components/Checkbox/index.d.ts +1 -2
  27. package/dist/components/Checkbox/styles.css.js +1 -1
  28. package/dist/components/ContentState/ContentState.js +109 -0
  29. package/dist/components/ContentState/ContentState.svelte.d.ts +4 -0
  30. package/dist/components/ContentState/index.d.ts +2 -0
  31. package/dist/components/ContentState/styles.css.d.ts +4 -0
  32. package/dist/components/ContentState/styles.css.js +8 -0
  33. package/dist/components/ContentState/types.d.ts +55 -0
  34. package/dist/components/DataGrid/Cell/Cell.js +1 -1
  35. package/dist/components/DropdownMenu/CheckboxItem/CheckboxItem.svelte.d.ts +1 -1
  36. package/dist/components/DropdownMenu/Content/Content.svelte.d.ts +1 -1
  37. package/dist/components/DropdownMenu/Label/Label.svelte.d.ts +1 -1
  38. package/dist/components/DropdownMenu/Shortcut/Shortcut.svelte.d.ts +1 -1
  39. package/dist/components/Field/Content/Content.svelte.d.ts +1 -1
  40. package/dist/components/Field/Description/Description.svelte.d.ts +1 -1
  41. package/dist/components/Field/Field.svelte.d.ts +1 -1
  42. package/dist/components/Field/FieldError/FieldError.svelte.d.ts +1 -1
  43. package/dist/components/Field/FieldSet/FieldSet.svelte.d.ts +1 -1
  44. package/dist/components/Field/Group/Group.svelte.d.ts +1 -1
  45. package/dist/components/Field/Label/Label.js +1 -1
  46. package/dist/components/Field/Label/Label.svelte.d.ts +1 -1
  47. package/dist/components/Field/Legend/Legend.svelte.d.ts +1 -1
  48. package/dist/components/Field/Separator/Separator.js +1 -1
  49. package/dist/components/Field/Separator/Separator.svelte.d.ts +2 -2
  50. package/dist/components/Field/Title/Title.svelte.d.ts +1 -1
  51. package/dist/components/Field/index.d.ts +5 -5
  52. package/dist/components/Field/types.d.ts +1 -1
  53. package/dist/components/Input/types.d.ts +1 -1
  54. package/dist/components/Select/Content/Content.svelte.d.ts +1 -1
  55. package/dist/components/Select/Label/Label.svelte.d.ts +1 -1
  56. package/dist/components/Select/Trigger/Trigger.svelte.d.ts +1 -1
  57. package/dist/components/Select/index.d.ts +2 -2
  58. package/dist/components/Tooltip/Content/Content.svelte.d.ts +1 -1
  59. package/dist/components/Typography/styles.css.d.ts +1 -1
  60. package/dist/components/index.d.ts +20 -19
  61. package/dist/{index.js → components.js} +6 -7
  62. package/dist/stories/Accordion.stories.svelte.d.ts +0 -1
  63. package/dist/stories/Alert.stories.svelte.d.ts +1 -1
  64. package/dist/stories/Calendar.stories.svelte.d.ts +1 -1
  65. package/dist/stories/Card.stories.svelte.d.ts +1 -1
  66. package/dist/stories/CircularProgress.stories.svelte.d.ts +0 -1
  67. package/dist/stories/DataGrid.stories.svelte.d.ts +1 -1
  68. package/dist/stories/DropdownMenu.stories.svelte.d.ts +1 -1
  69. package/dist/stories/Field.stories.svelte.d.ts +1 -1
  70. package/dist/stories/Input.stories.svelte.d.ts +0 -1
  71. package/dist/stories/Label.stories.svelte.d.ts +1 -1
  72. package/dist/stories/Select.stories.svelte.d.ts +1 -1
  73. package/dist/stories/Tooltip.stories.svelte.d.ts +1 -1
  74. package/dist/stories/Typography.stories.svelte.d.ts +0 -1
  75. package/dist/{styles/theme.css.d.ts → theme.css.d.ts} +1 -0
  76. package/dist/{styles/theme.css.js → theme.js} +2 -2
  77. package/dist/{styles/types.d.ts → types.d.ts} +0 -1
  78. package/dist/{styles/utils.d.ts → utils.d.ts} +1 -3
  79. package/dist/{styles/utils.js → utils.js} +2 -2
  80. package/package.json +6 -11
  81. package/dist/_virtual/rolldown_runtime.js +0 -29
  82. package/dist/components/DropdownMenu/index.d.ts +0 -127
  83. package/dist/index.d.ts +0 -3
  84. package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -24
  85. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.browser.esm.js +0 -43
  86. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-8e47dbd7.browser.esm.js +0 -8
  87. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/transformCss-20240126.browser.esm.js +0 -767
  88. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.browser.esm.js +0 -297
  89. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.browser.esm.js +0 -18
  90. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js +0 -19
  91. package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +0 -29
  92. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js +0 -314
  93. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js +0 -29
  94. package/dist/node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js +0 -67
  95. package/dist/node_modules/.pnpm/dedent@1.7.1/node_modules/dedent/dist/dedent.js +0 -104
  96. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js +0 -29
  97. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/utils.js +0 -10
  98. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +0 -88
  99. package/dist/node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js +0 -1155
  100. package/dist/node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js +0 -940
  101. package/dist/node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js +0 -81
  102. package/dist/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js +0 -59
  103. package/dist/styles/index.d.ts +0 -4
@@ -4,8 +4,8 @@ declare const Field: {
4
4
  } & {
5
5
  orientation?: import("./types.js").FieldOrientation;
6
6
  }, {}, "ref">;
7
- Content: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
8
- Description: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
7
+ Content: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
8
+ Description: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
9
9
  Error: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
10
10
  ref?: HTMLElement | null | undefined;
11
11
  } & {
@@ -14,7 +14,7 @@ declare const Field: {
14
14
  message?: string;
15
15
  }[];
16
16
  }, {}, "ref">;
17
- Group: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
17
+ Group: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
18
18
  Label: any;
19
19
  Legend: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLLegendElement> & {
20
20
  ref?: HTMLElement | null | undefined;
@@ -26,8 +26,8 @@ declare const Field: {
26
26
  } & {
27
27
  children?: import("svelte").Snippet;
28
28
  }, {}, "ref">;
29
- Set: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLFieldsetAttributes>, {}, "ref">;
30
- Title: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
29
+ Set: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLFieldsetAttributes>, {}, "ref">;
30
+ Title: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
31
31
  };
32
32
  export { Field };
33
33
  export * from './types.js';
@@ -1,3 +1,3 @@
1
- import type { ComplexStyleRule } from '../../styles/index.js';
1
+ import type { ComplexStyleRule } from '@vanilla-extract/css';
2
2
  export type FieldOrientation = 'vertical' | 'horizontal' | 'responsive';
3
3
  export type FieldVariants = Record<FieldOrientation, ComplexStyleRule>;
@@ -1,5 +1,5 @@
1
1
  import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
2
- import type { WithElementRef } from '../../styles/index.js';
2
+ import type { WithElementRef } from '../../types.js';
3
3
  export type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
4
4
  export type InputProps = WithElementRef<Omit<HTMLInputAttributes, 'type' | 'size'> & ({
5
5
  type: 'file';
@@ -1,6 +1,6 @@
1
1
  import { Select as SelectPrimitive } from 'bits-ui';
2
2
  import type { ComponentProps } from 'svelte';
3
- import type { WithoutChild, WithoutChildrenOrChild } from '../../../styles/index.js';
3
+ import type { WithoutChild, WithoutChildrenOrChild } from '../../../types.js';
4
4
  import { Portal } from '../Portal/index.js';
5
5
  type $$ComponentProps = WithoutChild<SelectPrimitive.ContentProps> & {
6
6
  portalProps?: WithoutChildrenOrChild<ComponentProps<typeof Portal>>;
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import type { WithElementRef } from '../../../styles/index.js';
2
+ import type { WithElementRef } from '../../../types.js';
3
3
  declare const Label: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type Label = ReturnType<typeof Label>;
5
5
  export default Label;
@@ -1,5 +1,5 @@
1
1
  import { Select as SelectPrimitive } from 'bits-ui';
2
- import type { WithoutChild } from '../../../styles/index.js';
2
+ import type { WithoutChild } from '../../../types.js';
3
3
  type $$ComponentProps = WithoutChild<SelectPrimitive.TriggerProps> & {
4
4
  size?: 'sm' | 'default';
5
5
  };
@@ -4,7 +4,7 @@ declare const Select: {
4
4
  Trigger: import("svelte").Component<Omit<import("bits-ui").ComboboxTriggerProps, "child"> & {
5
5
  size?: "sm" | "default";
6
6
  }, {}, "ref">;
7
- Label: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
7
+ Label: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
8
8
  Portal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
9
9
  ScrollUpButton: import("svelte").Component<Omit<Omit<import("bits-ui").ComboboxScrollUpButtonProps, "child">, "children">, {}, "ref">;
10
10
  ScrollDownButton: import("svelte").Component<Omit<Omit<import("bits-ui").ComboboxScrollDownButtonProps, "child">, "children">, {}, "ref">;
@@ -20,7 +20,7 @@ declare const Select: {
20
20
  ref?: HTMLElement | null | undefined;
21
21
  } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").ComboboxGroupHeadingPropsWithoutHTML>, {}, "ref">;
22
22
  Content: import("svelte").Component<Omit<import("bits-ui").ComboboxContentProps, "child"> & {
23
- portalProps?: import("../../index.js").WithoutChildrenOrChild<import("svelte").ComponentProps<typeof Portal>>;
23
+ portalProps?: import("../../types.js").WithoutChildrenOrChild<import("svelte").ComponentProps<typeof Portal>>;
24
24
  }, {}, "ref">;
25
25
  };
26
26
  export { Select };
@@ -1,6 +1,6 @@
1
1
  import { Tooltip as TooltipPrimitive } from 'bits-ui';
2
2
  import type { ComponentProps } from 'svelte';
3
- import type { WithoutChildrenOrChild } from '../../../styles/index.js';
3
+ import type { WithoutChildrenOrChild } from '../../../types.js';
4
4
  import { Portal } from '../Portal/index.js';
5
5
  type $$ComponentProps = TooltipPrimitive.ContentProps & {
6
6
  arrowClasses?: string;
@@ -1,6 +1,6 @@
1
1
  import type { TypographyVariant } from './types.js';
2
2
  export declare const variants: Record<TypographyVariant, string>;
3
- export declare const colors: Record<"disabled" | "primary" | "secondary" | "warning" | "error" | "success" | "info" | "muted", string>;
3
+ export declare const colors: Record<"primary" | "secondary" | "warning" | "error" | "success" | "info" | "disabled" | "muted", string>;
4
4
  export declare const alignments: Record<"left" | "right" | "center" | "justify", string>;
5
5
  export declare const displays: Record<"block" | "inline", string>;
6
6
  export declare const weights: Record<"bold" | "normal" | "medium" | "semibold", string>;
@@ -1,19 +1,20 @@
1
- export * from './Accordion/index.js';
2
- export * from './Alert/index.js';
3
- export * from './Button/index.js';
4
- export * from './Calendar/index.js';
5
- export * from './Card/index.js';
6
- export * from './Checkbox/index.js';
7
- export * from './CircularProgress/index.js';
8
- export * from './DataGrid/index.js';
9
- export * from './DataGridSortHeader/index.js';
10
- export * from './DropdownMenu/index.js';
11
- export * from './Field/index.js';
12
- export * from './Input/index.js';
13
- export * from './Label/index.js';
14
- export * from './Placeholder/index.js';
15
- export * from './Select/index.js';
16
- export * from './Separator/index.js';
17
- export * from './Spinner/index.js';
18
- export * from './Tooltip/index.js';
19
- export * from './Typography/index.js';
1
+ export { Accordion } from './Accordion/index.js';
2
+ export { Alert } from './Alert/index.js';
3
+ export { Button, buttonVariants, type ButtonSize, type ButtonVariant, } from './Button/index.js';
4
+ export { Calendar, type CalendarProps } from './Calendar/index.js';
5
+ export { Card } from './Card/index.js';
6
+ export { Checkbox } from './Checkbox/index.js';
7
+ export { CircularProgress, type CircularProgressProps, } from './CircularProgress/index.js';
8
+ export { ContentState, type ContentStateErrorProps, type ContentStateProps, } from './ContentState/index.js';
9
+ export { DataGrid, type DataGridColumn, type DataGridColumns, type DataGridProps, type DataGridState, } from './DataGrid/index.js';
10
+ export { DataGridSortHeader, type DataGridSortHeaderProps, type DataGridSorting, } from './DataGridSortHeader/index.js';
11
+ export { DropdownMenu } from './DropdownMenu/index.js';
12
+ export { Field, type FieldOrientation, type FieldVariants, } from './Field/index.js';
13
+ export { Input, type InputProps, type InputType, } from './Input/index.js';
14
+ export { Label } from './Label/index.js';
15
+ export { Placeholder, type PlaceholderProps, type PlaceholderSize, } from './Placeholder/index.js';
16
+ export { Select } from './Select/index.js';
17
+ export { Separator, type SeparatorProps, } from './Separator/index.js';
18
+ export { Spinner, type SpinnerSize } from './Spinner/index.js';
19
+ export { Tooltip, type TooltipProps } from './Tooltip/index.js';
20
+ export { Typography, type TypographyAlign, type TypographyColor, type TypographyVariant, } from './Typography/index.js';
@@ -1,24 +1,23 @@
1
1
  import { Accordion } from "./components/Accordion/index.js";
2
2
  import { Alert } from "./components/Alert/index.js";
3
+ import { buttonVariants } from "./components/Button/styles.css.js";
3
4
  import Button from "./components/Button/Button.js";
4
5
  import Calendar from "./components/Calendar/Calendar.js";
5
6
  import { Card } from "./components/Card/index.js";
6
7
  import Checkbox from "./components/Checkbox/Checkbox.js";
7
8
  import CircularProgress from "./components/CircularProgress/CircularProgress.js";
8
- import { createTheme, globalKeyframes, globalStyle, keyframes, style, styleVariants } from "./node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.browser.esm.js";
9
- import { theme } from "./styles/theme.css.js";
10
- import { calculateSize, negativeSpacing, spacing } from "./styles/utils.js";
11
9
  import Typography from "./components/Typography/Typography.js";
12
10
  import Placeholder from "./components/Placeholder/Placeholder.js";
11
+ import Spinner from "./components/Spinner/Spinner.js";
12
+ import ContentState from "./components/ContentState/ContentState.js";
13
13
  import DataGrid from "./components/DataGrid/DataGrid.js";
14
14
  import DataGridSortHeader from "./components/DataGridSortHeader/DataGridSortHeader.js";
15
15
  import { DropdownMenu } from "./components/DropdownMenu/index.js";
16
+ import Label_1 from "./components/Label/Label.js";
17
+ import Separator from "./components/Separator/Separator.js";
16
18
  import { Field } from "./components/Field/index.js";
17
19
  import Input from "./components/Input/Input.js";
18
- import Label_1 from "./components/Label/Label.js";
19
20
  import { Select } from "./components/Select/index.js";
20
- import Separator from "./components/Separator/Separator.js";
21
- import Spinner from "./components/Spinner/Spinner.js";
22
21
  import Tooltip from "./components/Tooltip/Tooltip.js";
23
22
 
24
- export { Accordion, Alert, Button, Calendar, Card, Checkbox, CircularProgress, DataGrid, DataGridSortHeader, DropdownMenu, Field, Input, Label_1 as Label, Placeholder, Select, Separator, Spinner, Tooltip, Typography, calculateSize, createTheme, globalKeyframes, globalStyle, keyframes, negativeSpacing, spacing, style, styleVariants, theme };
23
+ export { Accordion, Alert, Button, Calendar, Card, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, DropdownMenu, Field, Input, Label_1 as Label, Placeholder, Select, Separator, Spinner, Tooltip, Typography, buttonVariants };
@@ -11,7 +11,6 @@ declare const Accordion: $$__sveltets_2_IsomorphicComponent<{
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
13
13
  }, {}, {}, string>;
14
- import { Accordion } from '../components/index.js';
15
14
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
15
  new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
16
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Alert } from '../components/index.js';
1
+ import { Alert } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Calendar } from '../components/index.js';
1
+ import { Calendar } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Card } from '../components/index.js';
1
+ import { Card } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -11,7 +11,6 @@ declare const CircularProgress: $$__sveltets_2_IsomorphicComponent<{
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
13
13
  }, {}, {}, string>;
14
- import { CircularProgress } from '../components/index.js';
15
14
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
15
  new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
16
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { DataGrid } from '../components/index.js';
1
+ import { DataGrid } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { DropdownMenu } from '../components/index.js';
1
+ import { DropdownMenu } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Field } from '../components/index.js';
1
+ import { Field } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -11,7 +11,6 @@ declare const Input: $$__sveltets_2_IsomorphicComponent<{
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
13
13
  }, {}, {}, string>;
14
- import { Input } from '../components/index.js';
15
14
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
15
  new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
16
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Label } from '../components/index.js';
1
+ import { Label } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Select } from '../components/index.js';
1
+ import { Select } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,4 +1,4 @@
1
- import { Tooltip } from '../components/index.js';
1
+ import { Tooltip } from '../index.js';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -11,7 +11,6 @@ declare const Typography: $$__sveltets_2_IsomorphicComponent<{
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
13
13
  }, {}, {}, string>;
14
- import { Typography } from '../components/index.js';
15
14
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
15
  new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
16
  $$bindings?: Bindings;
@@ -85,3 +85,4 @@ export declare const theme: {
85
85
  };
86
86
  };
87
87
  export type Theme = typeof theme;
88
+ export type SpacingKey = keyof Theme['spacing'];
@@ -1,6 +1,6 @@
1
- import "./../assets/theme.css.ts.vanilla-BRMmE1vI.css";
1
+ import "./assets/theme.css.ts.vanilla-BRMmE1vI.css";
2
2
 
3
- //#region src/styles/theme.css.ts
3
+ //#region src/theme.css.ts
4
4
  var theme = {
5
5
  colors: {
6
6
  primary: "var(--colors-primary)",
@@ -1,4 +1,3 @@
1
- export type { ComplexStyleRule, CSSProperties } from '@vanilla-extract/css';
2
1
  export type WithoutChild<T> = T extends {
3
2
  child?: any;
4
3
  } ? Omit<T, 'child'> : T;
@@ -1,6 +1,4 @@
1
- import { type Theme } from './theme.css.js';
2
- type SpacingKey = keyof Theme['spacing'];
1
+ import { type SpacingKey } from './theme.css.js';
3
2
  export declare const negativeSpacing: (...keys: SpacingKey[]) => string;
4
3
  export declare const spacing: (...keys: SpacingKey[]) => string;
5
4
  export declare const calculateSize: (value?: string | number) => string | undefined;
6
- export {};
@@ -1,6 +1,6 @@
1
- import { theme } from "./theme.css.js";
1
+ import { theme } from "./theme.js";
2
2
 
3
- //#region src/styles/utils.ts
3
+ //#region src/utils.ts
4
4
  const negativeSpacing = (...keys) => keys.map((key) => `calc(-1 * ${theme.spacing[key]})`).join(" ");
5
5
  const spacing = (...keys) => {
6
6
  return keys.map((key) => theme.spacing[key]).join(" ");
package/package.json CHANGED
@@ -1,22 +1,18 @@
1
1
  {
2
2
  "name": "@max-ts/svelte",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "Svelte component library.",
6
6
  "author": "Tsepelev Maksim",
7
7
  "license": "MIT",
8
8
  "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "svelte": "./dist/index.js"
12
- }
9
+ "./components": "./dist/components.js",
10
+ "./theme": "./dist/theme.js",
11
+ "./utils": "./dist/utils.js",
12
+ "./package.json": "./package.json"
13
13
  },
14
- "main": "./dist/index.js",
15
- "svelte": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
14
  "sideEffects": [
18
- "**/*.css",
19
- "**/*.css.js"
15
+ "**/*.css"
20
16
  ],
21
17
  "files": [
22
18
  "dist"
@@ -52,7 +48,6 @@
52
48
  "svelte-check": "^4.3.5",
53
49
  "svelte-preprocess": "^6.0.3",
54
50
  "svelte2tsx": "^0.7.46",
55
- "tsc-alias": "^1.8.16",
56
51
  "tsdown": "0.19.0",
57
52
  "typescript": "^5.9.3",
58
53
  "vite": "^7.3.1",
@@ -1,29 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) {
14
- __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- }
20
- }
21
- return to;
22
- };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
- value: mod,
25
- enumerable: true
26
- }) : target, mod));
27
-
28
- //#endregion
29
- export { __commonJSMin, __toESM };
@@ -1,127 +0,0 @@
1
- import { Portal } from './Portal/index.js';
2
- declare const DropdownMenu: {
3
- Root: import("svelte").Component<import("bits-ui").ContextMenuRootPropsWithoutHTML, {}, "open">;
4
- CheckboxGroup: import("svelte").Component<import("bits-ui").ContextMenuCheckboxGroupProps, {}, "value" | "ref">;
5
- CheckboxItem: import("svelte").Component<Omit<Omit<import("bits-ui").ContextMenuCheckboxItemProps, "child">, "children"> & {
6
- children?: import("svelte").Snippet;
7
- }, {}, "ref" | "checked" | "indeterminate">;
8
- Content: import("svelte").Component<{
9
- loop?: boolean | undefined;
10
- dir?: import("bits-ui").Direction | undefined;
11
- sticky?: "partial" | "always" | undefined;
12
- forceMount?: boolean | undefined;
13
- align?: import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Align | undefined;
14
- onInteractOutside?: import("node_modules/bits-ui/dist/bits/utilities/dismissible-layer/types.js").InteractOutsideEventHandler | undefined;
15
- interactOutsideBehavior?: import("node_modules/bits-ui/dist/bits/utilities/dismissible-layer/types.js").InteractOutsideBehaviorType | undefined;
16
- onFocusOutside?: ((event: FocusEvent) => void) | undefined;
17
- preventScroll?: boolean | undefined;
18
- onEscapeKeydown?: ((e: KeyboardEvent) => void) | undefined;
19
- escapeKeydownBehavior?: import("node_modules/bits-ui/dist/bits/utilities/escape-layer/types.js").EscapeBehaviorType | undefined;
20
- side?: import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Side | undefined;
21
- sideOffset?: number | undefined;
22
- alignOffset?: number | undefined | undefined;
23
- arrowPadding?: number | undefined;
24
- avoidCollisions?: boolean | undefined | undefined;
25
- collisionBoundary?: import("node_modules/bits-ui/dist/internal/types.js").Arrayable<import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Boundary> | undefined;
26
- collisionPadding?: (number | Partial<Record<import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Side, number>>) | undefined;
27
- hideWhenDetached?: boolean | undefined;
28
- updatePositionStrategy?: "optimized" | "always" | undefined;
29
- strategy?: "absolute" | "fixed" | undefined | undefined;
30
- customAnchor?: (string | HTMLElement | import("node_modules/bits-ui/dist/internal/floating-svelte/types.js").Measurable | null) | undefined;
31
- preventOverflowTextSelection?: boolean | undefined;
32
- onOpenAutoFocus?: import("node_modules/bits-ui/dist/internal/events.js").EventCallback | undefined;
33
- onCloseAutoFocus?: import("node_modules/bits-ui/dist/internal/events.js").EventCallback | undefined;
34
- trapFocus?: boolean | undefined;
35
- child?: import("svelte").Snippet<[import("bits-ui").FloatingContentSnippetProps & {
36
- props: Record<string, unknown>;
37
- }]> | undefined;
38
- children?: import("svelte").Snippet | undefined;
39
- style?: string | import("bits-ui").StyleProperties | null | undefined;
40
- ref?: HTMLElement | null | undefined;
41
- } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, {
42
- loop?: boolean | undefined;
43
- dir?: import("bits-ui").Direction | undefined;
44
- sticky?: "partial" | "always" | undefined;
45
- forceMount?: boolean | undefined;
46
- align?: import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Align | undefined;
47
- onInteractOutside?: import("node_modules/bits-ui/dist/bits/utilities/dismissible-layer/types.js").InteractOutsideEventHandler | undefined;
48
- interactOutsideBehavior?: import("node_modules/bits-ui/dist/bits/utilities/dismissible-layer/types.js").InteractOutsideBehaviorType | undefined;
49
- onFocusOutside?: ((event: FocusEvent) => void) | undefined;
50
- preventScroll?: boolean | undefined;
51
- onEscapeKeydown?: ((e: KeyboardEvent) => void) | undefined;
52
- escapeKeydownBehavior?: import("node_modules/bits-ui/dist/bits/utilities/escape-layer/types.js").EscapeBehaviorType | undefined;
53
- side?: import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Side | undefined;
54
- sideOffset?: number | undefined;
55
- alignOffset?: number | undefined | undefined;
56
- arrowPadding?: number | undefined;
57
- avoidCollisions?: boolean | undefined | undefined;
58
- collisionBoundary?: import("node_modules/bits-ui/dist/internal/types.js").Arrayable<import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Boundary> | undefined;
59
- collisionPadding?: (number | Partial<Record<import("node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js").Side, number>>) | undefined;
60
- hideWhenDetached?: boolean | undefined;
61
- updatePositionStrategy?: "optimized" | "always" | undefined;
62
- strategy?: "absolute" | "fixed" | undefined | undefined;
63
- customAnchor?: (string | HTMLElement | import("node_modules/bits-ui/dist/internal/floating-svelte/types.js").Measurable | null) | undefined;
64
- preventOverflowTextSelection?: boolean | undefined;
65
- onOpenAutoFocus?: import("node_modules/bits-ui/dist/internal/events.js").EventCallback | undefined;
66
- onCloseAutoFocus?: import("node_modules/bits-ui/dist/internal/events.js").EventCallback | undefined;
67
- trapFocus?: boolean | undefined;
68
- child?: import("svelte").Snippet<[import("bits-ui").FloatingContentSnippetProps & {
69
- props: Record<string, unknown>;
70
- }]> | undefined;
71
- children?: import("svelte").Snippet | undefined;
72
- style?: string | import("bits-ui").StyleProperties | null | undefined;
73
- ref?: HTMLElement | null | undefined;
74
- }> & {
75
- portalProps?: import("../../index.js").WithoutChildrenOrChild<import("svelte").ComponentProps<typeof Portal>>;
76
- }, {}, "ref">;
77
- Group: import("svelte").Component<import("bits-ui").ContextMenuGroupProps, {}, "ref">;
78
- GroupHeading: import("svelte").Component<Omit<{}, "child" | "children"> & {
79
- child?: import("svelte").Snippet<[{
80
- props: Record<string, unknown>;
81
- }]> | undefined;
82
- children?: import("svelte").Snippet<[]> | undefined;
83
- style?: import("bits-ui").StyleProperties | string | null | undefined;
84
- ref?: HTMLElement | null | undefined;
85
- } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").ContextMenuGroupHeadingPropsWithoutHTML> & {
86
- inset?: boolean;
87
- }, {}, "ref">;
88
- Item: import("svelte").Component<Omit<{
89
- disabled?: boolean;
90
- textValue?: string;
91
- onSelect?: (event: Event) => void;
92
- closeOnSelect?: boolean;
93
- }, "child" | "children"> & {
94
- child?: import("svelte").Snippet<[{
95
- props: Record<string, unknown>;
96
- }]> | undefined;
97
- children?: import("svelte").Snippet<[]> | undefined;
98
- style?: import("bits-ui").StyleProperties | string | null | undefined;
99
- ref?: HTMLElement | null | undefined;
100
- } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").ContextMenuItemPropsWithoutHTML<{
101
- _default: never;
102
- }>> & {
103
- inset?: boolean;
104
- variant?: "default" | "destructive";
105
- }, {}, "ref">;
106
- Label: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
107
- ref?: HTMLElement | null | undefined;
108
- } & {
109
- inset?: boolean;
110
- }, {}, "ref">;
111
- Portal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
112
- RadioGroup: import("svelte").Component<import("bits-ui").ContextMenuRadioGroupProps, {}, "value" | "ref">;
113
- RadioItem: import("svelte").Component<Omit<import("bits-ui").ContextMenuRadioItemProps, "child">, {}, "ref">;
114
- Separator: import("svelte").Component<import("bits-ui").ContextMenuSeparatorProps, {}, "ref">;
115
- Shortcut: import("svelte").Component<import("../../index.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
116
- Sub: import("svelte").Component<import("bits-ui").ContextMenuSubPropsWithoutHTML, {}, "open">;
117
- SubContent: import("svelte").Component<import("bits-ui").ContextMenuSubContentProps, {}, "ref">;
118
- SubTrigger: import("svelte").Component<Omit<import("bits-ui").ContextMenuItemPropsWithoutHTML<{
119
- _default: never;
120
- }>, "closeOnSelect"> & {
121
- openDelay?: number;
122
- } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").ContextMenuSubTriggerPropsWithoutHTML> & {
123
- inset?: boolean;
124
- }, {}, "ref">;
125
- Trigger: import("svelte").Component<import("bits-ui").DropdownMenuTriggerProps, {}, "ref">;
126
- };
127
- export { DropdownMenu };
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { Accordion, Alert, Button, Calendar, Card, Checkbox, CircularProgress, DataGrid, DataGridSortHeader, DropdownMenu, Field, Input, Label, Placeholder, Select, Separator, Spinner, Tooltip, Typography, } from './components/index.js';
2
- export type { AlertVariant, CardVariant, CircularProgressProps, DataGridColumn, DataGridColumns, DataGridProps, DataGridSortHeaderProps, DataGridSorting, DataGridState, FieldOrientation, FieldVariants, InputProps, InputType, PlaceholderProps, PlaceholderSize, SeparatorProps, SpinnerSize, TooltipProps, TypographyAlign, TypographyColor, TypographyVariant, } from './components/index.js';
3
- export * from './styles/index.js';
@@ -1,24 +0,0 @@
1
- //#region node_modules/.pnpm/@emotion+hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js
2
- function murmur2(str) {
3
- var h = 0;
4
- var k, i = 0, len = str.length;
5
- for (; len >= 4; ++i, len -= 4) {
6
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
7
- k = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
8
- k ^= k >>> 24;
9
- h = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
10
- }
11
- switch (len) {
12
- case 3: h ^= (str.charCodeAt(i + 2) & 255) << 16;
13
- case 2: h ^= (str.charCodeAt(i + 1) & 255) << 8;
14
- case 1:
15
- h ^= str.charCodeAt(i) & 255;
16
- h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
17
- }
18
- h ^= h >>> 13;
19
- h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
20
- return ((h ^ h >>> 15) >>> 0).toString(36);
21
- }
22
-
23
- //#endregion
24
- export { murmur2 };
@@ -1,43 +0,0 @@
1
- //#region node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.browser.esm.js
2
- var mockAdapter = {
3
- appendCss: () => {},
4
- registerClassName: () => {},
5
- onEndFileScope: () => {},
6
- registerComposition: () => {},
7
- markCompositionUsed: () => {},
8
- getIdentOption: () => "debug"
9
- };
10
- var adapterStack = [mockAdapter];
11
- var currentAdapter = () => {
12
- if (adapterStack.length < 1) throw new Error("No adapter configured");
13
- return adapterStack[adapterStack.length - 1];
14
- };
15
- var hasConfiguredAdapter = false;
16
- var setAdapterIfNotSet = (newAdapter) => {
17
- if (!hasConfiguredAdapter) setAdapter(newAdapter);
18
- };
19
- var setAdapter = (newAdapter) => {
20
- if (!newAdapter) throw new Error("No adapter provided when calling \"setAdapter\"");
21
- hasConfiguredAdapter = true;
22
- adapterStack.push(newAdapter);
23
- };
24
- var appendCss = function appendCss$1() {
25
- return currentAdapter().appendCss(...arguments);
26
- };
27
- var registerClassName = function registerClassName$1() {
28
- return currentAdapter().registerClassName(...arguments);
29
- };
30
- var registerComposition = function registerComposition$1() {
31
- return currentAdapter().registerComposition(...arguments);
32
- };
33
- var markCompositionUsed = function markCompositionUsed$1() {
34
- return currentAdapter().markCompositionUsed(...arguments);
35
- };
36
- var getIdentOption = function getIdentOption$1() {
37
- var adapter = currentAdapter();
38
- if (!("getIdentOption" in adapter)) return "debug";
39
- return adapter.getIdentOption(...arguments);
40
- };
41
-
42
- //#endregion
43
- export { appendCss, getIdentOption, markCompositionUsed, registerClassName, registerComposition, setAdapterIfNotSet };