@hirobius/design-system 0.15.0 → 0.17.0

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 (96) hide show
  1. package/README.md +26 -70
  2. package/dist/chunks/LanguageContext-CH_bwzCq.js +83 -0
  3. package/dist/chunks/TokenDisplayContext-evZi_214.js +18 -0
  4. package/dist/chunks/activity-feed-C8_e-Btq.js +19955 -0
  5. package/dist/contexts.js +17 -16
  6. package/dist/hirobius-ui.js +3590 -21800
  7. package/dist/manifest.js +11 -11
  8. package/dist/patterns.js +423 -0
  9. package/dist/static.css +4 -4
  10. package/dist/styles.css +1 -1
  11. package/dist/tokens.css +1 -1
  12. package/dist/tokens.js +74 -35
  13. package/dist/types/src/app/components/activity-feed.d.ts +6 -4
  14. package/dist/types/src/app/components/app-shell.d.ts +6 -4
  15. package/dist/types/src/app/components/asset-img.d.ts +3 -1
  16. package/dist/types/src/app/components/avatar-group.d.ts +3 -3
  17. package/dist/types/src/app/components/avatar.d.ts +3 -3
  18. package/dist/types/src/app/components/badge.d.ts +3 -3
  19. package/dist/types/src/app/components/blockquote.d.ts +3 -3
  20. package/dist/types/src/app/components/breadcrumb.d.ts +3 -3
  21. package/dist/types/src/app/components/button-group.d.ts +3 -3
  22. package/dist/types/src/app/components/button.d.ts +6 -6
  23. package/dist/types/src/app/components/calendar.d.ts +3 -1
  24. package/dist/types/src/app/components/callout.d.ts +4 -4
  25. package/dist/types/src/app/components/card.d.ts +5 -5
  26. package/dist/types/src/app/components/carousel.d.ts +6 -4
  27. package/dist/types/src/app/components/checkbox.d.ts +3 -3
  28. package/dist/types/src/app/components/cinematic-link.d.ts +7 -1
  29. package/dist/types/src/app/components/circular-progress.d.ts +3 -3
  30. package/dist/types/src/app/components/code-block.d.ts +20 -18
  31. package/dist/types/src/app/components/command-palette.d.ts +9 -9
  32. package/dist/types/src/app/components/component-instance-matrix.d.ts +8 -2
  33. package/dist/types/src/app/components/disclosure.d.ts +3 -3
  34. package/dist/types/src/app/components/divider.d.ts +4 -4
  35. package/dist/types/src/app/components/doc-link-card.d.ts +6 -4
  36. package/dist/types/src/app/components/error-pattern.d.ts +3 -1
  37. package/dist/types/src/app/components/field.d.ts +4 -4
  38. package/dist/types/src/app/components/file-input.d.ts +7 -5
  39. package/dist/types/src/app/components/foundation-swatch.d.ts +6 -0
  40. package/dist/types/src/app/components/hds-tooltip.d.ts +11 -11
  41. package/dist/types/src/app/components/heading-stack.d.ts +6 -6
  42. package/dist/types/src/app/components/hover-card.d.ts +1 -1
  43. package/dist/types/src/app/components/image-lightbox.d.ts +2 -0
  44. package/dist/types/src/app/components/inline-code.d.ts +3 -3
  45. package/dist/types/src/app/components/input-group.d.ts +3 -3
  46. package/dist/types/src/app/components/input.d.ts +5 -5
  47. package/dist/types/src/app/components/kbd.d.ts +3 -3
  48. package/dist/types/src/app/components/metadata-list.d.ts +3 -3
  49. package/dist/types/src/app/components/nav-group.d.ts +3 -3
  50. package/dist/types/src/app/components/nav-item.d.ts +10 -8
  51. package/dist/types/src/app/components/overflow-list.d.ts +3 -1
  52. package/dist/types/src/app/components/page.d.ts +3 -1
  53. package/dist/types/src/app/components/progress.d.ts +3 -3
  54. package/dist/types/src/app/components/radio.d.ts +3 -3
  55. package/dist/types/src/app/components/reveal.d.ts +3 -1
  56. package/dist/types/src/app/components/segmented-control.d.ts +31 -31
  57. package/dist/types/src/app/components/select.d.ts +29 -0
  58. package/dist/types/src/app/components/selectable-card.d.ts +3 -3
  59. package/dist/types/src/app/components/side-nav.d.ts +6 -4
  60. package/dist/types/src/app/components/skeleton.d.ts +3 -3
  61. package/dist/types/src/app/components/sketch.d.ts +6 -0
  62. package/dist/types/src/app/components/slider.d.ts +3 -3
  63. package/dist/types/src/app/components/spinner.d.ts +3 -3
  64. package/dist/types/src/app/components/stacked-card-rail.d.ts +32 -0
  65. package/dist/types/src/app/components/stat.d.ts +3 -3
  66. package/dist/types/src/app/components/status-dot.d.ts +4 -4
  67. package/dist/types/src/app/components/status-list-item.d.ts +3 -3
  68. package/dist/types/src/app/components/stepper.d.ts +6 -4
  69. package/dist/types/src/app/components/surface.d.ts +4 -4
  70. package/dist/types/src/app/components/table.d.ts +22 -11
  71. package/dist/types/src/app/components/tag.d.ts +4 -4
  72. package/dist/types/src/app/components/text.d.ts +3 -3
  73. package/dist/types/src/app/components/textarea.d.ts +4 -4
  74. package/dist/types/src/app/components/time-input.d.ts +3 -3
  75. package/dist/types/src/app/components/toast.d.ts +3 -3
  76. package/dist/types/src/app/components/toggle-button.d.ts +4 -4
  77. package/dist/types/src/app/components/toggle.d.ts +3 -3
  78. package/dist/types/src/app/components/token.d.ts +23 -17
  79. package/dist/types/src/app/components/toolbar.d.ts +1 -1
  80. package/dist/types/src/app/components/tooltip.d.ts +2 -2
  81. package/dist/types/src/app/components/top-nav.d.ts +3 -1
  82. package/dist/types/src/app/components/tree-list.d.ts +3 -1
  83. package/dist/types/src/app/design-system/generated-token-refs.d.ts +39 -6
  84. package/dist/types/src/app/design-system/generated-token-values.d.ts +12 -16
  85. package/dist/types/src/app/design-system/tokens.d.ts +16 -5
  86. package/dist/types/src/app/layouts/DocLayout.d.ts +0 -2
  87. package/dist/types/src/app/layouts/HdsDocsShell.d.ts +72 -0
  88. package/dist/types/src/app/layouts/HdsSystemDocLayout.d.ts +8 -1
  89. package/dist/types/src/index.d.ts +216 -39
  90. package/dist/types/src/patterns.d.ts +37 -0
  91. package/dist/variables.css +100 -28
  92. package/hirobius.tokens.json +199 -88
  93. package/package.json +43 -28
  94. package/public/hds-manifest.json +1916 -601
  95. package/dist/chunks/TokenDisplayContext-B3gxyQN7.js +0 -96
  96. /package/dist/types/src/app/components/{lab/tokenUtils.d.ts → tokenUtils.d.ts} +0 -0
