@caseparts-org/caseblocks 0.0.15 → 0.0.17

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 (32) hide show
  1. package/dist/assets/Button.css +1 -1
  2. package/dist/assets/Root.css +1 -1
  3. package/dist/atoms/Button/Button.d.ts +1 -1
  4. package/dist/atoms/Button/Button.js +35 -33
  5. package/dist/atoms/Button/Button.stories.d.ts +1 -1
  6. package/dist/atoms/Button/Button.stories.js +13 -16
  7. package/dist/atoms/Flex/Flex.stories.d.ts +1 -1
  8. package/dist/atoms/Grid/Grid.stories.d.ts +1 -1
  9. package/dist/atoms/Icon/Icon.stories.d.ts +1 -1
  10. package/dist/atoms/Input/Input.stories.d.ts +1 -1
  11. package/dist/atoms/Link/Link.stories.d.ts +1 -1
  12. package/dist/atoms/Separator/Separator.stories.d.ts +1 -1
  13. package/dist/atoms/Text/Text.stories.d.ts +1 -1
  14. package/dist/molecules/Account/Account.js +40 -38
  15. package/dist/molecules/Account/Account.stories.d.ts +1 -1
  16. package/dist/molecules/Avatar/Avatar.d.ts +1 -1
  17. package/dist/molecules/Avatar/Avatar.js +15 -20
  18. package/dist/molecules/Avatar/Avatar.stories.d.ts +1 -1
  19. package/dist/molecules/Cart/Cart.stories.d.ts +1 -1
  20. package/dist/molecules/Chip/Chip.stories.d.ts +1 -1
  21. package/dist/molecules/HamburgerMenu/HamburgerMenu.js +20 -21
  22. package/dist/molecules/Logo/Logo.stories.d.ts +1 -1
  23. package/dist/molecules/SearchBox/SearchBox.stories.d.ts +1 -1
  24. package/dist/molecules/ToggleView/ToggleView.stories.d.ts +1 -1
  25. package/dist/molecules/Tooltip/Tooltip.js +558 -19241
  26. package/dist/molecules/Tooltip/Tooltip.stories.d.ts +1 -1
  27. package/dist/organisms/ChipSelector/ChipSelector.stories.d.ts +1 -1
  28. package/dist/organisms/MainNav/MainNav.js +22 -23
  29. package/dist/organisms/MainNav/MainNav.stories.d.ts +1 -1
  30. package/dist/organisms/SpinZoomViewer/SpinZoomViewer.stories.d.ts +1 -1
  31. package/dist/styles/tokens.css +52 -0
  32. package/package.json +12 -16
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Tooltip } from './Tooltip';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { ChipSelector } from './ChipSelector';
2
- import { StoryObj } from '@storybook/react';
2
+ import { StoryObj } from '@storybook/react-vite';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof ChipSelector;
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { Text as l } from "../../atoms/Text/Text.js";
3
3
  import { Link as a } from "../../atoms/Link/Link.js";
4
4
  import { Icon as p } from "../../atoms/Icon/Icon.js";
@@ -12,19 +12,18 @@ import { Tooltip as k } from "../../molecules/Tooltip/Tooltip.js";
12
12
  import { Account as y } from "../../molecules/Account/Account.js";
13
13
  import { getHideAtStyles as z } from "../../atoms/HideAt.js";
14
14
  import { c as T } from "../../clsx-OuTLNxxd.js";
