@hirobius/design-system 0.19.1 → 0.20.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/CONSUMING.md +9 -6
- package/DESIGN.md +7 -5
- package/README.md +14 -11
- package/codemods/hds-prefix.mjs +231 -0
- package/codemods/jsx-fold.mjs +515 -0
- package/codemods/not-found-pattern.mjs +71 -0
- package/codemods/patterns-subpath.mjs +242 -81
- package/codemods/patterns-subpath.names.json +41 -15
- package/codemods/removed-0.20.json +194 -0
- package/codemods/tile-grid.mjs +283 -0
- package/codemods/unrewritable.mjs +291 -0
- package/dist/chunks/DemoStateContext-Cz5TmrYu.js +32 -0
- package/dist/chunks/empty-state-BBqhCx0S.js +1217 -0
- package/dist/contexts.js +157 -78
- package/dist/hirobius-ui.js +1517 -5270
- package/dist/manifest.js +12 -13
- package/dist/patterns.js +780 -513
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +29 -8
- package/dist/types/src/app/components/avatar-group.d.ts +1 -2
- package/dist/types/src/app/components/badge.d.ts +8 -3
- package/dist/types/src/app/components/blockquote.d.ts +1 -2
- package/dist/types/src/app/components/box-sx.d.ts +110 -13
- package/dist/types/src/app/components/box.d.ts +6 -3
- package/dist/types/src/app/components/breadcrumb.d.ts +0 -5
- package/dist/types/src/app/components/button.d.ts +33 -4
- package/dist/types/src/app/components/card.d.ts +7 -8
- package/dist/types/src/app/components/combobox.d.ts +47 -11
- package/dist/types/src/app/components/container.d.ts +2 -2
- package/dist/types/src/app/components/data-table-section.d.ts +1 -1
- package/dist/types/src/app/components/dialog.d.ts +7 -1
- package/dist/types/src/app/components/disclosure.d.ts +1 -5
- package/dist/types/src/app/components/field.d.ts +1 -2
- package/dist/types/src/app/components/grid.d.ts +10 -6
- package/dist/types/src/app/components/hds-tooltip.d.ts +12 -2
- package/dist/types/src/app/components/inline-code.d.ts +1 -2
- package/dist/types/src/app/components/input.d.ts +8 -5
- package/dist/types/src/app/components/kbd.d.ts +1 -2
- package/dist/types/src/app/components/metadata-list.d.ts +1 -2
- package/dist/types/src/app/components/page-header.d.ts +0 -2
- package/dist/types/src/app/components/popover.d.ts +8 -0
- package/dist/types/src/app/components/progress.d.ts +33 -6
- package/dist/types/src/app/components/segmented-control.d.ts +2 -26
- package/dist/types/src/app/components/select.d.ts +10 -1
- package/dist/types/src/app/components/skeleton.d.ts +2 -3
- package/dist/types/src/app/components/spinner.d.ts +1 -2
- package/dist/types/src/app/components/stack.d.ts +4 -1
- package/dist/types/src/app/components/stat.d.ts +1 -2
- package/dist/types/src/app/components/status-dot.d.ts +18 -4
- package/dist/types/src/app/components/status-list-item.d.ts +1 -2
- package/dist/types/src/app/components/surface.d.ts +2 -3
- package/dist/types/src/app/components/switcher.d.ts +1 -1
- package/dist/types/src/app/components/table.d.ts +1 -15
- package/dist/types/src/app/components/tag.d.ts +0 -6
- package/dist/types/src/app/components/text.d.ts +1 -2
- package/dist/types/src/app/components/textarea.d.ts +1 -2
- package/dist/types/src/app/components/toast.d.ts +1 -2
- package/dist/types/src/app/components/tooltip.d.ts +1 -1
- package/dist/types/src/app/context/DemoStateContext.d.ts +1 -1
- package/dist/types/src/app/context/RouterContext.d.ts +5 -5
- package/dist/types/src/app/data/manifest-types.d.ts +6 -5
- package/dist/types/src/app/design-system/generated-token-refs.d.ts +8 -0
- package/dist/types/src/app/design-system/generated-token-values.d.ts +1 -0
- package/dist/types/src/app/design-system/tokens.d.ts +22 -3
- package/dist/types/src/icons.d.ts +1 -1
- package/dist/types/src/index.d.ts +33 -124
- package/dist/types/src/patterns.d.ts +20 -25
- package/dist/variables.css +6 -0
- package/docs/CONSUMING.md +21 -13
- package/hirobius.tokens.json +48 -15
- package/llms.txt +19 -20
- package/package.json +17 -22
- package/public/hds-manifest.json +2405 -6537
- package/public/llms/components.txt +41 -423
- package/public/llms/layout.txt +4 -4
- package/public/llms-full.txt +67 -448
- package/public/llms.txt +19 -20
- package/src/app/data/component-api.json +1379 -3271
- package/dist/chunks/LanguageContext-BxdCwiFg.js +0 -95
- package/dist/chunks/TokenDisplayContext-DKYJMVWk.js +0 -26
- package/dist/chunks/activity-feed-BGQ6v3wc.js +0 -22040
- package/dist/types/src/app/components/activity-feed.d.ts +0 -73
- package/dist/types/src/app/components/app-shell.d.ts +0 -40
- package/dist/types/src/app/components/aspect-ratio.d.ts +0 -25
- package/dist/types/src/app/components/bleed.d.ts +0 -39
- package/dist/types/src/app/components/button-group.d.ts +0 -22
- package/dist/types/src/app/components/calendar.d.ts +0 -22
- package/dist/types/src/app/components/carousel.d.ts +0 -26
- package/dist/types/src/app/components/center.d.ts +0 -36
- package/dist/types/src/app/components/cinematic-link.d.ts +0 -18
- package/dist/types/src/app/components/circular-progress.d.ts +0 -28
- package/dist/types/src/app/components/cluster.d.ts +0 -39
- package/dist/types/src/app/components/command-palette.d.ts +0 -46
- package/dist/types/src/app/components/component-instance-matrix.d.ts +0 -27
- package/dist/types/src/app/components/context-menu.d.ts +0 -78
- package/dist/types/src/app/components/cover.d.ts +0 -43
- package/dist/types/src/app/components/date-input.d.ts +0 -31
- package/dist/types/src/app/components/date-range-input.d.ts +0 -34
- package/dist/types/src/app/components/date-time-input.d.ts +0 -30
- package/dist/types/src/app/components/doc-link-card.d.ts +0 -32
- package/dist/types/src/app/components/error-boundary.d.ts +0 -25
- package/dist/types/src/app/components/file-input.d.ts +0 -30
- package/dist/types/src/app/components/foundation-swatch.d.ts +0 -45
- package/dist/types/src/app/components/frame.d.ts +0 -38
- package/dist/types/src/app/components/heading-stack.d.ts +0 -52
- package/dist/types/src/app/components/history-card.d.ts +0 -12
- package/dist/types/src/app/components/hover-card.d.ts +0 -46
- package/dist/types/src/app/components/icon-button.d.ts +0 -22
- package/dist/types/src/app/components/image-lightbox.d.ts +0 -14
- package/dist/types/src/app/components/input-group.d.ts +0 -23
- package/dist/types/src/app/components/multi-selector.d.ts +0 -40
- package/dist/types/src/app/components/nav-group.d.ts +0 -29
- package/dist/types/src/app/components/nav-item.d.ts +0 -33
- package/dist/types/src/app/components/not-found-pattern.d.ts +0 -1
- package/dist/types/src/app/components/overflow-list.d.ts +0 -21
- package/dist/types/src/app/components/selectable-card.d.ts +0 -29
- package/dist/types/src/app/components/side-nav.d.ts +0 -23
- package/dist/types/src/app/components/sketch.d.ts +0 -19
- package/dist/types/src/app/components/stacked-card-rail.d.ts +0 -32
- package/dist/types/src/app/components/stepper-field.d.ts +0 -12
- package/dist/types/src/app/components/stepper.d.ts +0 -33
- package/dist/types/src/app/components/text-lockup.d.ts +0 -38
- package/dist/types/src/app/components/tile-grid.d.ts +0 -17
- package/dist/types/src/app/components/time-input.d.ts +0 -24
- package/dist/types/src/app/components/toggle-button.d.ts +0 -32
- package/dist/types/src/app/components/token.d.ts +0 -90
- package/dist/types/src/app/components/tokenUtils.d.ts +0 -38
- package/dist/types/src/app/components/tokenizer.d.ts +0 -24
- package/dist/types/src/app/components/toolbar.d.ts +0 -36
- package/dist/types/src/app/components/top-nav.d.ts +0 -23
- package/dist/types/src/app/components/tree-list.d.ts +0 -30
- package/dist/types/src/app/data/nav-model.d.ts +0 -39
- package/dist/types/src/app/hooks/useFocusVisible.d.ts +0 -9
- package/dist/types/src/app/layouts/CaseStudyLayout.d.ts +0 -20
- package/dist/types/src/app/layouts/DocLayout.d.ts +0 -14
- package/dist/types/src/app/layouts/EmbeddedDocLayoutContext.d.ts +0 -6
- package/dist/types/src/app/layouts/HdsDocsShell.d.ts +0 -72
- package/dist/types/src/app/layouts/HdsSystemDocLayout.d.ts +0 -14
- package/dist/types/src/app/lib/hds-search.d.ts +0 -45
- package/dist/types/src/app/lib/nav-active.d.ts +0 -16
- package/dist/types/src/app/lib/navLevels.d.ts +0 -4
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as c, createContext as s, forwardRef as p, useState as v, useEffect as w, useCallback as u } from "react";
|
|
4
|
-
const l = /* @__PURE__ */ s(null);
|
|
5
|
-
function E({ state: e, children: t }) {
|
|
6
|
-
return /* @__PURE__ */ r(l.Provider, { value: e, children: t });
|
|
7
|
-
}
|
|
8
|
-
function S() {
|
|
9
|
-
return c(l);
|
|
10
|
-
}
|
|
11
|
-
const x = /* @__PURE__ */ p(function({ to: t, children: n, ...i }, a) {
|
|
12
|
-
return /* @__PURE__ */ r("a", { ref: a, href: t, ...i, children: n });
|
|
13
|
-
}), d = /* @__PURE__ */ s(null);
|
|
14
|
-
function A({ adapter: e, children: t }) {
|
|
15
|
-
return /* @__PURE__ */ r(d.Provider, { value: e, children: t });
|
|
16
|
-
}
|
|
17
|
-
function P() {
|
|
18
|
-
const e = c(d);
|
|
19
|
-
return e || {
|
|
20
|
-
navigate: (t) => {
|
|
21
|
-
typeof window < "u" && window.location.assign(t);
|
|
22
|
-
},
|
|
23
|
-
currentPath: typeof window < "u" ? window.location.pathname : "/",
|
|
24
|
-
LinkComponent: x
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const g = {
|
|
28
|
-
en: {
|
|
29
|
-
language: "en",
|
|
30
|
-
dir: "ltr",
|
|
31
|
-
label: "English",
|
|
32
|
-
nativeLabel: "English"
|
|
33
|
-
}
|
|
34
|
-
}, f = /* @__PURE__ */ s({
|
|
35
|
-
language: "en",
|
|
36
|
-
direction: "ltr",
|
|
37
|
-
isRtl: !1,
|
|
38
|
-
setLanguage: () => {
|
|
39
|
-
},
|
|
40
|
-
setDirection: () => {
|
|
41
|
-
},
|
|
42
|
-
toggleDirection: () => {
|
|
43
|
-
},
|
|
44
|
-
options: g
|
|
45
|
-
});
|
|
46
|
-
function b() {
|
|
47
|
-
try {
|
|
48
|
-
const e = localStorage.getItem("hds-direction");
|
|
49
|
-
if (e === "ltr" || e === "rtl") return e;
|
|
50
|
-
} catch {
|
|
51
|
-
}
|
|
52
|
-
return "ltr";
|
|
53
|
-
}
|
|
54
|
-
function R({ children: e }) {
|
|
55
|
-
const [t, n] = v(b), i = "en", a = t === "rtl";
|
|
56
|
-
w(() => {
|
|
57
|
-
try {
|
|
58
|
-
localStorage.setItem("hds-direction", t);
|
|
59
|
-
} catch {
|
|
60
|
-
}
|
|
61
|
-
document.documentElement.setAttribute("lang", "en"), document.documentElement.setAttribute("data-language", "en"), document.documentElement.setAttribute("dir", t), document.documentElement.setAttribute("data-reading-direction", t);
|
|
62
|
-
}, [t]);
|
|
63
|
-
const m = u((o) => {
|
|
64
|
-
}, []), L = u((o) => {
|
|
65
|
-
n(o);
|
|
66
|
-
}, []), h = u(() => {
|
|
67
|
-
n((o) => o === "ltr" ? "rtl" : "ltr");
|
|
68
|
-
}, []);
|
|
69
|
-
return /* @__PURE__ */ r(
|
|
70
|
-
f.Provider,
|
|
71
|
-
{
|
|
72
|
-
value: {
|
|
73
|
-
language: i,
|
|
74
|
-
direction: t,
|
|
75
|
-
isRtl: a,
|
|
76
|
-
setLanguage: m,
|
|
77
|
-
setDirection: L,
|
|
78
|
-
toggleDirection: h,
|
|
79
|
-
options: g
|
|
80
|
-
},
|
|
81
|
-
children: e
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
function H() {
|
|
86
|
-
return c(f);
|
|
87
|
-
}
|
|
88
|
-
export {
|
|
89
|
-
E as F,
|
|
90
|
-
A as H,
|
|
91
|
-
R as L,
|
|
92
|
-
P as a,
|
|
93
|
-
H as b,
|
|
94
|
-
S as u
|
|
95
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { useState as i, useContext as a, createContext as u } from "react";
|
|
4
|
-
const o = /* @__PURE__ */ u(
|
|
5
|
-
void 0
|
|
6
|
-
);
|
|
7
|
-
function c({ children: s }) {
|
|
8
|
-
const [t, e] = i(!1);
|
|
9
|
-
return /* @__PURE__ */ r(
|
|
10
|
-
o.Provider,
|
|
11
|
-
{
|
|
12
|
-
value: { showCss: t, setShowCss: e, toggleCss: () => e((n) => !n) },
|
|
13
|
-
children: s
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
function f() {
|
|
18
|
-
const s = a(o);
|
|
19
|
-
return s || { showCss: !1, setShowCss: () => {
|
|
20
|
-
}, toggleCss: () => {
|
|
21
|
-
} };
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
c as T,
|
|
25
|
-
f as u
|
|
26
|
-
};
|