highsoft-ui 1.0.117 → 1.0.119

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 (92) hide show
  1. package/.cursorrules +845 -0
  2. package/CLAUDE.md +845 -0
  3. package/dist/Box-Bi-n_ZxQ.js +69 -0
  4. package/dist/Button-CJp__tle.js +63 -0
  5. package/dist/ButtonGroup-M9-A5Xva.js +53 -0
  6. package/dist/{Container-LAkF4ShX.js → Container-DI2smQRq.js} +1 -1
  7. package/dist/{CookiePolicyModal-B2mvebvV.js → CookiePolicyModal-BZkVbILl.js} +9 -43
  8. package/dist/CopyCode-BLXf0o74.js +40 -0
  9. package/dist/DiscordInvite-Mkr81Pib.js +92 -0
  10. package/dist/Footer-bUIou6Hl.js +83 -0
  11. package/dist/FooterBottom-_AezmdZB.js +133 -0
  12. package/dist/FooterHelp-CdeMRh1G.js +112 -0
  13. package/dist/FooterLinks-BUKcScC4.js +287 -0
  14. package/dist/{GPTInput-DRFGKJ2u.js → GPTInput-DKxJOGYt.js} +1 -1
  15. package/dist/{Header-BW8ilZxt.js → Header-6RIZc0v3.js} +90 -85
  16. package/dist/Heading-DuolDa27.js +19 -0
  17. package/dist/Icon-Dwo9ZDNX.js +31 -0
  18. package/dist/InputGrouped-CiA86XL7.js +221 -0
  19. package/dist/InputSolo-cLqKBh1c.js +122 -0
  20. package/dist/Label-BH3YxfNt.js +29 -0
  21. package/dist/Link-DGMiLJES.js +21 -0
  22. package/dist/{Logo-CZ5LYqub.js → Logo-h9bQL-cT.js} +1 -1
  23. package/dist/NewsletterSignup-eGx4jwiM.js +137 -0
  24. package/dist/{Notification-DHcQtd1k.js → Notification-CJ3iQv3Z.js} +6 -6
  25. package/dist/{PrefPanel-BTX6RAo4.js → PrefPanel-25erkPRB.js} +8 -8
  26. package/dist/{Search-DAPCZo13.js → Search-CDHkDXCm.js} +15 -15
  27. package/dist/Typography-nzBx3Yxn.js +49 -0
  28. package/dist/YoutubeModal-DNaiM6RL.js +89 -0
  29. package/dist/components/Box/index.js +2 -0
  30. package/dist/components/Button/index.js +1 -1
  31. package/dist/components/ButtonGroup/index.js +2 -0
  32. package/dist/components/Container/index.js +1 -1
  33. package/dist/components/CopyCode/index.js +2 -0
  34. package/dist/components/DiscordInvite/index.js +2 -0
  35. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  36. package/dist/components/Footer/FooterBottom.js +2 -0
  37. package/dist/components/Footer/FooterHelp.js +2 -0
  38. package/dist/components/Footer/FooterLinks.js +2 -0
  39. package/dist/components/Footer/YoutubeModal.js +2 -0
  40. package/dist/components/Footer/index.js +1 -1
  41. package/dist/components/GPTInput/index.js +1 -1
  42. package/dist/components/Header/index.js +1 -1
  43. package/dist/components/Heading/index.js +2 -0
  44. package/dist/components/Icon/index.js +2 -0
  45. package/dist/components/InputGrouped/index.js +2 -0
  46. package/dist/components/InputSolo/index.js +2 -0
  47. package/dist/components/Label/index.js +2 -0
  48. package/dist/components/Link/index.js +2 -0
  49. package/dist/components/Logo/index.js +1 -1
  50. package/dist/components/NewsletterSignup/index.js +2 -0
  51. package/dist/components/Notification/index.js +1 -1
  52. package/dist/components/PrefPanel/index.js +1 -1
  53. package/dist/components/Search/index.js +1 -1
  54. package/dist/components/Typography/index.js +2 -0
  55. package/dist/{dist-CjrKJb_1.js → dist-GNbC83fc.js} +1 -1
  56. package/dist/{dist-0f0-S8_q.js → dist-fJmWSp8_.js} +1 -1
  57. package/dist/{esm-C1TDRARf.js → esm-T3Xn_ZHF.js} +208 -104
  58. package/dist/fa-ByhY-7YY.js +187 -0
  59. package/dist/highsoft-ui.css +1 -1
  60. package/dist/lib/components/Box/index.d.ts +28 -0
  61. package/dist/lib/components/Button/index.d.ts +9 -1
  62. package/dist/lib/components/ButtonGroup/index.d.ts +29 -0
  63. package/dist/lib/components/CopyCode/index.d.ts +12 -0
  64. package/dist/lib/components/DiscordInvite/index.d.ts +8 -0
  65. package/dist/lib/components/Footer/FooterBottom.d.ts +7 -0
  66. package/dist/lib/components/Footer/FooterHelp.d.ts +7 -0
  67. package/dist/lib/components/Footer/FooterLinks.d.ts +7 -0
  68. package/dist/lib/components/Footer/YoutubeModal.d.ts +1 -0
  69. package/dist/lib/components/Header/index.d.ts +14 -9
  70. package/dist/lib/components/Heading/index.d.ts +8 -0
  71. package/dist/lib/components/Icon/index.d.ts +26 -0
  72. package/dist/lib/components/InputGrouped/index.d.ts +60 -0
  73. package/dist/lib/components/InputSolo/index.d.ts +23 -0
  74. package/dist/lib/components/Label/index.d.ts +25 -0
  75. package/dist/lib/components/Link/index.d.ts +15 -0
  76. package/dist/lib/components/NewsletterSignup/index.d.ts +33 -0
  77. package/dist/lib/components/Typography/index.d.ts +13 -0
  78. package/dist/lib/main.d.ts +26 -3
  79. package/dist/lib/utils.d.ts +28 -0
  80. package/dist/main.js +23 -12
  81. package/dist/scss/mixins.scss +36 -0
  82. package/dist/scss/variables.scss +107 -0
  83. package/dist/{utils-C4QGLbxr.js → utils-BCI5dixg.js} +35 -15
  84. package/dist/utils.js +2 -2
  85. package/package.json +14 -6
  86. package/dist/Button-9RIB8ZR0.js +0 -47
  87. package/dist/Footer-5yMo5akY.js +0 -784
  88. package/dist/NewTag-C-3mRyvV.js +0 -26
  89. package/dist/components/NewTag/index.js +0 -2
  90. package/dist/lib/components/NewTag/index.d.ts +0 -8
  91. /package/dist/{clsx-ROFf4vs9.js → clsx-D7D_XZ_-.js} +0 -0
  92. /package/dist/{es2015-CzBBLWyD.js → es2015-C6iv4436.js} +0 -0
