@pathscale/ui 0.0.12 → 0.0.13

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.
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,48 @@
1
+ import { clsx } from './HUHXQCKK.js';
2
+ import { twMerge } from './STFCLC5R.js';
3
+ import { template, spread, mergeProps } from 'solid-js/web';
4
+ import { splitProps } from 'solid-js';
5
+
6
+ var _tmpl$ = /* @__PURE__ */ template(`<span>`);
7
+ var Loading = (props) => {
8
+ const [local, others] = splitProps(props, ["size", "variant", "color", "dataTheme", "class", "className", "style"]);
9
+ const classes = () => twMerge("loading", local.class, local.className, clsx({
10
+ "loading-xl": local.size === "xl",
11
+ "loading-lg": local.size === "lg",
12
+ "loading-md": local.size === "md",
13
+ "loading-sm": local.size === "sm",
14
+ "loading-xs": local.size === "xs",
15
+ "loading-spinner": local.variant === "spinner",
16
+ "loading-dots": local.variant === "dots",
17
+ "loading-ring": local.variant === "ring",
18
+ "loading-ball": local.variant === "ball",
19
+ "loading-bars": local.variant === "bars",
20
+ "loading-infinity": local.variant === "infinity",
21
+ "text-primary": local.color === "primary",
22
+ "text-secondary": local.color === "secondary",
23
+ "text-accent": local.color === "accent",
24
+ "text-info": local.color === "info",
25
+ "text-success": local.color === "success",
26
+ "text-warning": local.color === "warning",
27
+ "text-error": local.color === "error",
28
+ "text-ghost": local.color === "ghost"
29
+ }));
30
+ return (() => {
31
+ var _el$ = _tmpl$();
32
+ spread(_el$, mergeProps(others, {
33
+ get ["data-theme"]() {
34
+ return local.dataTheme;
35
+ },
36
+ get ["class"]() {
37
+ return classes();
38
+ },
39
+ get style() {
40
+ return local.style;
41
+ }
42
+ }), false, false);
43
+ return _el$;
44
+ })();
45
+ };
46
+ var Loading_default = Loading;
47
+
48
+ export { Loading_default };
File without changes
@@ -0,0 +1,57 @@
1
+ import {
2
+ clsx
3
+ } from "./O7LDJCQS.jsx";
4
+ import {
5
+ twMerge
6
+ } from "./5HG7XWVC.jsx";
7
+
8
+ // src/components/loading/Loading.tsx
9
+ import { splitProps } from "solid-js";
10
+ var Loading = (props) => {
11
+ const [local, others] = splitProps(props, [
12
+ "size",
13
+ "variant",
14
+ "color",
15
+ "dataTheme",
16
+ "class",
17
+ "className",
18
+ "style"
19
+ ]);
20
+ const classes = () => twMerge(
21
+ "loading",
22
+ local.class,
23
+ local.className,
24
+ clsx({
25
+ "loading-xl": local.size === "xl",
26
+ "loading-lg": local.size === "lg",
27
+ "loading-md": local.size === "md",
28
+ "loading-sm": local.size === "sm",
29
+ "loading-xs": local.size === "xs",
30
+ "loading-spinner": local.variant === "spinner",
31
+ "loading-dots": local.variant === "dots",
32
+ "loading-ring": local.variant === "ring",
33
+ "loading-ball": local.variant === "ball",
34
+ "loading-bars": local.variant === "bars",
35
+ "loading-infinity": local.variant === "infinity",
36
+ "text-primary": local.color === "primary",
37
+ "text-secondary": local.color === "secondary",
38
+ "text-accent": local.color === "accent",
39
+ "text-info": local.color === "info",
40
+ "text-success": local.color === "success",
41
+ "text-warning": local.color === "warning",
42
+ "text-error": local.color === "error",
43
+ "text-ghost": local.color === "ghost"
44
+ })
45
+ );
46
+ return <span
47
+ {...others}
48
+ data-theme={local.dataTheme}
49
+ class={classes()}
50
+ style={local.style}
51
+ />;
52
+ };
53
+ var Loading_default = Loading;
54
+
55
+ export {
56
+ Loading_default
57
+ };
@@ -1,3 +1,6 @@
1
+ import {
2
+ Loading_default
3
+ } from "./T324HUIT.jsx";
1
4
  import {
2
5
  clsx
3
6
  } from "./O7LDJCQS.jsx";
