@caseparts-org/caseblocks 0.0.17 → 0.0.18

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,15 +1,15 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { Button as r } from "./Button.js";
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import { Button as e } from "./Button.js";
3
3
  const n = {
4
4
  title: "Case Parts/Atoms/Button",
5
- component: r,
5
+ component: e,
6
6
  parameters: {
7
7
  // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
8
8
  layout: "centered"
9
9
  },
10
10
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
11
11
  tags: ["autodocs"]
12
- }, l = {
12
+ }, p = {
13
13
  args: {
14
14
  children: "Text",
15
15
  size: "md",
@@ -21,17 +21,26 @@ const n = {
21
21
  "tertiary",
22
22
  "cta-primary",
23
23
  "destructive"
24
- ], p = {
25
- render: () => /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: a.map((e) => /* @__PURE__ */ t(r, { variant: e, size: "md", children: e.charAt(0).toUpperCase() + e.slice(1) }, e)) })
24
+ ], l = {
25
+ render: () => /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: a.map((t) => /* @__PURE__ */ r(e, { variant: t, size: "md", children: t.charAt(0).toUpperCase() + t.slice(1) }, t)) })
26
26
  }, o = ["xxs", "xs", "sm", "md", "lg", "xl"], m = {
27
- render: () => /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: o.map((e) => /* @__PURE__ */ s(r, { size: e, variant: "primary", children: [
28
- e.charAt(0).toUpperCase() + e.slice(1).toUpperCase(),
29
- " Btn"
30
- ] }, e)) })
27
+ render: () => /* @__PURE__ */ r("div", { children: o.map((t) => /* @__PURE__ */ s(
28
+ e,
29
+ {
30
+ size: t,
31
+ variant: "primary",
32
+ style: { display: "block", marginBottom: "10px" },
33
+ children: [
34
+ t.charAt(0).toUpperCase() + t.slice(1).toUpperCase(),
35
+ " Btn"
36
+ ]
37
+ },
38
+ t
39
+ )) })
31
40
  };
32
41
  export {
33
- l as AllProps,
42
+ p as AllProps,
34
43
  m as Sizes,
35
- p as Variants,
44
+ l as Variants,
36
45
  n as default
37
46
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",