@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
package/dist/contexts.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as l, Fragment as
|
|
2
|
+
import { jsx as l, Fragment as x } from "react/jsx-runtime";
|
|
3
3
|
import { useState as i, useCallback as a, useEffect as s, useContext as E, createContext as S } from "react";
|
|
4
|
-
import { F as j, H as q, L as N,
|
|
5
|
-
|
|
4
|
+
import { F as j, H as q, L as N, u as V, a as J, b as Q } from "./chunks/LanguageContext-CH_bwzCq.js";
|
|
5
|
+
import { T as W, u as X } from "./chunks/TokenDisplayContext-evZi_214.js";
|
|
6
|
+
const I = ["system", "light", "dark"], d = "hds-theme-mode", P = "hds-theme", T = S({
|
|
6
7
|
isDark: !0,
|
|
7
8
|
toggleDark: () => {
|
|
8
9
|
},
|
|
@@ -18,7 +19,7 @@ const x = ["system", "light", "dark"], d = "hds-theme-mode", P = "hds-theme", T
|
|
|
18
19
|
function y() {
|
|
19
20
|
try {
|
|
20
21
|
const t = localStorage.getItem(d);
|
|
21
|
-
if (t &&
|
|
22
|
+
if (t && I.includes(t)) return t;
|
|
22
23
|
} catch {
|
|
23
24
|
}
|
|
24
25
|
return "system";
|
|
@@ -92,12 +93,12 @@ function F({ children: t }) {
|
|
|
92
93
|
function O() {
|
|
93
94
|
return E(T);
|
|
94
95
|
}
|
|
95
|
-
const k = S({ tenantSlug: null }),
|
|
96
|
+
const k = S({ tenantSlug: null }), p = ["data-brand", "data-tenant"];
|
|
96
97
|
function m(t) {
|
|
97
|
-
for (const n of
|
|
98
|
+
for (const n of p) document.documentElement.setAttribute(n, t);
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
for (const t of
|
|
100
|
+
function v() {
|
|
101
|
+
for (const t of p) document.documentElement.removeAttribute(t);
|
|
101
102
|
}
|
|
102
103
|
function B({
|
|
103
104
|
children: t,
|
|
@@ -105,7 +106,7 @@ function B({
|
|
|
105
106
|
}) {
|
|
106
107
|
return s(() => {
|
|
107
108
|
if (n)
|
|
108
|
-
return m(n), () =>
|
|
109
|
+
return m(n), () => v();
|
|
109
110
|
}, [n]), /* @__PURE__ */ l(k.Provider, { value: { tenantSlug: n }, children: t });
|
|
110
111
|
}
|
|
111
112
|
function H() {
|
|
@@ -115,12 +116,12 @@ function z(t) {
|
|
|
115
116
|
s(() => {
|
|
116
117
|
const n = document.documentElement.getAttribute("data-brand");
|
|
117
118
|
return m(t), () => {
|
|
118
|
-
n !== null ? m(n) :
|
|
119
|
+
n !== null ? m(n) : v();
|
|
119
120
|
};
|
|
120
121
|
}, [t]);
|
|
121
122
|
}
|
|
122
123
|
function G({ children: t }) {
|
|
123
|
-
return /* @__PURE__ */ l(
|
|
124
|
+
return /* @__PURE__ */ l(x, { children: t });
|
|
124
125
|
}
|
|
125
126
|
export {
|
|
126
127
|
G as FontProvider,
|
|
@@ -129,12 +130,12 @@ export {
|
|
|
129
130
|
N as LanguageProvider,
|
|
130
131
|
B as TenantProvider,
|
|
131
132
|
F as ThemeProvider,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
W as TokenDisplayProvider,
|
|
134
|
+
V as useFrozenState,
|
|
135
|
+
J as useHdsRouter,
|
|
136
|
+
Q as useLanguage,
|
|
136
137
|
H as useTenant,
|
|
137
138
|
z as useTenantOnDocument,
|
|
138
139
|
O as useTheme,
|
|
139
|
-
|
|
140
|
+
X as useTokenDisplay
|
|
140
141
|
};
|