@@ -6,57 +9,8 @@ import {
6
9
  } from "./5HG7XWVC.jsx";
7
10
 
8
11
  // src/components/button/Button.tsx
9
- import { splitProps as splitProps2, Show } from "solid-js";
12
+ import { splitProps, Show } from "solid-js";
10
13
  import { Dynamic } from "solid-js/web";
11
-
12
- // src/components/loading/Loading.tsx
13
- import { splitProps } from "solid-js";
14
- var Loading = (props) => {
15
- const [local, others] = splitProps(props, [
16
- "size",
17
- "variant",
18
- "color",
19
- "dataTheme",
20
- "class",
21
- "className",
22
- "style"
23
- ]);
24
- const classes = () => twMerge(
25
- "loading",
26
- local.class,
27
- local.className,
28
- clsx({
29
- "loading-xl": local.size === "xl",
30
- "loading-lg": local.size === "lg",
31
- "loading-md": local.size === "md",
32
- "loading-sm": local.size === "sm",
33
- "loading-xs": local.size === "xs",
34
- "loading-spinner": local.variant === "spinner",
35
- "loading-dots": local.variant === "dots",
36
- "loading-ring": local.variant === "ring",
37
- "loading-ball": local.variant === "ball",
38
- "loading-bars": local.variant === "bars",
39
- "loading-infinity": local.variant === "infinity",
40
- "text-primary": local.color === "primary",
41
- "text-secondary": local.color === "secondary",
42
- "text-accent": local.color === "accent",
43
- "text-info": local.color === "info",
44
- "text-success": local.color === "success",
45
- "text-warning": local.color === "warning",
46
- "text-error": local.color === "error",
47
- "text-ghost": local.color === "ghost"
48
- })
49
- );
50
- return <span
51
- {...others}
52
- data-theme={local.dataTheme}
53
- class={classes()}
54
- style={local.style}
55
- />;
56
- };
57
- var Loading_default = Loading;
58
-
59
- // src/components/button/Button.tsx
60
14
  var VoidElementList = [
61
15
  "area",
62
16
  "base",
@@ -75,7 +29,7 @@ var VoidElementList = [
75
29
  "wbr"
76
30
  ];
77
31
  var Button = (props) => {
78
- const [local, others] = splitProps2(
32
+ const [local, others] = splitProps(
79
33
  props,
80
34
  [
81
35
  "children",
@@ -1,51 +1,9 @@
1
+ import { Loading_default } from './H2Q3L5KM.js';
1
2
  import { clsx } from './HUHXQCKK.js';
2
3
  import { twMerge } from './STFCLC5R.js';
3
- import { createComponent, Dynamic, mergeProps, memo, template, spread } from 'solid-js/web';
4
+ import { createComponent, Dynamic, mergeProps, memo } from 'solid-js/web';
4
5
  import { splitProps, Show } from 'solid-js';
5
6
 
6
- var _tmpl$ = /* @__PURE__ */ template(`<span>`);
7
- var Loading = (props) => {
8
- const [local, others] = splitProps(props, ["size", "variant", "color", "dataTheme", "class", "className", "style"]);
9
- const classes = () => twMerge("loading", local.class, local.className, clsx({
10
- "loading-xl": local.size === "xl",
11
- "loading-lg": local.size === "lg",
12
- "loading-md": local.size === "md",
13
- "loading-sm": local.size === "sm",
14
- "loading-xs": local.size === "xs",
15
- "loading-spinner": local.variant === "spinner",
16
- "loading-dots": local.variant === "dots",
17
- "loading-ring": local.variant === "ring",
18
- "loading-ball": local.variant === "ball",
19
- "loading-bars": local.variant === "bars",
20
- "loading-infinity": local.variant === "infinity",
21
- "text-primary": local.color === "primary",
22
- "text-secondary": local.color === "secondary",
23
- "text-accent": local.color === "accent",
24
- "text-info": local.color === "info",
25
- "text-success": local.color === "success",
26
- "text-warning": local.color === "warning",
27
- "text-error": local.color === "error",
28
- "text-ghost": local.color === "ghost"
29
- }));
30
- return (() => {
31
- var _el$ = _tmpl$();
32
- spread(_el$, mergeProps(others, {
33
- get ["data-theme"]() {
34
- return local.dataTheme;
35
- },
36
- get ["class"]() {
37
- return classes();
38
- },
39
- get style() {
40
- return local.style;
41
- }
42
- }), false, false);
43
- return _el$;
44
- })();
45
- };
46
- var Loading_default = Loading;
47
-
48
- // src/components/button/Button.tsx
49
7
  var VoidElementList = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "keygen", "meta", "param", "source", "track", "wbr"];
50
8
  var Button = (props) => {
51
9
  const [local, others] = splitProps(props, ["children", "shape", "size", "variant", "color", "glass", "startIcon", "endIcon", "wide", "fullWidth", "responsive", "animation", "loading", "active", "disabled", "dataTheme", "class", "className", "style", "as"]);
@@ -1 +1 @@
1
- export { Button_default as default } from '../../chunk/MZWBWFDD.js';
1
+ export { Button_default as default } from '../../chunk/ZH7DKMMN.js';
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  Button_default
3
- } from "../../chunk/XQCSYRVP.jsx";
3
+ } from "../../chunk/T5LDPSFV.jsx";
4
+ import "../../chunk/T324HUIT.jsx";
4
5
  import "../../chunk/O7LDJCQS.jsx";
5
6
  import "../../chunk/5HG7XWVC.jsx";
6
7
  export {
@@ -0,0 +1,11 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ComponentSize, b as ComponentColor, I as IComponentBaseProps } from '../../types-CUG9pToa.js';
3
+
4
+ type LoadingProps = {
5
+ size?: ComponentSize;
6
+ color?: ComponentColor;
7
+ variant?: "spinner" | "dots" | "ring" | "ball" | "bars" | "infinity";
8
+ } & IComponentBaseProps & JSX.HTMLAttributes<HTMLSpanElement>;
9
+ declare const Loading: Component<LoadingProps>;
10
+
11
+ export { Loading as default };
@@ -0,0 +1 @@
1
+ export { Loading_default as default } from '../../chunk/H2Q3L5KM.js';
@@ -0,0 +1,9 @@
1
+ import "../../chunk/PFB27MP3.jsx";
2
+ import {
3
+ Loading_default
4
+ } from "../../chunk/T324HUIT.jsx";
5
+ import "../../chunk/O7LDJCQS.jsx";
6
+ import "../../chunk/5HG7XWVC.jsx";
7
+ export {
8
+ Loading_default as default
9
+ };
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export { T as Timeline } from './Timeline-Bd4SxHMT.js';
25
25
  export { Toaster, default as toast } from './components/toast/index.js';
26
26
  export { M as Mask } from './Mask-CPb596Mg.js';
27
27
  export { default as Join } from './components/join/index.js';
28
+ export { default as Loading } from './components/loading/index.js';
28
29
  export { C as CollapseContent, a as CollapseTitle, S as Summary } from './CollapseTitle-BNxog3is.js';
29
30
  export { CollapseDetails } from './components/collapse/index.js';
30
31
  import 'solid-js';
package/dist/index.js CHANGED
@@ -1,9 +1,11 @@
1
+ export { table_default as Table } from './chunk/QYEMOKUG.js';
1
2
  export { tabs_default as Tabs } from './chunk/WOT36Q7O.js';
2
3
  export { Textarea_default as Textarea } from './chunk/Q4442PU4.js';
3
4
  export { timeline_default as Timeline } from './chunk/WUZETUQR.js';
4
5
  export { Toaster_default as Toaster, toast_default as toast } from './chunk/JWRGKHDO.js';
5
6
  export { Toggle_default as Toggle } from './chunk/DVFQAAZR.js';
6
7
  export { Tooltip_default as Tooltip } from './chunk/MM2DZQL3.js';
8
+ export { mask_default as Mask } from './chunk/UNKDNDT3.js';
7
9
  export { Menu_default as Menu } from './chunk/JQ4HSRDP.js';
8
10
  export { Navbar_default as Navbar, NavbarDropdown_default as NavbarDropdown, NavbarItem_default as NavbarItem } from './chunk/P653OZ5D.js';
9
11
  export { Pagination_default as Pagination } from './chunk/L4A67X7S.js';
@@ -11,18 +13,17 @@ export { Polymorphic_default as Polymorphic, PolymorphicButton_default as Polymo
11
13
  export { progress_default as Progress } from './chunk/GMIXRYN3.js';
12
14
  export { Select_default as Select } from './chunk/5IJ7WEIF.js';
13
15
  export { steps_default as Steps } from './chunk/GL7JG772.js';
14
- export { table_default as Table } from './chunk/QYEMOKUG.js';
15
16
  export { Checkbox_default as Checkbox } from './chunk/HEOKGP5U.js';
16
- export { field_default as Field } from './chunk/MAX47D6F.js';
17
17
  export { Dropdown_default as Dropdown, DropdownItem_default as DropdownItem, DropdownMenu_default as DropdownMenu, DropdownTrigger_default as DropdownTrigger } from './chunk/3FBDYV4P.js';
18
+ export { field_default as Field } from './chunk/MAX47D6F.js';
18
19
  export { FileInput_default as FileInput } from './chunk/BHLLVOVR.js';
19
20
  export { Input_default as Input } from './chunk/EDDBK4J6.js';
20
21
  export { Join_default as Join } from './chunk/3I23P4TJ.js';
21
- export { mask_default as Mask } from './chunk/UNKDNDT3.js';
22
22
  export { Accordion_default as Accordion } from './chunk/2OJYONJ3.js';
23
23
  export { CollapseContent, CollapseDetails, CollapseTitle, Summary } from './chunk/2VQ2762Z.js';
24
24
  export { autocomplete_default as Autocomplete } from './chunk/MYERRMTM.js';
25
25
  export { avatar_default as Avatar } from './chunk/2XPPNBYK.js';
26
26
  export { Badge_default as Badge } from './chunk/G5UEZ2VC.js';
27
27
  export { Breadcrumbs_default as Breadcrumbs } from './chunk/DJI5XKAV.js';
28
- export { Button_default as Button } from './chunk/MZWBWFDD.js';
28
+ export { Button_default as Button } from './chunk/ZH7DKMMN.js';
29
+ export { Loading_default as Loading } from './chunk/H2Q3L5KM.js';
package/dist/index.jsx CHANGED
@@ -1,22 +1,28 @@
1
+ import {
2
+ table_default
3
+ } from "./chunk/HWAGW5N4.jsx";
1
4
  import {
2
5
  tabs_default
3
6
  } from "./chunk/KV6LTJHI.jsx";
4
7
  import {
5
8
  Textarea_default
6
9
  } from "./chunk/IG323YKF.jsx";
7
- import {
8
- timeline_default
9
- } from "./chunk/DSTUGZW6.jsx";
10
10
  import {
11
11
  Toaster_default,
12
12
  toast_default
13
13
  } from "./chunk/FKSQPGOD.jsx";
14
+ import {
15
+ timeline_default
16
+ } from "./chunk/DSTUGZW6.jsx";
14
17
  import {
15
18
  Toggle_default
16
19
  } from "./chunk/6P5JIKPF.jsx";
17
20
  import {
18
21
  Tooltip_default
19
22
  } from "./chunk/R6ZBT7CY.jsx";
23
+ import {
24
+ mask_default
25
+ } from "./chunk/5O6WC3OB.jsx";
20
26
  import {
21
27
  Menu_default
22
28
  } from "./chunk/SVJIYMYJ.jsx";
@@ -25,13 +31,13 @@ import {
25
31
  NavbarItem_default,
26
32
  Navbar_default
27
33
  } from "./chunk/55B7Q4NT.jsx";
28
- import {
29
- Pagination_default
30
- } from "./chunk/R5G3PODL.jsx";
31
34
  import {
32
35
  PolymorphicButton_default,
33
36
  Polymorphic_default
34
37
  } from "./chunk/T2LDLYWV.jsx";
38
+ import {
39
+ Pagination_default
40
+ } from "./chunk/R5G3PODL.jsx";
35
41
  import {
36
42
  progress_default
37
43
  } from "./chunk/STKRVQR6.jsx";
@@ -41,9 +47,6 @@ import {
41
47
  import {
42
48
  steps_default
43
49
  } from "./chunk/LGDDR242.jsx";
44
- import {
45
- table_default
46
- } from "./chunk/HWAGW5N4.jsx";
47
50
  import {
48
51
  Checkbox_default
49
52
  } from "./chunk/SYWB4UN3.jsx";
@@ -53,22 +56,29 @@ import {
53
56
  DropdownTrigger_default,
54
57
  Dropdown_default
55
58
  } from "./chunk/OJRG4ZAB.jsx";
56
- import {
57
- field_default
58
- } from "./chunk/VN5BKHA2.jsx";
59
59
  import {
60
60
  FileInput_default
61
61
  } from "./chunk/FZRQDGPD.jsx";
62
62
  import {
63
63
  Input_default
64
64
  } from "./chunk/JSQBKK7L.jsx";
65
+ import {
66
+ field_default
67
+ } from "./chunk/VN5BKHA2.jsx";
65
68
  import "./chunk/KXJZKDJX.jsx";
66
69
  import {
67
70
  Join_default
68
71
  } from "./chunk/DN3P54J2.jsx";
72
+ import "./chunk/PFB27MP3.jsx";
69
73
  import {
70
- mask_default
71
- } from "./chunk/5O6WC3OB.jsx";
74
+ avatar_default
75
+ } from "./chunk/XM3KF5LV.jsx";
76
+ import {
77
+ Badge_default
78
+ } from "./chunk/ZYEP35R3.jsx";
79
+ import {
80
+ Breadcrumbs_default
81
+ } from "./chunk/I36LHZUY.jsx";
72
82
  import {
73
83
  Accordion_default
74
84
  } from "./chunk/YWIT2MRI.jsx";
@@ -82,18 +92,12 @@ import {
82
92
  autocomplete_default
83
93
  } from "./chunk/C4YO33NN.jsx";
84
94
  import "./chunk/P7WPLZNA.jsx";
85
- import {
86
- avatar_default
87
- } from "./chunk/XM3KF5LV.jsx";
88
- import {
89
- Badge_default
90
- } from "./chunk/ZYEP35R3.jsx";
91
- import {
92
- Breadcrumbs_default
93
- } from "./chunk/I36LHZUY.jsx";
94
95
  import {
95
96
  Button_default
96
- } from "./chunk/XQCSYRVP.jsx";
97
+ } from "./chunk/T5LDPSFV.jsx";
98
+ import {
99
+ Loading_default
100
+ } from "./chunk/T324HUIT.jsx";
97
101
  import "./chunk/O7LDJCQS.jsx";
98
102
  import "./chunk/5HG7XWVC.jsx";
99
103
  export {
@@ -115,6 +119,7 @@ export {
115
119
  FileInput_default as FileInput,
116
120
  Input_default as Input,
117
121
  Join_default as Join,
122
+ Loading_default as Loading,
118
123
  mask_default as Mask,
119
124
  Menu_default as Menu,
120
125
  Navbar_default as Navbar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",