@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.
- package/README.md +26 -70
- package/dist/chunks/LanguageContext-CH_bwzCq.js +83 -0
- package/dist/chunks/TokenDisplayContext-evZi_214.js +18 -0
- package/dist/chunks/activity-feed-C8_e-Btq.js +19955 -0
- package/dist/contexts.js +17 -16
- package/dist/hirobius-ui.js +3590 -21800
- package/dist/manifest.js +11 -11
- package/dist/patterns.js +423 -0
- package/dist/static.css +4 -4
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +74 -35
- package/dist/types/src/app/components/activity-feed.d.ts +6 -4
- package/dist/types/src/app/components/app-shell.d.ts +6 -4
- package/dist/types/src/app/components/asset-img.d.ts +3 -1
- package/dist/types/src/app/components/avatar-group.d.ts +3 -3
- package/dist/types/src/app/components/avatar.d.ts +3 -3
- package/dist/types/src/app/components/badge.d.ts +3 -3
- package/dist/types/src/app/components/blockquote.d.ts +3 -3
- package/dist/types/src/app/components/breadcrumb.d.ts +3 -3
- package/dist/types/src/app/components/button-group.d.ts +3 -3
- package/dist/types/src/app/components/button.d.ts +6 -6
- package/dist/types/src/app/components/calendar.d.ts +3 -1
- package/dist/types/src/app/components/callout.d.ts +4 -4
- package/dist/types/src/app/components/card.d.ts +5 -5
- package/dist/types/src/app/components/carousel.d.ts +6 -4
- package/dist/types/src/app/components/checkbox.d.ts +3 -3
- package/dist/types/src/app/components/cinematic-link.d.ts +7 -1
- package/dist/types/src/app/components/circular-progress.d.ts +3 -3
- package/dist/types/src/app/components/code-block.d.ts +20 -18
- package/dist/types/src/app/components/command-palette.d.ts +9 -9
- package/dist/types/src/app/components/component-instance-matrix.d.ts +8 -2
- package/dist/types/src/app/components/disclosure.d.ts +3 -3
- package/dist/types/src/app/components/divider.d.ts +4 -4
- package/dist/types/src/app/components/doc-link-card.d.ts +6 -4
- package/dist/types/src/app/components/error-pattern.d.ts +3 -1
- package/dist/types/src/app/components/field.d.ts +4 -4
- package/dist/types/src/app/components/file-input.d.ts +7 -5
- package/dist/types/src/app/components/foundation-swatch.d.ts +6 -0
- package/dist/types/src/app/components/hds-tooltip.d.ts +11 -11
- package/dist/types/src/app/components/heading-stack.d.ts +6 -6
- package/dist/types/src/app/components/hover-card.d.ts +1 -1
- package/dist/types/src/app/components/image-lightbox.d.ts +2 -0
- package/dist/types/src/app/components/inline-code.d.ts +3 -3
- package/dist/types/src/app/components/input-group.d.ts +3 -3
- package/dist/types/src/app/components/input.d.ts +5 -5
- package/dist/types/src/app/components/kbd.d.ts +3 -3
- package/dist/types/src/app/components/metadata-list.d.ts +3 -3
- package/dist/types/src/app/components/nav-group.d.ts +3 -3
- package/dist/types/src/app/components/nav-item.d.ts +10 -8
- package/dist/types/src/app/components/overflow-list.d.ts +3 -1
- package/dist/types/src/app/components/page.d.ts +3 -1
- package/dist/types/src/app/components/progress.d.ts +3 -3
- package/dist/types/src/app/components/radio.d.ts +3 -3
- package/dist/types/src/app/components/reveal.d.ts +3 -1
- package/dist/types/src/app/components/segmented-control.d.ts +31 -31
- package/dist/types/src/app/components/select.d.ts +29 -0
- package/dist/types/src/app/components/selectable-card.d.ts +3 -3
- package/dist/types/src/app/components/side-nav.d.ts +6 -4
- package/dist/types/src/app/components/skeleton.d.ts +3 -3
- package/dist/types/src/app/components/sketch.d.ts +6 -0
- package/dist/types/src/app/components/slider.d.ts +3 -3
- package/dist/types/src/app/components/spinner.d.ts +3 -3
- package/dist/types/src/app/components/stacked-card-rail.d.ts +32 -0
- package/dist/types/src/app/components/stat.d.ts +3 -3
- package/dist/types/src/app/components/status-dot.d.ts +4 -4
- package/dist/types/src/app/components/status-list-item.d.ts +3 -3
- package/dist/types/src/app/components/stepper.d.ts +6 -4
- package/dist/types/src/app/components/surface.d.ts +4 -4
- package/dist/types/src/app/components/table.d.ts +22 -11
- package/dist/types/src/app/components/tag.d.ts +4 -4
- package/dist/types/src/app/components/text.d.ts +3 -3
- package/dist/types/src/app/components/textarea.d.ts +4 -4
- package/dist/types/src/app/components/time-input.d.ts +3 -3
- package/dist/types/src/app/components/toast.d.ts +3 -3
- package/dist/types/src/app/components/toggle-button.d.ts +4 -4
- package/dist/types/src/app/components/toggle.d.ts +3 -3
- package/dist/types/src/app/components/token.d.ts +23 -17
- package/dist/types/src/app/components/toolbar.d.ts +1 -1
- package/dist/types/src/app/components/tooltip.d.ts +2 -2
- package/dist/types/src/app/components/top-nav.d.ts +3 -1
- package/dist/types/src/app/components/tree-list.d.ts +3 -1
- package/dist/types/src/app/design-system/generated-token-refs.d.ts +39 -6
- package/dist/types/src/app/design-system/generated-token-values.d.ts +12 -16
- package/dist/types/src/app/design-system/tokens.d.ts +16 -5
- package/dist/types/src/app/layouts/DocLayout.d.ts +0 -2
- package/dist/types/src/app/layouts/HdsDocsShell.d.ts +72 -0
- package/dist/types/src/app/layouts/HdsSystemDocLayout.d.ts +8 -1
- package/dist/types/src/index.d.ts +216 -39
- package/dist/types/src/patterns.d.ts +37 -0
- package/dist/variables.css +100 -28
- package/hirobius.tokens.json +199 -88
- package/package.json +43 -28
- package/public/hds-manifest.json +1916 -601
- package/dist/chunks/TokenDisplayContext-B3gxyQN7.js +0 -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
|
-
};
|
|
File without changes
|