@996-design/996-ui 0.1.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 (110) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +35 -0
  3. package/README.md +31 -0
  4. package/dist/cjs/index.cjs +4228 -0
  5. package/dist/cjs/index.cjs.map +41 -0
  6. package/dist/cjs/legacy-index.cjs +17297 -0
  7. package/dist/cjs/legacy-index.cjs.map +96 -0
  8. package/dist/cjs/pro/index.cjs +8544 -0
  9. package/dist/cjs/pro/index.cjs.map +35 -0
  10. package/dist/esm/index.js +4063 -0
  11. package/dist/esm/index.js.map +41 -0
  12. package/dist/esm/legacy-index.js +17294 -0
  13. package/dist/esm/legacy-index.js.map +96 -0
  14. package/dist/esm/pro/index.js +8554 -0
  15. package/dist/esm/pro/index.js.map +35 -0
  16. package/dist/styles.css +5816 -0
  17. package/dist/theme.css +601 -0
  18. package/dist/types/ConfigProvider.d.ts +195 -0
  19. package/dist/types/antd-theme.d.ts +12 -0
  20. package/dist/types/components/Alert.d.ts +51 -0
  21. package/dist/types/components/Avatar.d.ts +44 -0
  22. package/dist/types/components/Badge.d.ts +31 -0
  23. package/dist/types/components/Breadcrumb.d.ts +45 -0
  24. package/dist/types/components/Button.d.ts +42 -0
  25. package/dist/types/components/ButtonGroup.d.ts +13 -0
  26. package/dist/types/components/Card.d.ts +55 -0
  27. package/dist/types/components/Carousel.d.ts +70 -0
  28. package/dist/types/components/Checkbox.d.ts +43 -0
  29. package/dist/types/components/Collapse.d.ts +23 -0
  30. package/dist/types/components/ColorPicker.d.ts +143 -0
  31. package/dist/types/components/DataDisplayPrimitives.d.ts +205 -0
  32. package/dist/types/components/DataEntryPrimitives.d.ts +454 -0
  33. package/dist/types/components/Divider.d.ts +24 -0
  34. package/dist/types/components/Drawer.d.ts +68 -0
  35. package/dist/types/components/Dropdown.d.ts +41 -0
  36. package/dist/types/components/Empty.d.ts +14 -0
  37. package/dist/types/components/EmptyState.d.ts +6 -0
  38. package/dist/types/components/FeedbackPrimitives.d.ts +102 -0
  39. package/dist/types/components/Form.d.ts +67 -0
  40. package/dist/types/components/GameCover.d.ts +8 -0
  41. package/dist/types/components/Grid.d.ts +50 -0
  42. package/dist/types/components/Icon.d.ts +13 -0
  43. package/dist/types/components/IconButton.d.ts +14 -0
  44. package/dist/types/components/Input.d.ts +110 -0
  45. package/dist/types/components/InputNumber.d.ts +29 -0
  46. package/dist/types/components/LayoutPrimitives.d.ts +130 -0
  47. package/dist/types/components/List.d.ts +64 -0
  48. package/dist/types/components/Masonry.d.ts +43 -0
  49. package/dist/types/components/MenuList.d.ts +24 -0
  50. package/dist/types/components/Message.d.ts +58 -0
  51. package/dist/types/components/MessageToast.d.ts +27 -0
  52. package/dist/types/components/Modal.d.ts +123 -0
  53. package/dist/types/components/NavigationPrimitives.d.ts +73 -0
  54. package/dist/types/components/OtherPrimitives.d.ts +36 -0
  55. package/dist/types/components/Pagination.d.ts +18 -0
  56. package/dist/types/components/Panel.d.ts +8 -0
  57. package/dist/types/components/Popconfirm.d.ts +18 -0
  58. package/dist/types/components/Popover.d.ts +10 -0
  59. package/dist/types/components/PriceText.d.ts +9 -0
  60. package/dist/types/components/Progress.d.ts +57 -0
  61. package/dist/types/components/ProgressBar.d.ts +8 -0
  62. package/dist/types/components/ProgressButton.d.ts +9 -0
  63. package/dist/types/components/Radio.d.ts +67 -0
  64. package/dist/types/components/Rate.d.ts +17 -0
  65. package/dist/types/components/Result.d.ts +11 -0
  66. package/dist/types/components/SectionHeader.d.ts +11 -0
  67. package/dist/types/components/Segmented.d.ts +41 -0
  68. package/dist/types/components/SegmentedTabs.d.ts +42 -0
  69. package/dist/types/components/SelectInput.d.ts +33 -0
  70. package/dist/types/components/Skeleton.d.ts +54 -0
  71. package/dist/types/components/Slider.d.ts +48 -0
  72. package/dist/types/components/Spin.d.ts +21 -0
  73. package/dist/types/components/Splitter.d.ts +7 -0
  74. package/dist/types/components/StatCard.d.ts +10 -0
  75. package/dist/types/components/Statistic.d.ts +48 -0
  76. package/dist/types/components/StatusItem.d.ts +12 -0
  77. package/dist/types/components/Steps.d.ts +40 -0
  78. package/dist/types/components/Switch.d.ts +41 -0
  79. package/dist/types/components/Table.d.ts +61 -0
  80. package/dist/types/components/Tabs.d.ts +50 -0
  81. package/dist/types/components/Tag.d.ts +52 -0
  82. package/dist/types/components/TagPill.d.ts +7 -0
  83. package/dist/types/components/Tooltip.d.ts +64 -0
  84. package/dist/types/components/Typography.d.ts +374 -0
  85. package/dist/types/components/affix/utils.d.ts +10 -0
  86. package/dist/types/components/feedback/FloatButton.d.ts +51 -0
  87. package/dist/types/components/feedback/Watermark.d.ts +33 -0
  88. package/dist/types/components/feedback/globalHolder.d.ts +17 -0
  89. package/dist/types/components/form/statusContext.d.ts +18 -0
  90. package/dist/types/components/form/statusContext.type-smoke.d.ts +24 -0
  91. package/dist/types/components/splitter/Panel.d.ts +6 -0
  92. package/dist/types/components/splitter/SplitBar.d.ts +32 -0
  93. package/dist/types/components/splitter/interface.d.ts +89 -0
  94. package/dist/types/components/splitter/sizeUtil.d.ts +5 -0
  95. package/dist/types/components/splitter/useItems.d.ts +3 -0
  96. package/dist/types/components/splitter/useResizable.d.ts +9 -0
  97. package/dist/types/components/splitter/useResize.d.ts +9 -0
  98. package/dist/types/components/splitter/useSizes.d.ts +11 -0
  99. package/dist/types/components/table/columnState.d.ts +36 -0
  100. package/dist/types/components/table/pagination.d.ts +34 -0
  101. package/dist/types/components/table/selection.d.ts +23 -0
  102. package/dist/types/components/table/types.d.ts +163 -0
  103. package/dist/types/hooks/useReducedMotion.d.ts +1 -0
  104. package/dist/types/index.d.ts +44 -0
  105. package/dist/types/legacy-index.d.ts +136 -0
  106. package/dist/types/pro/index.d.ts +17 -0
  107. package/dist/types/tokens.d.ts +266 -0
  108. package/dist/types/utils/cn.d.ts +3 -0
  109. package/dist/types/utils/slots.d.ts +5 -0
  110. package/package.json +126 -0