@@ -114,11 +114,24 @@ var i = (e, t, n, r, i, a, o, s) => {
114
114
  document.head.removeChild(t);
115
115
  }, 1);
116
116
  };
117
- }, _ = (e) => (e ||= window.matchMedia(o), e.matches ? "dark" : "light"), v = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
118
- function y(e) {
119
- return !!e.match(v);
120
- }
117
+ }, _ = (e) => (e ||= window.matchMedia(o), e.matches ? "dark" : "light"), v = { size: {
118
+ mobile: "375px",
119
+ tablet: "850px",
120
+ laptop: "1000px",
121
+ desktop: "1160px",
122
+ "desktop-plus": "1300px"
123
+ } }, y = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
121
124
  function b(e) {
125
+ return !!e.match(y);
126
+ }
127
+ var x = {
128
+ mobile: parseInt(v.size.mobile),
129
+ tablet: parseInt(v.size.tablet),
130
+ laptop: parseInt(v.size.laptop),
131
+ desktop: parseInt(v.size.desktop),
132
+ desktopPlus: parseInt(v.size["desktop-plus"])
133
+ };
134
+ function S(e) {
122
135
  let [n, i] = r(!1);
123
136
  return t(() => {
124
137
  let t = window.matchMedia(e);
@@ -129,25 +142,32 @@ function b(e) {
129
142
  return t.addEventListener("change", n), () => t.removeEventListener("change", n);
130
143
  }, [e]), n;
131
144
  }
132
- var x = typeof window < "u" ? n : t;
133
- function S() {
145
+ var C = typeof window < "u" ? n : t;
146
+ function w() {
134
147
  let [e, t] = r(!1);
135
- return x(() => {
148
+ return C(() => {
136
149
  t(!0);
137
150
  }, []), e;
138
151
  }
139
- function C() {
152
+ function T() {
140
153
  let [e, t] = r(!1);
141
154
  return [async (e) => {
142
- if (e) try {
143
- await navigator.clipboard.writeText(e), t(!0);
144
- } finally {
145
- setTimeout(() => t(!1), 2e3);
155
+ if (e) {
156
+ try {
157
+ await navigator.clipboard.writeText(e);
158
+ } catch {}
159
+ t(!0), setTimeout(() => t(!1), 2e3);
146
160
  }
147
161
  }, e];
148
162
  }
149
- function w() {
150
- let e = S(), { resolvedTheme: n } = u(), [i, a] = r("light");
163
+ function E(e = 2e3) {
164
+ let [t, n] = r(!1);
165
+ return [() => {
166
+ n(!0), setTimeout(() => n(!1), e);
167
+ }, t];
168
+ }
169
+ function D() {
170
+ let e = w(), { resolvedTheme: n } = u(), [i, a] = r("light");
151
171
  return t(() => {
152
172
  if (!n) {
153
173
  a(document.documentElement.dataset.theme || "light");
@@ -159,4 +179,4 @@ function w() {
159
179
  }, [n]), e && n || i;
160
180
  }
161
181
  //#endregion
162
- export { S as a, d as c, b as i, u as l, C as n, w as o, x as r, y as s, v as t };
182
+ export { S as a, D as c, u as d, C as i, b as l, y as n, w as o, T as r, E as s, x as t, d as u };
package/dist/utils.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./utils-C4QGLbxr.js";
2
- export { o as emailRegex, n as useClipboard, i as useIsomorphicLayoutEffect, t as useMediaQuery, e as useMounted, r as useTheme, a as validateEmail };
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./utils-BCI5dixg.js";
2
+ export { c as breakpoints, i as emailRegex, o as useClipboard, n as useIsomorphicLayoutEffect, e as useMediaQuery, a as useMounted, s as useSuccessFlash, t as useTheme, r as validateEmail };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highsoft-ui",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "description": "Highsoft UI",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -11,6 +11,7 @@
11
11
  "types": "./dist/lib/main.d.ts"
12
12
  },
13
13
  "./css": "./dist/highsoft-ui.css",
14
+ "./scss/mixins": "./dist/scss/mixins.scss",
14
15
  "./scss/variables": "./dist/scss/variables.scss",
15
16
  "./php": {
16
17
  "import": "./dist/php.js",
@@ -24,13 +25,18 @@
24
25
  },
25
26
  "files": [
26
27
  "dist",
27
- "stylelint.config.js"
28
+ "stylelint.config.js",
29
+ "CLAUDE.md",
30
+ ".cursorrules",
31
+ "claude"
28
32
  ],
29
33
  "scripts": {
30
34
  "dev": "vite",
31
35
  "build": "tsc -p ./tsconfig.build.json && vite build",
32
36
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
33
37
  "preview": "vite preview",
38
+ "storybook": "storybook dev -p 6006",
39
+ "build-storybook": "storybook build",
34
40
  "prettier": "npx prettier . --write",
35
41
  "prettier-ci": "npx prettier . --check",
36
42
  "stylelint": "npx stylelint '**/*.css'",
@@ -45,9 +51,6 @@
45
51
  ],
46
52
  "*.scss": [
47
53
  "prettier --write"
48
- ],
49
- "!(*.css|*.scss|*.js|*.jsx|*.ts|*.tsx)": [
50
- "prettier --write"
51
54
  ]
52
55
  },
53
56
  "keywords": [],
@@ -57,7 +60,7 @@
57
60
  "@untitled-ui/icons-react": "^0.1.4",
58
61
  "addsearch-js-client": "^1.2.1",
59
62
  "clsx": "^2.1.0",
60
- "highsoft-design-tokens": "^2.2.1",
63
+ "highsoft-design-tokens": "^2.9.5",
61
64
  "modern-normalize": "^3.0.1",
62
65
  "next-themes": "^0.4.6",
63
66
  "radix-ui": "^1.4.1",
@@ -67,9 +70,12 @@
67
70
  "@babel/runtime": "^7.27.0",
68
71
  "@eslint/js": "^9.2.0",
69
72
  "@fontsource-variable/ibm-plex-sans": "^5.2.5",
73
+ "@storybook/react": "^10.2.19",
74
+ "@storybook/react-vite": "^10.2.19",
70
75
  "@types/node": "^20.12.7",
71
76
  "@types/react": "^19.2.2",
72
77
  "@types/react-dom": "^19.2.2",
78
+ "@types/react-syntax-highlighter": "^15.5.13",
73
79
  "@typescript-eslint/eslint-plugin": "^8.31.1",
74
80
  "@typescript-eslint/parser": "^8.31.1",
75
81
  "@vitejs/plugin-react": "^6.0.1",
@@ -86,7 +92,9 @@
86
92
  "prettier": "^3.5.3",
87
93
  "react": "^19.2.0",
88
94
  "react-dom": "^19.2.0",
95
+ "react-syntax-highlighter": "^16.1.1",
89
96
  "sass": "^1.75.0",
97
+ "storybook": "^10.2.19",
90
98
  "stylelint": "^17.0.0",
91
99
  "stylelint-config-standard": "^40.0.0",
92
100
  "stylelint-config-standard-scss": "^17.0.0",
@@ -1,47 +0,0 @@
1
- import { t as e } from "./clsx-ROFf4vs9.js";
2
- import { y as t } from "./esm-C1TDRARf.js";
3
- import { forwardRef as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- var a = {
6
- attention: "QF-Hta_attention",
7
- brand: "QF-Hta_brand",
8
- button: "QF-Hta_button",
9
- content: "QF-Hta_content",
10
- danger: "QF-Hta_danger",
11
- full: "QF-Hta_full",
12
- loader: "QF-Hta_loader",
13
- loading: "QF-Hta_loading",
14
- neutral: "QF-Hta_neutral",
15
- plain: "QF-Hta_plain",
16
- "size-100": "QF-Hta_size-100",
17
- "size-200": "QF-Hta_size-200",
18
- "size-300": "QF-Hta_size-300",
19
- "size-400": "QF-Hta_size-400",
20
- "size-50": "QF-Hta_size-50",
21
- "size-500": "QF-Hta_size-500",
22
- soft: "QF-Hta_soft",
23
- spin: "QF-Hta_spin",
24
- success: "QF-Hta_success",
25
- transparent: "QF-Hta_transparent"
26
- }, o = n(({ children: n, variant: o = "neutral", size: s = 200, fullWidth: c = !1, loading: l, as: u = "button", disabled: d, className: f, ...p }, m) => {
27
- let h = o === "white" ? "soft" : o;
28
- return /* @__PURE__ */ i(u, {
29
- className: e("hsui-button", f, a.button, a[h], a[`size-${s}`], {
30
- [a.full]: c,
31
- [a.loading]: l
32
- }),
33
- disabled: d || l,
34
- type: "button",
35
- ref: m,
36
- ...p,
37
- children: [l && /* @__PURE__ */ r("span", {
38
- className: a.loader,
39
- children: /* @__PURE__ */ r(t, {})
40
- }), /* @__PURE__ */ r("span", {
41
- className: a.content,
42
- children: n
43
- })]
44
- });
45
- });
46
- //#endregion
47
- export { o as t };