@@ -1,96 +0,0 @@
1
- 'use client';
2
- import { jsx as r } from "react/jsx-runtime";
3
- import { useContext as i, createContext as a, forwardRef as w, useState as l, useEffect as L, useCallback as c } from "react";
4
- const d = a(null);
5
- function b({ state: t, children: e }) {
6
- return /* @__PURE__ */ r(d.Provider, { value: t, children: e });
7
- }
8
- function E() {
9
- return i(d);
10
- }
11
- const x = w(
12
- function({ to: e, children: n, ...o }, u) {
13
- return /* @__PURE__ */ r("a", { ref: u, href: e, ...o, children: n });
14
- }
15
- ), g = a(null);
16
- function k({ adapter: t, children: e }) {
17
- return /* @__PURE__ */ r(g.Provider, { value: t, children: e });
18
- }
19
- function y() {
20
- const t = i(g);
21
- return t || {
22
- navigate: (e) => {
23
- typeof window < "u" && window.location.assign(e);
24
- },
25
- currentPath: typeof window < "u" ? window.location.pathname : "/",
26
- LinkComponent: x
27
- };
28
- }
29
- const f = {
30
- en: {
31
- language: "en",
32
- dir: "ltr",
33
- label: "English",
34
- nativeLabel: "English"
35
- }
36
- }, m = a({
37
- language: "en",
38
- direction: "ltr",
39
- isRtl: !1,
40
- setLanguage: () => {
41
- },
42
- setDirection: () => {
43
- },
44
- toggleDirection: () => {
45
- },
46
- options: f
47
- });
48
- function D() {
49
- try {
50
- const t = localStorage.getItem("hds-direction");
51
- if (t === "ltr" || t === "rtl") return t;
52
- } catch {
53
- }
54
- return "ltr";
55
- }
56
- function A({ children: t }) {
57
- const [e, n] = l(D), o = "en", u = e === "rtl";
58
- L(() => {
59
- try {
60
- localStorage.setItem("hds-direction", e);
61
- } catch {
62
- }
63
- document.documentElement.setAttribute("lang", "en"), document.documentElement.setAttribute("data-language", "en"), document.documentElement.setAttribute("dir", e), document.documentElement.setAttribute("data-reading-direction", e);
64
- }, [e]);
65
- const h = c((s) => {
66
- }, []), v = c((s) => {
67
- n(s);
68
- }, []), p = c(() => {
69
- n((s) => s === "ltr" ? "rtl" : "ltr");
70
- }, []);
71
- return /* @__PURE__ */ r(m.Provider, { value: { language: o, direction: e, isRtl: u, setLanguage: h, setDirection: v, toggleDirection: p, options: f }, children: t });
72
- }
73
- function R() {
74
- return i(m);
75
- }
76
- const C = a(void 0);
77
- function H({ children: t }) {
78
- const [e, n] = l(!1);
79
- return /* @__PURE__ */ r(C.Provider, { value: { showCss: e, setShowCss: n, toggleCss: () => n((o) => !o) }, children: t });
80
- }
81
- function T() {
82
- const t = i(C);
83
- return t || { showCss: !1, setShowCss: () => {
84
- }, toggleCss: () => {
85
- } };
86
- }
87
- export {
88
- b as F,
89
- k as H,
90
- A as L,
91
- H as T,
92
- R as a,
93
- E as b,
94
- T as c,
95
- y as u
96
- };