15
- import '../../assets/MainNav.css';const j = "_topNav_c5ei0_1", D = "_operations_c5ei0_9", F = "_search_c5ei0_16", I = "_siteLink_c5ei0_19", U = "_accountArea_c5ei0_23", H = "_cart_c5ei0_29", K = "_categories_c5ei0_36", M = "_category_c5ei0_50", Q = "_submenuTooltip_c5ei0_72", S = "_menuList_c5ei0_79", i = {
15
+ import '../../assets/MainNav.css';const j = "_topNav_c5ei0_1", D = "_operations_c5ei0_9", F = "_search_c5ei0_16", I = "_siteLink_c5ei0_19", U = "_accountArea_c5ei0_23", H = "_categories_c5ei0_36", K = "_category_c5ei0_50", M = "_submenuTooltip_c5ei0_72", Q = "_menuList_c5ei0_79", i = {
16
16
  topNav: j,
17
17
  operations: D,
18
18
  search: F,
19
19
  siteLink: I,
20
20
  accountArea: U,
21
- cart: H,
22
- categories: K,
23
- category: M,
24
- submenuTooltip: Q,
25
- menuList: S
21
+ categories: H,
22
+ category: K,
23
+ submenuTooltip: M,
24
+ menuList: Q
26
25
  };
27
- function ee({
26
+ function R({
28
27
  account: m,
29
28
  categories: n,
30
29
  faqRoute: c,
@@ -37,8 +36,8 @@ function ee({
37
36
  onCartClick: b
38
37
  // chat,
39
38
  }) {
40
- return /* @__PURE__ */ e(v, { children: /* @__PURE__ */ o(x, { span: 12, children: [
41
- /* @__PURE__ */ o(
39
+ return /* @__PURE__ */ e(v, { children: /* @__PURE__ */ t(x, { span: 12, children: [
40
+ /* @__PURE__ */ t(
42
41
  s,
43
42
  {
44
43
  flexDirection: "row",
@@ -47,7 +46,7 @@ function ee({
47
46
  className: i.topNav,
48
47
  children: [
49
48
  /* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(L, {}) }),
50
- /* @__PURE__ */ o(
49
+ /* @__PURE__ */ t(
51
50
  s,
52
51
  {
53
52
  flexDirection: "row",
@@ -56,9 +55,9 @@ function ee({
56
55
  className: i.operations,
57
56
  children: [
58
57
  /* @__PURE__ */ e(s, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(u, { action: "/search" }) }),
59
- /* @__PURE__ */ e(t, { href: h, hideAt: ["sm", "md"], children: "Custom Parts" }),
60
- /* @__PURE__ */ e(t, { href: c, hideAt: ["sm", "md"], children: "FAQ" }),
61
- /* @__PURE__ */ e(t, { href: d, hideAt: ["sm", "md"], children: "Contact Us" }),
58
+ /* @__PURE__ */ e(o, { href: h, hideAt: ["sm", "md"], children: "Custom Parts" }),
59
+ /* @__PURE__ */ e(o, { href: c, hideAt: ["sm", "md"], children: "FAQ" }),
60
+ /* @__PURE__ */ e(o, { href: d, hideAt: ["sm", "md"], children: "Contact Us" }),
62
61
  /* @__PURE__ */ e("div", { className: i.accountArea, children: /* @__PURE__ */ e(
63
62
  y,
64
63
  {
@@ -69,12 +68,12 @@ function ee({
69
68
  }
70
69
  ) }),
71
70
  /* @__PURE__ */ e(C, { onClick: b, cartItemCount: g }),
72
- /* @__PURE__ */ e(w, { hideAt: ["lg"], children: /* @__PURE__ */ o("ul", { className: i.menuList, children: [
73
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(t, { href: h, children: "Custom Parts" }) }),
74
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(t, { href: c, children: "FAQ" }) }),
75
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(t, { href: d, children: "Contact Us" }) }),
76
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(t, { href: _, children: "About Us" }) }),
77
- n && n.map((r) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ o(a, { href: r.route, children: [
71
+ /* @__PURE__ */ e(w, { hideAt: ["lg"], children: /* @__PURE__ */ t("ul", { className: i.menuList, children: [
72
+ /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(o, { href: h, children: "Custom Parts" }) }),
73
+ /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(o, { href: c, children: "FAQ" }) }),
74
+ /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(o, { href: d, children: "Contact Us" }) }),
75
+ /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(o, { href: _, children: "About Us" }) }),
76
+ n && n.map((r) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ t(a, { href: r.route, children: [
78
77
  /* @__PURE__ */ e(l, { size: "sm", weight: "semibold", children: r.label }),
79
78
  /* @__PURE__ */ e(
80
79
  p,
@@ -96,7 +95,7 @@ function ee({
96
95
  n && n.length > 0 && /* @__PURE__ */ e("ul", { className: T(i.categories, z(["sm"])), children: n.map((r) => /* @__PURE__ */ e(
97
96
  k,
98
97
  {
99
- trigger: /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ o(a, { href: r.route, children: [
98
+ trigger: /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ t(a, { href: r.route, children: [
100
99
  /* @__PURE__ */ e(l, { size: "sm", weight: "semibold", children: r.label }),
101
100
  r.showChevron && /* @__PURE__ */ e(
102
101
  p,
@@ -114,7 +113,7 @@ function ee({
114
113
  )) })
115
114
  ] }) });
116
115
  }
117
- function t({
116
+ function o({
118
117
  href: m,
119
118
  children: n,
120
119
  ...c
@@ -122,5 +121,5 @@ function t({
122
121
  return /* @__PURE__ */ e(a, { href: m, className: i.siteLink, ...c, children: /* @__PURE__ */ e(l, { size: "md", variant: "display", children: n }) });
123
122
  }
124
123
  export {
125
- ee as MainNav
124
+ R as MainNav
126
125
  };
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  import { MainNav } from './MainNav';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { default as SpinZoomViewer } from './SpinZoomViewer';
3
3
  declare const meta: Meta<typeof SpinZoomViewer>;
4
4
  export default meta;
@@ -1,6 +1,45 @@
1
1
  /* Exported from Figma on Feb 24, 2025, using the variables2css plugin. */
2
2
  /* Note that Figma contains both Desktop and Mobile modes, but we only capture the Desktop ones. */
3
3
 
4
+ /*
5
+ rem to pixel conversion: 1rem = 16px
6
+ Note that the values in Figma are in pixels, so we convert them to rems
7
+ by dividing by 16.
8
+
9
+ 10 px = 0.625rem
10
+ 12 px = 0.75rem
11
+ 14 px = 0.875rem
12
+ 16 px = 1rem
13
+ 18 px = 1.125rem
14
+ 20 px = 1.25rem
15
+ 22 px = 1.375rem
16
+ 24 px = 1.5rem
17
+ 26 px = 1.625rem
18
+ 28 px = 1.75rem
19
+ 30 px = 1.875rem
20
+ 32 px = 2rem
21
+ 34 px = 2.125rem
22
+ 36 px = 2.25rem
23
+ 38 px = 2.375rem
24
+ 40 px = 2.5rem
25
+ 42 px = 2.625rem
26
+ 44 px = 2.75rem
27
+ 46 px = 2.875rem
28
+ 48 px = 3rem
29
+ 50 px = 3.125rem
30
+ 52 px = 3.25rem
31
+ 54 px = 3.375rem
32
+ 56 px = 3.5rem
33
+ 58 px = 3.625rem
34
+ 60 px = 3.75rem
35
+ 62 px = 3.875rem
36
+ 64 px = 4rem
37
+ 66 px = 4.125rem
38
+ 68 px = 4.25rem
39
+ 70 px = 4.375rem
40
+ 72 px = 4.5rem
41
+ */
42
+
4
43
  /* Primitives */
5
44
  :root {
6
45
  /* Desktop */
@@ -54,6 +93,8 @@
54
93
  --font-size-4xl: 2.5rem;
55
94
  --font-size-5xl: 3rem;
56
95
  --font-size-6xl: 3.5rem;
96
+ --font-size-7xl: 4rem;
97
+ --font-size-8xl: 4.5rem;
57
98
  --font-weight-thin: 100;
58
99
  --font-weight-extra-light: 200;
59
100
  --font-weight-light: 300;
@@ -78,6 +119,7 @@
78
119
  --grid-columns-4-column: 0.25rem;
79
120
  */
80
121
 
122
+ --line-height-xxxs: 0.625rem;
81
123
  --line-height-xxs: 0.75rem;
82
124
  --line-height-xs: 0.875rem;
83
125
  --line-height-sm: 1rem;
@@ -107,6 +149,10 @@
107
149
  --spacing-6: 6rem;
108
150
  --spacing-7: 7rem;
109
151
  --spacing-8: 8rem;
152
+ --spacing-9: 9rem;
153
+ --spacing-10: 10rem;
154
+ --spacing-11: 11rem;
155
+ --spacing-12: 12rem;
110
156
  }
111
157
  /* Tokens */
112
158
  :root {
@@ -197,6 +243,10 @@
197
243
  --spacing-spacing-6xl: var(--spacing-6);
198
244
  --spacing-spacing-7xl: var(--spacing-7);
199
245
  --spacing-spacing-8xl: var(--spacing-8);
246
+ --spacing-spacing-9xl: var(--spacing-9);
247
+ --spacing-spacing-10xl: var(--spacing-10);
248
+ --spacing-spacing-11xl: var(--spacing-11);
249
+ --spacing-spacing-12xl: var(--spacing-12);
200
250
  }
201
251
  /* Typography Tokens */
202
252
  :root {
@@ -225,6 +275,8 @@
225
275
  --font-size-4xl: 2.5rem;
226
276
  --font-size-5xl: 3rem;
227
277
  --font-size-6xl: 3.5rem;
278
+ --font-size-7xl: 4rem;
279
+ --font-size-8xl: 4.5rem;
228
280
  --font-weight-thin: 100;
229
281
  --font-weight-extra-light: 200;
230
282
  --font-weight-light: 300;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -22,25 +22,19 @@
22
22
  "@fontsource-variable/roboto-condensed": "^5.1.1",
23
23
  "@fontsource/roboto": "^5.1.0",
24
24
  "clsx": "^2.1.1",
25
- "csstype": "^3.1.3",
26
- "react": "^18.3.1",
27
- "react-dom": "^18.3.1"
25
+ "csstype": "^3.1.3"
28
26
  },
29
27
  "peerDependencies": {
30
- "react": "^18.3.1",
31
- "react-dom": "^18.3.1",
28
+ "react": ">=18.3.1 <20.0.0",
29
+ "react-dom": ">=18.3.1 <20.0.0",
32
30
  "reactjs-popup": ">=2.0.0 <3.0.0"
33
31
  },
34
32
  "devDependencies": {
35
- "@chromatic-com/storybook": "^3.2.2",
33
+ "@chromatic-com/storybook": "^4.0.1",
36
34
  "@eslint/js": "^9.13.0",
37
- "@storybook/addon-essentials": "^8.4.5",
38
- "@storybook/addon-interactions": "^8.4.5",
39
- "@storybook/addon-onboarding": "^8.4.5",
40
- "@storybook/blocks": "^8.4.5",
41
- "@storybook/react": "^8.4.5",
42
- "@storybook/react-vite": "^8.4.5",
43
- "@storybook/test": "^8.4.5",
35
+ "@storybook/addon-docs": "^9.0.18",
36
+ "@storybook/addon-onboarding": "^9.0.18",
37
+ "@storybook/react-vite": "^9.0.18",
44
38
  "@types/node": "^22.9.0",
45
39
  "@types/react": "^18.3.12",
46
40
  "@types/react-dom": "^18.3.1",
@@ -49,14 +43,16 @@
49
43
  "eslint-config-prettier": "^9.1.0",
50
44
  "eslint-plugin-react-hooks": "^5.0.0",
51
45
  "eslint-plugin-react-refresh": "^0.4.14",
52
- "eslint-plugin-storybook": "^0.11.1",
46
+ "eslint-plugin-storybook": "^9.0.18",
53
47
  "glob": "^11.0.0",
54
48
  "globals": "^15.11.0",
55
49
  "husky": "^9.1.7",
56
50
  "lint-staged": "^15.2.10",
57
51
  "prettier": "3.4.2",
52
+ "react": "^19.1.1",
53
+ "react-dom": "^19.1.1",
58
54
  "reactjs-popup": "^2.0.6",
59
- "storybook": "^8.4.5",
55
+ "storybook": "^9.0.18",
60
56
  "typescript": "~5.6.2",
61
57
  "typescript-eslint": "^8.11.0",
62
58
  "vite": "^5.4.10",