@@ -0,0 +1,266 @@
1
+ export declare const themeToken: {
2
+ readonly color: {
3
+ readonly brand: "var(--hj-color-brand)";
4
+ readonly brandHover: "var(--hj-color-brand-hover)";
5
+ readonly brandActive: "var(--hj-color-brand-active)";
6
+ readonly brandWeak: "var(--hj-color-brand-weak)";
7
+ readonly success: "var(--hj-color-success)";
8
+ readonly warning: "var(--hj-color-warning)";
9
+ readonly info: "var(--hj-color-info)";
10
+ readonly danger: "var(--hj-color-danger)";
11
+ readonly dangerSoft: "var(--hj-color-danger-soft)";
12
+ readonly purchase: "var(--hj-color-purchase)";
13
+ readonly webPage: "var(--hj-color-web-page)";
14
+ readonly webBg: "var(--hj-color-web-bg)";
15
+ readonly webSurface: "var(--hj-color-web-surface)";
16
+ readonly webControl: "var(--hj-color-web-control)";
17
+ readonly webSurfaceRaised: "var(--hj-color-web-surface-raised)";
18
+ readonly webSurfaceActive: "var(--hj-color-web-surface-active)";
19
+ readonly webBorder: "var(--hj-color-web-border)";
20
+ readonly webBorderStrong: "var(--hj-color-web-border-strong)";
21
+ readonly webForeground: "var(--hj-color-web-foreground)";
22
+ readonly webForeground80: "var(--hj-color-web-foreground-80)";
23
+ readonly webMuted: "var(--hj-color-web-muted)";
24
+ readonly webSubtle: "var(--hj-color-web-subtle)";
25
+ readonly webDisabled: "var(--hj-color-web-disabled)";
26
+ readonly adminBrand: "var(--hj-color-admin-brand)";
27
+ readonly adminBrandHover: "var(--hj-color-admin-brand-hover)";
28
+ readonly adminBg: "var(--hj-color-admin-bg)";
29
+ readonly adminSurface: "var(--hj-color-admin-surface)";
30
+ readonly adminSurfaceMuted: "var(--hj-color-admin-surface-muted)";
31
+ readonly adminBorder: "var(--hj-color-admin-border)";
32
+ readonly adminBorderStrong: "var(--hj-color-admin-border-strong)";
33
+ readonly adminForeground: "var(--hj-color-admin-foreground)";
34
+ readonly adminMuted: "var(--hj-color-admin-muted)";
35
+ };
36
+ readonly radius: {
37
+ readonly xs: "var(--hj-radius-xs)";
38
+ readonly sm: "var(--hj-radius-sm)";
39
+ readonly md: "var(--hj-radius-md)";
40
+ readonly lg: "var(--hj-radius-lg)";
41
+ };
42
+ readonly button: {
43
+ readonly fontFamily: "var(--hj-button-font-family)";
44
+ readonly fontWeight: "var(--hj-button-font-weight)";
45
+ readonly lightFontFamily: "var(--hj-button-light-font-family)";
46
+ readonly lightFontWeight: "var(--hj-button-light-font-weight)";
47
+ readonly heightXs: "var(--hj-button-xs-height)";
48
+ readonly heightSm: "var(--hj-button-sm-height)";
49
+ readonly heightMd: "var(--hj-button-md-height)";
50
+ readonly heightLg: "var(--hj-button-lg-height)";
51
+ readonly minWidthXs: "var(--hj-button-xs-min-width)";
52
+ readonly minWidthSm: "var(--hj-button-sm-min-width)";
53
+ readonly minWidthMd: "var(--hj-button-md-min-width)";
54
+ readonly minWidthLg: "var(--hj-button-lg-min-width)";
55
+ readonly lineHeightXs: "var(--hj-button-xs-line-height)";
56
+ readonly lineHeightSm: "var(--hj-button-sm-line-height)";
57
+ readonly lineHeightMd: "var(--hj-button-md-line-height)";
58
+ readonly lineHeightLg: "var(--hj-button-lg-line-height)";
59
+ readonly primaryBg: "var(--hj-button-primary-bg)";
60
+ readonly primaryBgHover: "var(--hj-button-primary-bg-hover)";
61
+ readonly primaryBgActive: "var(--hj-button-primary-bg-active)";
62
+ readonly defaultBg: "var(--hj-button-default-bg)";
63
+ readonly defaultBgHover: "var(--hj-button-default-bg-hover)";
64
+ readonly defaultBgActive: "var(--hj-button-default-bg-active)";
65
+ readonly lightBg: "var(--hj-button-light-bg)";
66
+ readonly lightBgHover: "var(--hj-button-light-bg-hover)";
67
+ readonly lightBgActive: "var(--hj-button-light-bg-active)";
68
+ readonly lightBorder: "var(--hj-button-light-border)";
69
+ readonly lightBorderHover: "var(--hj-button-light-border-hover)";
70
+ readonly lightForeground: "var(--hj-button-light-fg)";
71
+ readonly translucentBg: "var(--hj-button-translucent-bg)";
72
+ readonly translucentBgHover: "var(--hj-button-translucent-bg-hover)";
73
+ readonly translucentBgActive: "var(--hj-button-translucent-bg-active)";
74
+ readonly toggleBg: "var(--hj-button-toggle-bg)";
75
+ readonly toggleBgHover: "var(--hj-button-toggle-bg-hover)";
76
+ readonly toggleBgActive: "var(--hj-button-toggle-bg-active)";
77
+ readonly textForeground: "var(--hj-button-text-fg)";
78
+ readonly textDefaultForeground: "var(--hj-button-text-default-fg)";
79
+ readonly groupSeparator: "var(--hj-button-group-separator)";
80
+ };
81
+ readonly iconButton: {
82
+ readonly defaultBorder: "var(--hj-icon-button-default-border)";
83
+ readonly defaultBackground: "var(--hj-icon-button-default-bg)";
84
+ readonly defaultForeground: "var(--hj-icon-button-default-fg)";
85
+ readonly defaultBorderHover: "var(--hj-icon-button-default-border-hover)";
86
+ readonly defaultForegroundHover: "var(--hj-icon-button-default-fg-hover)";
87
+ readonly primaryBorder: "var(--hj-icon-button-primary-border)";
88
+ readonly primaryBackground: "var(--hj-icon-button-primary-bg)";
89
+ readonly primaryBackgroundHover: "var(--hj-icon-button-primary-bg-hover)";
90
+ readonly primaryForeground: "var(--hj-icon-button-primary-fg)";
91
+ readonly ghostBorder: "var(--hj-icon-button-ghost-border)";
92
+ readonly ghostBackground: "var(--hj-icon-button-ghost-bg)";
93
+ readonly ghostForeground: "var(--hj-icon-button-ghost-fg)";
94
+ readonly ghostForegroundHover: "var(--hj-icon-button-ghost-fg-hover)";
95
+ readonly selectedBorder: "var(--hj-icon-button-selected-border)";
96
+ readonly selectedBackground: "var(--hj-icon-button-selected-bg)";
97
+ readonly selectedForeground: "var(--hj-icon-button-selected-fg)";
98
+ };
99
+ readonly input: {
100
+ readonly heightSm: "var(--hj-input-height-sm)";
101
+ readonly heightMd: "var(--hj-input-height-md)";
102
+ readonly heightLg: "var(--hj-input-height-lg)";
103
+ readonly paddingX: "var(--hj-input-padding-x)";
104
+ readonly gap: "var(--hj-input-gap)";
105
+ readonly fontSize: "var(--hj-input-font-size)";
106
+ readonly lineHeight: "var(--hj-input-line-height)";
107
+ readonly radius: "var(--hj-input-radius)";
108
+ readonly background: "var(--hj-input-bg)";
109
+ readonly backgroundActive: "var(--hj-input-bg-active)";
110
+ readonly border: "var(--hj-input-border)";
111
+ readonly borderActive: "var(--hj-input-border-active)";
112
+ readonly foreground: "var(--hj-input-fg)";
113
+ readonly placeholder: "var(--hj-input-placeholder)";
114
+ readonly icon: "var(--hj-input-icon)";
115
+ readonly clear: "var(--hj-input-clear)";
116
+ readonly addon: "var(--hj-input-addon)";
117
+ readonly addonBackground: "var(--hj-input-addon-bg)";
118
+ readonly addonForeground: "var(--hj-input-addon-fg)";
119
+ };
120
+ readonly checkbox: {
121
+ readonly size: "var(--hj-checkbox-size)";
122
+ readonly borderWidth: "var(--hj-checkbox-border-width)";
123
+ readonly border: "var(--hj-checkbox-border)";
124
+ readonly borderHover: "var(--hj-checkbox-border-hover)";
125
+ readonly background: "var(--hj-checkbox-bg)";
126
+ readonly backgroundChecked: "var(--hj-checkbox-bg-checked)";
127
+ readonly icon: "var(--hj-checkbox-icon)";
128
+ readonly label: "var(--hj-checkbox-label)";
129
+ readonly labelActive: "var(--hj-checkbox-label-active)";
130
+ };
131
+ readonly switch: {
132
+ readonly width: "var(--hj-switch-width)";
133
+ readonly height: "var(--hj-switch-height)";
134
+ readonly padding: "var(--hj-switch-padding)";
135
+ readonly thumbSize: "var(--hj-switch-thumb-size)";
136
+ readonly background: "var(--hj-switch-bg)";
137
+ readonly backgroundChecked: "var(--hj-switch-bg-checked)";
138
+ readonly thumbBackground: "var(--hj-switch-thumb-bg)";
139
+ };
140
+ readonly skeleton: {
141
+ readonly background: "var(--hj-skeleton-bg)";
142
+ readonly highlight: "var(--hj-skeleton-highlight)";
143
+ readonly gap: "var(--hj-skeleton-gap)";
144
+ readonly rowHeight: "var(--hj-skeleton-row-height)";
145
+ readonly rowGap: "var(--hj-skeleton-row-gap)";
146
+ readonly titleHeight: "var(--hj-skeleton-title-height)";
147
+ readonly titleMargin: "var(--hj-skeleton-title-margin)";
148
+ readonly radius: "var(--hj-skeleton-radius)";
149
+ readonly radiusSquare: "var(--hj-skeleton-radius-square)";
150
+ readonly sizeSm: "var(--hj-skeleton-size-sm)";
151
+ readonly sizeMd: "var(--hj-skeleton-size-md)";
152
+ readonly sizeLg: "var(--hj-skeleton-size-lg)";
153
+ };
154
+ readonly tooltip: {
155
+ readonly radius: "var(--hj-tooltip-radius)";
156
+ readonly height: "var(--hj-tooltip-height)";
157
+ readonly minWidth: "var(--hj-tooltip-min-width)";
158
+ readonly paddingX: "var(--hj-tooltip-padding-x)";
159
+ readonly arrowSize: "var(--hj-tooltip-arrow-size)";
160
+ readonly gap: "var(--hj-tooltip-gap)";
161
+ readonly lightBg: "var(--hj-tooltip-light-bg)";
162
+ readonly lightFg: "var(--hj-tooltip-light-fg)";
163
+ readonly darkBg: "var(--hj-tooltip-dark-bg)";
164
+ readonly darkFg: "var(--hj-tooltip-dark-fg)";
165
+ readonly shadow: "var(--hj-tooltip-shadow)";
166
+ };
167
+ readonly message: {
168
+ readonly height: "var(--hj-message-height)";
169
+ readonly radius: "var(--hj-message-radius)";
170
+ readonly paddingX: "var(--hj-message-padding-x)";
171
+ readonly gap: "var(--hj-message-gap)";
172
+ readonly background: "var(--hj-message-bg)";
173
+ readonly foreground: "var(--hj-message-fg)";
174
+ readonly lightBackground: "var(--hj-message-light-bg)";
175
+ readonly lightForeground: "var(--hj-message-light-fg)";
176
+ readonly actionForeground: "var(--hj-message-action-fg)";
177
+ readonly closeForeground: "var(--hj-message-close-fg)";
178
+ readonly closeForegroundHover: "var(--hj-message-close-fg-hover)";
179
+ readonly iconSize: "var(--hj-message-icon-size)";
180
+ readonly success: "var(--hj-message-success)";
181
+ readonly warning: "var(--hj-message-warning)";
182
+ readonly error: "var(--hj-message-error)";
183
+ readonly info: "var(--hj-message-info)";
184
+ readonly shadow: "var(--hj-message-shadow)";
185
+ };
186
+ readonly modal: {
187
+ readonly background: "var(--hj-modal-bg)";
188
+ readonly foreground: "var(--hj-modal-fg)";
189
+ readonly bodyForeground: "var(--hj-modal-body-fg)";
190
+ readonly paddingX: "var(--hj-modal-padding-x)";
191
+ readonly paddingY: "var(--hj-modal-padding-y)";
192
+ readonly headerHeight: "var(--hj-modal-header-height)";
193
+ readonly wrapPaddingY: "var(--hj-modal-wrap-padding-y)";
194
+ readonly closeSize: "var(--hj-modal-close-size)";
195
+ readonly closeInset: "var(--hj-modal-close-inset)";
196
+ readonly maskBackground: "var(--hj-modal-mask-bg)";
197
+ readonly radius: "var(--hj-modal-radius)";
198
+ readonly shadow: "var(--hj-modal-shadow)";
199
+ };
200
+ readonly menu: {
201
+ readonly background: "var(--hj-menu-bg)";
202
+ readonly border: "var(--hj-menu-border)";
203
+ readonly shadow: "var(--hj-menu-shadow)";
204
+ readonly itemBackground: "var(--hj-menu-item-bg)";
205
+ readonly itemBackgroundHover: "var(--hj-menu-item-bg-hover)";
206
+ readonly itemBackgroundActive: "var(--hj-menu-item-bg-active)";
207
+ readonly itemForeground: "var(--hj-menu-item-fg)";
208
+ readonly itemForegroundActive: "var(--hj-menu-item-fg-active)";
209
+ readonly itemMuted: "var(--hj-menu-item-muted)";
210
+ readonly avatarBackground: "var(--hj-menu-avatar-bg)";
211
+ readonly avatarForeground: "var(--hj-menu-avatar-fg)";
212
+ readonly divider: "var(--hj-menu-divider)";
213
+ };
214
+ readonly tabs: {
215
+ readonly lineForeground: "var(--hj-tabs-line-fg)";
216
+ readonly lineForegroundHover: "var(--hj-tabs-line-fg-hover)";
217
+ readonly lineForegroundActive: "var(--hj-tabs-line-fg-active)";
218
+ readonly lineInk: "var(--hj-tabs-line-ink)";
219
+ readonly cardBackground: "var(--hj-tabs-card-bg)";
220
+ readonly cardBackgroundHover: "var(--hj-tabs-card-bg-hover)";
221
+ readonly cardBackgroundActive: "var(--hj-tabs-card-bg-active)";
222
+ readonly cardForeground: "var(--hj-tabs-card-fg)";
223
+ readonly cardForegroundActive: "var(--hj-tabs-card-fg-active)";
224
+ readonly boxedBackground: "var(--hj-tabs-boxed-bg)";
225
+ readonly boxedBorder: "var(--hj-tabs-boxed-border)";
226
+ readonly boxedItemBorder: "var(--hj-tabs-boxed-item-border)";
227
+ readonly boxedForeground: "var(--hj-tabs-boxed-fg)";
228
+ readonly boxedForegroundHover: "var(--hj-tabs-boxed-fg-hover)";
229
+ readonly boxedForegroundActive: "var(--hj-tabs-boxed-fg-active)";
230
+ readonly boxedIndicatorBackground: "var(--hj-tabs-boxed-indicator-bg)";
231
+ readonly boxedIndicatorBorder: "var(--hj-tabs-boxed-indicator-border)";
232
+ readonly boxedIndicatorShadow: "var(--hj-tabs-boxed-indicator-shadow)";
233
+ };
234
+ readonly shadow: {
235
+ readonly sm: "var(--hj-shadow-sm)";
236
+ readonly md: "var(--hj-shadow-md)";
237
+ readonly lg: "var(--hj-shadow-lg)";
238
+ };
239
+ readonly spacing: {
240
+ readonly xs: "var(--hj-spacing-xs)";
241
+ readonly sm: "var(--hj-spacing-sm)";
242
+ readonly md: "var(--hj-spacing-md)";
243
+ readonly lg: "var(--hj-spacing-lg)";
244
+ readonly xl: "var(--hj-spacing-xl)";
245
+ };
246
+ readonly zIndex: {
247
+ readonly dropdown: "var(--hj-z-dropdown)";
248
+ readonly sticky: "var(--hj-z-sticky)";
249
+ readonly modal: "var(--hj-z-modal)";
250
+ readonly toast: "var(--hj-z-toast)";
251
+ };
252
+ readonly motion: {
253
+ readonly durationFast: "var(--hj-motion-duration-fast)";
254
+ readonly durationNormal: "var(--hj-motion-duration-normal)";
255
+ readonly durationSlow: "var(--hj-motion-duration-slow)";
256
+ readonly easeIn: "var(--hj-motion-ease-in)";
257
+ readonly easeOut: "var(--hj-motion-ease-out)";
258
+ readonly easeInOut: "var(--hj-motion-ease-in-out)";
259
+ readonly easeOutCirc: "var(--hj-motion-ease-out-circ)";
260
+ readonly easeInOutCirc: "var(--hj-motion-ease-in-out-circ)";
261
+ readonly deadline: "var(--hj-motion-deadline)";
262
+ };
263
+ };
264
+ export type ThemeToken = typeof themeToken;
265
+ export type CssVarName = `--hj-${string}`;
266
+ export declare function cssVar(name: CssVarName, fallback?: string): string;
@@ -0,0 +1,3 @@
1
+ type ClassValue = string | false | null | undefined;
2
+ export declare function cn(...values: readonly ClassValue[]): string;
3
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { CSSProperties } from "react";
2
+ export type SlotClassNames<TSlot extends string> = Partial<Record<TSlot, string>>;
3
+ export type SlotStyles<TSlot extends string> = Partial<Record<TSlot, CSSProperties>>;
4
+ export declare function slotClass<TSlot extends string>(classNames: SlotClassNames<TSlot> | undefined, slot: TSlot, ...defaults: readonly (string | false | null | undefined)[]): string;
5
+ export declare function slotStyle<TSlot extends string>(styles: SlotStyles<TSlot> | undefined, slot: TSlot, defaults?: CSSProperties): CSSProperties;
package/package.json ADDED
@@ -0,0 +1,126 @@
1
+ {
2
+ "name": "@996-design/996-ui",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/cjs/index.cjs",
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "LICENSE",
12
+ "NOTICE.md"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types/index.d.ts",
17
+ "import": "./dist/esm/index.js",
18
+ "require": "./dist/cjs/index.cjs",
19
+ "default": "./dist/esm/index.js"
20
+ },
21
+ "./legacy": {
22
+ "types": "./dist/types/legacy-index.d.ts",
23
+ "import": "./dist/esm/legacy-index.js",
24
+ "require": "./dist/cjs/legacy-index.cjs",
25
+ "default": "./dist/esm/legacy-index.js"
26
+ },
27
+ "./pro": {
28
+ "types": "./dist/types/pro/index.d.ts",
29
+ "import": "./dist/esm/pro/index.js",
30
+ "require": "./dist/cjs/pro/index.cjs",
31
+ "default": "./dist/esm/pro/index.js"
32
+ },
33
+ "./theme.css": "./dist/theme.css",
34
+ "./styles.css": "./dist/styles.css",
35
+ "./package.json": "./package.json"
36
+ },
37
+ "style": "./dist/styles.css",
38
+ "dependencies": {
39
+ "@rc-component/cascader": "~1.17.0",
40
+ "@rc-component/checkbox": "~2.0.0",
41
+ "@rc-component/collapse": "~1.2.0",
42
+ "@rc-component/dialog": "~1.10.0",
43
+ "@rc-component/drawer": "~1.4.2",
44
+ "@rc-component/dropdown": "~1.0.3",
45
+ "@rc-component/form": "~1.8.5",
46
+ "@rc-component/image": "~1.9.0",
47
+ "@rc-component/input": "~1.3.1",
48
+ "@rc-component/input-number": "~1.6.2",
49
+ "@rc-component/menu": "~1.4.1",
50
+ "@rc-component/motion": "^1.3.3",
51
+ "@rc-component/mutate-observer": "^2.0.1",
52
+ "@rc-component/notification": "~2.0.7",
53
+ "@rc-component/mentions": "~1.10.0",
54
+ "@rc-component/pagination": "~1.4.0",
55
+ "@rc-component/picker": "~1.11.0",
56
+ "@rc-component/progress": "~1.0.2",
57
+ "@rc-component/qrcode": "~2.0.0",
58
+ "@rc-component/rate": "~1.0.1",
59
+ "@rc-component/resize-observer": "^1.1.2",
60
+ "@rc-component/select": "~1.8.2",
61
+ "@rc-component/segmented": "~1.3.0",
62
+ "@rc-component/slider": "~1.1.1",
63
+ "@rc-component/steps": "~1.2.2",
64
+ "@rc-component/switch": "~1.0.3",
65
+ "@rc-component/table": "~1.10.4",
66
+ "@rc-component/tabs": "~1.11.0",
67
+ "@rc-component/tooltip": "~1.4.0",
68
+ "@rc-component/tour": "~2.4.0",
69
+ "@rc-component/trigger": "^3.10.0",
70
+ "@rc-component/tree": "~1.3.2",
71
+ "@rc-component/tree-select": "~1.11.0",
72
+ "@rc-component/upload": "~1.1.1",
73
+ "@rc-component/util": "^1.11.1",
74
+ "dayjs": "^1.11.11",
75
+ "scroll-into-view-if-needed": "^3.1.0",
76
+ "@996-design/996-antd": "6.5.1",
77
+ "@996-design/996-color": "0.1.0",
78
+ "@996-design/996-color-picker": "3.1.1",
79
+ "@996-design/996-icons": "6.3.2",
80
+ "@996-design/996-motion": "0.1.0",
81
+ "@996-design/996-slick": "2.0.0",
82
+ "@996-design/996-style": "0.1.0",
83
+ "@996-design/996-tokens": "0.1.0",
84
+ "@996-design/996-utils": "0.1.0"
85
+ },
86
+ "peerDependencies": {
87
+ "react": "^19.0.0",
88
+ "react-dom": "^19.0.0"
89
+ },
90
+ "devDependencies": {
91
+ "@tailwindcss/vite": "4.3.2",
92
+ "@types/react": "^19.2.0",
93
+ "@types/react-dom": "^19.2.0",
94
+ "@vitejs/plugin-react": "4.7.0",
95
+ "react": "^19.0.0",
96
+ "react-dom": "^19.0.0",
97
+ "tailwindcss": "4.3.2",
98
+ "typescript": "^6.0.0",
99
+ "vite": "5.2.14"
100
+ },
101
+ "description": "Public React component and theme entry point for 996 Design",
102
+ "keywords": [
103
+ "996-design",
104
+ "react",
105
+ "components",
106
+ "design-system"
107
+ ],
108
+ "publishConfig": {
109
+ "access": "public",
110
+ "registry": "https://registry.npmjs.org"
111
+ },
112
+ "module": "./dist/esm/index.js",
113
+ "types": "./dist/types/index.d.ts",
114
+ "sideEffects": [
115
+ "*.css"
116
+ ],
117
+ "scripts": {
118
+ "check": "tsc -p tsconfig.json && bun -e \"await import('./src/index.ts')\" && bun ../../scripts/check-996-design-source-parity.ts && bun ../../scripts/check-996-design-toolchain-parity.ts && bun ../../scripts/check-996-design-demo-parity.ts && bun ../../scripts/check-996-design-demo-copy.ts && bun ../../scripts/check-996-design-brand-boundary.ts && bun ../../scripts/check-996-design-component-coverage.ts && bun ../../scripts/check-996-design-architecture.ts && bun ../../scripts/check-996-design-publish.ts",
119
+ "check:browser": "node ../../scripts/check-996-design-browser.mjs",
120
+ "build": "bun ../../scripts/build-996-design-source-package.ts",
121
+ "dev": "vite --config demo/vite.config.ts --host 0.0.0.0 --port 5174 --strictPort",
122
+ "build:demo": "vite build --config demo/vite.config.ts",
123
+ "ux:qa": "bun scripts/run-ux-crop-qa.ts",
124
+ "ux:rect": "bun scripts/run-ux-rect-qa.ts"
125
+ }
126
+ }