@bioturing/components 0.15.5 → 0.16.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/dist/components/Badge/component.js +16 -11
  2. package/dist/components/Badge/component.js.map +1 -1
  3. package/dist/components/Breadcrumb/component.js +4 -3
  4. package/dist/components/Breadcrumb/component.js.map +1 -1
  5. package/dist/components/Button/component.js +30 -3
  6. package/dist/components/Button/component.js.map +1 -1
  7. package/dist/components/Button/style.css +1 -1
  8. package/dist/components/CodeBlock/component.js +7 -6
  9. package/dist/components/CodeBlock/component.js.map +1 -1
  10. package/dist/components/CodeBlock/style.css +1 -1
  11. package/dist/components/Collapse/component.js +11 -10
  12. package/dist/components/Collapse/component.js.map +1 -1
  13. package/dist/components/DSRoot/component.js +8 -7
  14. package/dist/components/DSRoot/component.js.map +1 -1
  15. package/dist/components/DSRoot/context.js +5 -4
  16. package/dist/components/DSRoot/context.js.map +1 -1
  17. package/dist/components/DropdownMenu/component.js +1 -0
  18. package/dist/components/DropdownMenu/component.js.map +1 -1
  19. package/dist/components/Field/component.js +13 -12
  20. package/dist/components/Field/component.js.map +1 -1
  21. package/dist/components/Form/component.js +4 -3
  22. package/dist/components/Form/component.js.map +1 -1
  23. package/dist/components/Form/item.js +1 -0
  24. package/dist/components/Form/item.js.map +1 -1
  25. package/dist/components/IconButton/component.js +1 -0
  26. package/dist/components/IconButton/component.js.map +1 -1
  27. package/dist/components/Modal/Modal.js +1 -0
  28. package/dist/components/Modal/Modal.js.map +1 -1
  29. package/dist/components/Modal/ModalProvider.js +1 -0
  30. package/dist/components/Modal/ModalProvider.js.map +1 -1
  31. package/dist/components/Modal/index.js +11 -10
  32. package/dist/components/Modal/index.js.map +1 -1
  33. package/dist/components/Popover/component.js +6 -5
  34. package/dist/components/Popover/component.js.map +1 -1
  35. package/dist/components/PopupPanel/component.js +74 -68
  36. package/dist/components/PopupPanel/component.js.map +1 -1
  37. package/dist/components/ScrollArea/component.js +10 -9
  38. package/dist/components/ScrollArea/component.js.map +1 -1
  39. package/dist/components/Slider/component.js +9 -8
  40. package/dist/components/Slider/component.js.map +1 -1
  41. package/dist/components/Splitter/component.js +12 -11
  42. package/dist/components/Splitter/component.js.map +1 -1
  43. package/dist/components/Stack/Stack.js.map +1 -1
  44. package/dist/components/Stack/StackChild.js +26 -23
  45. package/dist/components/Stack/StackChild.js.map +1 -1
  46. package/dist/components/Stack/style.css +1 -1
  47. package/dist/components/Table/component.js +54 -50
  48. package/dist/components/Table/component.js.map +1 -1
  49. package/dist/components/Table/style.css +1 -1
  50. package/dist/components/Tag/component.js +6 -5
  51. package/dist/components/Tag/component.js.map +1 -1
  52. package/dist/components/ThemeProvider/component.js +15 -14
  53. package/dist/components/ThemeProvider/component.js.map +1 -1
  54. package/dist/components/Toast/component.js +17 -16
  55. package/dist/components/Toast/component.js.map +1 -1
  56. package/dist/components/Toast/function.js +5 -4
  57. package/dist/components/Toast/function.js.map +1 -1
  58. package/dist/components/Tooltip/component.js +13 -12
  59. package/dist/components/Tooltip/component.js.map +1 -1
  60. package/dist/components/Tour/component.js +5 -4
  61. package/dist/components/Tour/component.js.map +1 -1
  62. package/dist/components/Transition/component.js +45 -32
  63. package/dist/components/Transition/component.js.map +1 -1
  64. package/dist/components/Tree/components.js +9 -8
  65. package/dist/components/Tree/components.js.map +1 -1
  66. package/dist/components/Tree/helpers.js +1 -0
  67. package/dist/components/Tree/helpers.js.map +1 -1
  68. package/dist/components/Tree/useTreeCommon.js +12 -11
  69. package/dist/components/Tree/useTreeCommon.js.map +1 -1
  70. package/dist/components/Truncate/component.js +1 -0
  71. package/dist/components/Truncate/component.js.map +1 -1
  72. package/dist/components/Upload/component.js +13 -11
  73. package/dist/components/Upload/component.js.map +1 -1
  74. package/dist/components/Upload/dragger.js +3 -2
  75. package/dist/components/Upload/dragger.js.map +1 -1
  76. package/dist/components/Upload/hooks.js +3 -2
  77. package/dist/components/Upload/hooks.js.map +1 -1
  78. package/dist/components/Upload/style.css +1 -0
  79. package/dist/components/VerticalCollapsiblePanel/component.js +35 -32
  80. package/dist/components/VerticalCollapsiblePanel/component.js.map +1 -1
  81. package/dist/components/hooks/antd.js +4 -3
  82. package/dist/components/hooks/antd.js.map +1 -1
  83. package/dist/components/hooks/base-ui.js +34 -28
  84. package/dist/components/hooks/base-ui.js.map +1 -1
  85. package/dist/components/hooks/useControlledState.js +17 -9
  86. package/dist/components/hooks/useControlledState.js.map +1 -1
  87. package/dist/components/utils/WithAntdTokens.js +14 -13
  88. package/dist/components/utils/WithAntdTokens.js.map +1 -1
  89. package/dist/components/utils/antdUtils.js +1 -0
  90. package/dist/components/utils/antdUtils.js.map +1 -1
  91. package/dist/index.d.ts +112 -59
  92. package/dist/index.js +78 -70
  93. package/dist/index.js.map +1 -1
  94. package/dist/metadata.js +81 -87
  95. package/dist/metadata.js.map +1 -1
  96. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
2
- import { Affix as p, Alert as m, Anchor as s, App as f, AutoComplete as n, Avatar as x, BackTop as l, Calendar as i, Card as c, Carousel as u, Cascader as d, Col as C, ColorPicker as T, ConfigProvider as h, DatePicker as k, Descriptions as g, Divider as S, Drawer as P, Dropdown as A, Flex as y, FloatButton as b, Grid as B, InputNumber as D, Layout as R, List as M, Mentions as v, Menu as F, Pagination as w, Popconfirm as E, Progress as I, QRCode as U, Rate as K, Result as L, Row as W, Skeleton as q, Space as G, Statistic as N, Steps as V, Tabs as O, TimePicker as Q, Timeline as j, Transfer as z, TreeSelect as H, Typography as J, Watermark as X, message as Y, notification as Z, theme as _, unstableSetRender as $, version as oo } from "antd";
2
+ import { Affix as p, Alert as m, Anchor as s, App as f, AutoComplete as n, Avatar as x, BackTop as l, Calendar as i, Card as c, Carousel as u, Cascader as d, Col as C, ColorPicker as T, ConfigProvider as g, DatePicker as h, Descriptions as k, Divider as S, Drawer as P, Dropdown as y, Flex as A, FloatButton as B, Grid as D, InputNumber as R, Layout as b, List as v, Mentions as M, Menu as F, Pagination as w, Popconfirm as E, Progress as I, QRCode as U, Rate as K, Result as L, Row as W, Skeleton as q, Space as G, Statistic as N, Steps as V, Tabs as O, TimePicker as Q, Timeline as j, Transfer as z, TreeSelect as H, Typography as J, Watermark as X, message as Y, notification as Z, theme as _, unstableSetRender as $, version as oo } from "antd";
3
3
  import { Select as ro } from "./components/Select/component.js";
4
4
  import { Modal as ao } from "./components/Modal/index.js";
5
5
  import { IconButton as mo } from "./components/IconButton/component.js";
@@ -8,11 +8,11 @@ import { Checkbox as xo } from "./components/Checkbox/component.js";
8
8
  import { Segmented as io } from "./components/Segmented/component.js";
9
9
  import { Table as uo } from "./components/Table/component.js";
10
10
  import { Tag as To } from "./components/Tag/component.js";
11
- import { ThemeProvider as ko } from "./components/ThemeProvider/component.js";
11
+ import { ThemeProvider as ho } from "./components/ThemeProvider/component.js";
12
12
  import { Split as So, Splitter as Po } from "./components/Splitter/component.js";
13
- import { Truncate as yo } from "./components/Truncate/component.js";
14
- import { DropdownMenu as Bo } from "./components/DropdownMenu/component.js";
15
- import { clsx as Ro, cn as Mo, cx as vo } from "./components/utils/cn.js";
13
+ import { Truncate as Ao } from "./components/Truncate/component.js";
14
+ import { DropdownMenu as Do } from "./components/DropdownMenu/component.js";
15
+ import { clsx as bo, cn as vo, cx as Mo } from "./components/utils/cn.js";
16
16
  import { reactNodeToString as wo } from "./components/utils/reactToString.js";
17
17
  import { isTracebackError as Io } from "./components/utils/isTracebackError.js";
18
18
  import { parseAntdPlacement as Ko, useAntdCssVarClassname as Lo, useCls as Wo, useGetPrefixCls as qo } from "./components/utils/antdUtils.js";
@@ -30,31 +30,33 @@ import { getUniqueKeysFromOriginals as fe, processTreeData as ne } from "./compo
30
30
  import { Tree as le } from "./components/Tree/components.js";
31
31
  import { Spin as ce } from "./components/Spin/component.js";
32
32
  import { Empty as de, EmptyIcon as Ce } from "./components/Empty/component.js";
33
- import { Form as he } from "./components/Form/component.js";
34
- import { Field as ge } from "./components/Field/component.js";
33
+ import { Form as ge } from "./components/Form/component.js";
34
+ import { Field as ke } from "./components/Field/component.js";
35
35
  import { Tour as Pe } from "./components/Tour/component.js";
36
- import { Toast as ye } from "./components/Toast/component.js";
37
- import { toast as Be, toastManager as De } from "./components/Toast/function.js";
38
- import { VerticalCollapsiblePanel as Me } from "./components/VerticalCollapsiblePanel/component.js";
36
+ import { Toast as Ae } from "./components/Toast/component.js";
37
+ import { toast as De, toastManager as Re } from "./components/Toast/function.js";
38
+ import { VerticalCollapsiblePanel as ve } from "./components/VerticalCollapsiblePanel/component.js";
39
39
  import { PopupPanel as Fe } from "./components/PopupPanel/component.js";
40
40
  import { CodeBlock as Ee } from "./components/CodeBlock/component.js";
41
41
  import { StackChild as Ue } from "./components/Stack/StackChild.js";
42
42
  import { Stack as Le } from "./components/Stack/index.js";
43
43
  import { Collapse as qe } from "./components/Collapse/component.js";
44
44
  import { Input as Ne } from "./components/Input/component.js";
45
- import { Badge as Oe } from "./components/Badge/component.js";
46
- import { Radio as je } from "./components/Radio/component.js";
47
- import { Button as He } from "./components/Button/component.js";
48
- import { DSRoot as Xe } from "./components/DSRoot/component.js";
49
- import { useForm as Ze, useWatch as _e } from "antd/es/form/Form";
50
- import { useBreakpoint as or, useMessage as er, useModal as rr, useToken as tr } from "./components/hooks/antd.js";
51
- import { default as pr } from "antd/es/app/useApp";
52
- import { useAnimationsFinished as sr, useEnhancedEffect as fr, useEventCallback as nr, useLatestRef as xr } from "./components/hooks/base-ui.js";
53
- import { useControlledState as ir } from "./components/hooks/useControlledState.js";
54
- import { useCharts as ur } from "./components/hooks/useCharts.js";
55
- import { antdColorTokens as Cr, darkTheme as Tr, lightTheme as hr } from "./tokens/and-theme/tokens.js";
56
- import { categoricalChartColorKeys as gr, categoricalChartColorTokens as Sr, categoricalChartsColors as Pr } from "./tokens/charts/index.js";
57
- import { chartColorTokens as yr, rawChartColorTokens as br } from "./tokens/charts/tokens.js";
45
+ import { Badge as Oe, InternalBadge as Qe } from "./components/Badge/component.js";
46
+ import { Radio as ze } from "./components/Radio/component.js";
47
+ import { Button as Je } from "./components/Button/component.js";
48
+ import { DSRoot as Ye } from "./components/DSRoot/component.js";
49
+ import { DSRootContextProvider as _e, useDS as $e } from "./components/DSRoot/context.js";
50
+ import { useForm as er, useWatch as rr } from "antd/es/form/Form";
51
+ import { useBreakpoint as ar, useMessage as pr, useModal as mr, useToken as sr } from "./components/hooks/antd.js";
52
+ import { default as nr } from "antd/es/app/useApp";
53
+ import { useAnimationsFinished as lr, useEnhancedEffect as ir, useEventCallback as cr, useLatestRef as ur } from "./components/hooks/base-ui.js";
54
+ import { useControlledState as Cr } from "./components/hooks/useControlledState.js";
55
+ import { useCharts as gr } from "./components/hooks/useCharts.js";
56
+ import { antdColorTokens as kr, darkTheme as Sr, lightTheme as Pr } from "./tokens/and-theme/tokens.js";
57
+ import { categoricalChartColorKeys as Ar, categoricalChartColorTokens as Br, categoricalChartsColors as Dr } from "./tokens/charts/index.js";
58
+ import { chartColorTokens as br, rawChartColorTokens as vr } from "./tokens/charts/tokens.js";
59
+ import { getColorsByTheme as Fr, getTokensByTheme as wr, resolveColorTokens as Er } from "./tokens/utils.js";
58
60
  export {
59
61
  p as Affix,
60
62
  m as Alert,
@@ -65,7 +67,7 @@ export {
65
67
  l as BackTop,
66
68
  Oe as Badge,
67
69
  ae as Breadcrumb,
68
- He as Button,
70
+ Je as Button,
69
71
  i as Calendar,
70
72
  c as Card,
71
73
  u as Carousel,
@@ -75,28 +77,30 @@ export {
75
77
  C as Col,
76
78
  qe as Collapse,
77
79
  T as ColorPicker,
78
- h as ConfigProvider,
79
- Xe as DSRoot,
80
- k as DatePicker,
80
+ g as ConfigProvider,
81
+ Ye as DSRoot,
82
+ _e as DSRootContextProvider,
83
+ h as DatePicker,
81
84
  jo as DefaultUpload,
82
- g as Descriptions,
85
+ k as Descriptions,
83
86
  S as Divider,
84
87
  P as Drawer,
85
- A as Dropdown,
86
- Bo as DropdownMenu,
88
+ y as Dropdown,
89
+ Do as DropdownMenu,
87
90
  de as Empty,
88
91
  Ce as EmptyIcon,
89
- ge as Field,
90
- y as Flex,
91
- b as FloatButton,
92
- he as Form,
93
- B as Grid,
92
+ ke as Field,
93
+ A as Flex,
94
+ B as FloatButton,
95
+ ge as Form,
96
+ D as Grid,
94
97
  mo as IconButton,
95
98
  Ne as Input,
96
- D as InputNumber,
97
- R as Layout,
98
- M as List,
99
- v as Mentions,
99
+ R as InputNumber,
100
+ Qe as InternalBadge,
101
+ b as Layout,
102
+ v as List,
103
+ M as Mentions,
100
104
  F as Menu,
101
105
  ao as Modal,
102
106
  w as Pagination,
@@ -105,7 +109,7 @@ export {
105
109
  Fe as PopupPanel,
106
110
  I as Progress,
107
111
  U as QRCode,
108
- je as Radio,
112
+ ze as Radio,
109
113
  K as Rate,
110
114
  L as Result,
111
115
  W as Row,
@@ -126,64 +130,68 @@ export {
126
130
  uo as Table,
127
131
  O as Tabs,
128
132
  To as Tag,
129
- ko as ThemeProvider,
133
+ ho as ThemeProvider,
130
134
  Q as TimePicker,
131
135
  j as Timeline,
132
- ye as Toast,
136
+ Ae as Toast,
133
137
  re as Tooltip,
134
138
  Pe as Tour,
135
139
  z as Transfer,
136
140
  Oo as Transition,
137
141
  le as Tree,
138
142
  H as TreeSelect,
139
- yo as Truncate,
143
+ Ao as Truncate,
140
144
  J as Typography,
141
145
  zo as Upload,
142
- Me as VerticalCollapsiblePanel,
146
+ ve as VerticalCollapsiblePanel,
143
147
  X as Watermark,
144
148
  No as WithAntdTokens,
145
- Cr as antdColorTokens,
146
- gr as categoricalChartColorKeys,
147
- Sr as categoricalChartColorTokens,
148
- Pr as categoricalChartsColors,
149
- yr as chartColorTokens,
150
- Ro as clsx,
151
- Mo as cn,
149
+ kr as antdColorTokens,
150
+ Ar as categoricalChartColorKeys,
151
+ Br as categoricalChartColorTokens,
152
+ Dr as categoricalChartsColors,
153
+ br as chartColorTokens,
154
+ bo as clsx,
155
+ vo as cn,
152
156
  r as componentMetadata,
153
- vo as cx,
154
- Tr as darkTheme,
157
+ Mo as cx,
158
+ Sr as darkTheme,
159
+ Fr as getColorsByTheme,
155
160
  t as getComponentsByCategory,
161
+ wr as getTokensByTheme,
156
162
  fe as getUniqueKeysFromOriginals,
157
163
  Io as isTracebackError,
158
- hr as lightTheme,
164
+ Pr as lightTheme,
159
165
  Y as message,
160
166
  Z as notification,
161
167
  Ko as parseAntdPlacement,
162
168
  ne as processTreeData,
163
- br as rawChartColorTokens,
169
+ vr as rawChartColorTokens,
164
170
  wo as reactNodeToString,
171
+ Er as resolveColorTokens,
165
172
  _ as theme,
166
- Be as toast,
167
- De as toastManager,
173
+ De as toast,
174
+ Re as toastManager,
168
175
  $ as unstableSetRender,
169
- sr as useAnimationsFinished,
176
+ lr as useAnimationsFinished,
170
177
  Lo as useAntdCssVarClassname,
171
- pr as useApp,
172
- or as useBreakpoint,
173
- ur as useCharts,
178
+ nr as useApp,
179
+ ar as useBreakpoint,
180
+ gr as useCharts,
174
181
  Wo as useCls,
175
- ir as useControlledState,
176
- fr as useEnhancedEffect,
177
- nr as useEventCallback,
178
- Ze as useForm,
182
+ Cr as useControlledState,
183
+ $e as useDS,
184
+ ir as useEnhancedEffect,
185
+ cr as useEventCallback,
186
+ er as useForm,
179
187
  qo as useGetPrefixCls,
180
- xr as useLatestRef,
181
- er as useMessage,
182
- rr as useModal,
183
- tr as useToken,
188
+ ur as useLatestRef,
189
+ pr as useMessage,
190
+ mr as useModal,
191
+ sr as useToken,
184
192
  me as useUniqueKeysTree,
185
193
  Jo as useUploadItemRender,
186
- _e as useWatch,
194
+ rr as useWatch,
187
195
  oo as version
188
196
  };
189
197
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/metadata.js CHANGED
@@ -4,9 +4,9 @@ const i = {
4
4
  link: "/badge",
5
5
  base: "antd",
6
6
  refinements: [
7
- "Applies a BioTuring Design System specific CSS class 'ds-badge'.",
7
+ "Applies a BioTuring Design System specific CSS class `ds-badge`.",
8
8
  "Applies Ant Design's CSS variable class name to ensure proper theming context.",
9
- "Sets 'display: inline-flex;' on the 'ds-badge' class via './style.css' for consistent layout."
9
+ "Sets `display: inline-flex;` on the `ds-badge` class via `./style.css` for consistent layout."
10
10
  ],
11
11
  category: "Data Display",
12
12
  originalDocUrl: "https://ant.design/components/badge",
@@ -17,10 +17,10 @@ const i = {
17
17
  link: "/breadcrumb",
18
18
  base: "antd",
19
19
  refinements: [
20
- "Employs a custom 'useItemRender' hook to allow icons (from 'item.icon') to be rendered alongside the title within each breadcrumb link.",
21
- "Introduces a 'noWrap' boolean prop for responsive behavior: when true, breadcrumb items attempt to stay on a single line, with text overflow and ellipsis applied to truncatable items.",
22
- "Applies BioTuring Design System specific styling via './style.css' for layout (flexbox-based), item spacing, icon integration, and responsive truncation.",
23
- "Exports styled 'Breadcrumb.Item' and 'Breadcrumb.Separator' sub-components."
20
+ "Employs a custom `useItemRender` hook to allow icons (from `item.icon`) to be rendered alongside the title within each breadcrumb link.",
21
+ "Introduces a `noWrap` boolean prop for responsive behavior: when true, breadcrumb items attempt to stay on a single line, with text overflow and ellipsis applied to truncatable items.",
22
+ "Applies BioTuring Design System specific styling via `./style.css` for layout (flexbox-based), item spacing, icon integration, and responsive truncation.",
23
+ "Exports styled `Breadcrumb.Item` and `Breadcrumb.Separator` sub-components."
24
24
  ],
25
25
  category: "Navigation",
26
26
  originalDocUrl: "https://ant.design/components/breadcrumb",
@@ -49,7 +49,7 @@ const i = {
49
49
  link: "/code-block",
50
50
  base: "custom",
51
51
  refinements: [
52
- "Custom implementation for syntax highlighting using prism-react-renderer"
52
+ "Custom implementation for syntax highlighting using `prism-react-renderer`"
53
53
  ],
54
54
  category: "Data Display",
55
55
  packages: ["prism-react-renderer"],
@@ -85,16 +85,16 @@ const i = {
85
85
  link: "/empty",
86
86
  base: "antd",
87
87
  refinements: [
88
- "Replaces the default Ant Design illustration with a custom SVG icon ('EmptyIcon') defined within the component.",
89
- "Introduces a 'size' prop ('small', 'medium', 'large', default 'medium') that controls the font-size of the custom 'EmptyIcon'.",
90
- "Applies specific font-sizes for the icon based on the 'size' prop (small: 2rem, medium: 3rem, large: 4rem) via 'style.css'.",
91
- "The 'small' size icon also has its color set to 'var(--ds-color-base-solid)'.",
92
- "Adjusts the Ant Design Empty image container height to 'auto' via 'style.css'.",
93
- "Applies BioTuring Design System specific styling and CSS classes (e.g., 'ds-empty', 'ds-empty-icon')."
88
+ "Replaces the default Ant Design illustration with a custom SVG icon (`EmptyIcon`) defined within the component.",
89
+ "Introduces a `size` prop (`small`, `medium`, `large`, default `medium`) that controls the font-size of the custom `EmptyIcon`.",
90
+ "Applies specific font-sizes for the icon based on the `size` prop (small: 2rem, medium: 3rem, large: 4rem) via `style.css`.",
91
+ "The `small` size icon also has its color set to `var(--ds-color-base-solid)`.",
92
+ "Adjusts the Ant Design Empty image container height to `auto` via `style.css`.",
93
+ "Applies BioTuring Design System specific styling and CSS classes (e.g., `ds-empty`, `ds-empty-icon`)."
94
94
  ],
95
95
  category: "Data Display",
96
96
  originalDocUrl: "https://ant.design/components/empty",
97
- description: "A placeholder for when there is no data to display."
97
+ description: "Displays a placeholder when content is empty or unavailable."
98
98
  },
99
99
  Field: {
100
100
  name: "Field",
@@ -149,21 +149,21 @@ const i = {
149
149
  link: "/modal",
150
150
  base: "antd",
151
151
  refinements: [
152
- "Added predefined sizes: 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'fullscreen'",
153
- "Introduced a general 'loading' state prop for the modal content",
154
- "Added 'hideOkButton' and 'hideCancelButton' props for straightforward visibility control of footer buttons",
155
- "Added 'contentPadding' prop for direct control over modal body padding",
156
- "Enhanced header customization with 'afterTitle', 'beforeCloseButton', and 'afterCloseButton' slots for additional elements or actions",
157
- "Implemented 'defaultFixedHeaderFooter' behavior: header and footer become fixed when content overflows (controlled by internal overflow detection)",
158
- "Changed 'centered' prop to default to 'true'",
159
- "Introduced 'type' prop ('default', 'info', 'success', 'error', 'warning') influencing default behaviors like size",
160
- "Added 'background' prop ('elevated', 'container') for explicit control over modal background style, with size-dependent defaults",
161
- "Uses a custom 'X' icon from '@bioturing/assets' as the default close button icon",
162
- "Provides 'bodyScrollable' prop (defaults to true) to manage content scroll behavior within the modal body"
152
+ "Added predefined sizes: `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`, `fullscreen`",
153
+ "Introduced a general `loading` state prop for the modal content",
154
+ "Added `hideOkButton` and `hideCancelButton` props for straightforward visibility control of footer buttons",
155
+ "Added `contentPadding` prop for direct control over modal body padding",
156
+ "Enhanced header customization with `afterTitle`, `beforeCloseButton`, and `afterCloseButton` slots for additional elements or actions",
157
+ "Implemented `defaultFixedHeaderFooter` behavior: header and footer become fixed when content overflows (controlled by internal overflow detection)",
158
+ "Changed `centered` prop to default to `true`",
159
+ "Introduced `type` prop (`default`, `info`, `success`, `error`, `warning`) influencing default behaviors like size",
160
+ "Added `background` prop (`elevated`, `container`) for explicit control over modal background style, with size-dependent defaults",
161
+ "Uses a custom `X` icon from `@bioturing/assets` as the default close button icon",
162
+ "Provides `bodyScrollable` prop (defaults to true) to manage content scroll behavior within the modal body"
163
163
  ],
164
164
  category: "Overlay",
165
165
  originalDocUrl: "https://ant.design/components/modal",
166
- description: "A dialog box/popup window that is displayed on top of the current page."
166
+ description: "A modal dialog that appears in front of the app content to provide critical information or ask for a decision."
167
167
  },
168
168
  Popover: {
169
169
  name: "Popover",
@@ -171,7 +171,7 @@ const i = {
171
171
  base: "antd",
172
172
  // Retains AntD as 'base' because it aims for API compatibility
173
173
  refinements: [
174
- "Refactored to use @base-ui-components/react/popover internally",
174
+ "Refactored to use `@base-ui-components/react/popover` internally",
175
175
  "Maintains Ant Design API compatibility",
176
176
  "Custom prop mapping for placement and trigger to align with Base UI Popover",
177
177
  "Combined title and content props into a single node for Base UI Popover's content area"
@@ -179,7 +179,7 @@ const i = {
179
179
  category: "Overlay",
180
180
  originalDocUrl: "https://ant.design/components/popover",
181
181
  // Original AntD doc for API reference
182
- description: "A small overlay that appears when a user interacts with an element, displaying additional information or actions."
182
+ description: "A floating card popped by clicking or hovering that displays additional information."
183
183
  },
184
184
  PopupPanel: {
185
185
  name: "PopupPanel",
@@ -209,23 +209,23 @@ const i = {
209
209
  link: "/scroll-area",
210
210
  base: "base-ui",
211
211
  refinements: [
212
- "Wraps '@base-ui-components/react/ScrollArea' to integrate with the BioTuring Design System.",
213
- "Provides consistent 'classNames' prop pattern for styling different parts (viewport, scrollbar, thumb).",
214
- "Applies specific BioTuring Design System CSS classes (e.g., 'ds-scroll-area', 'ds-scroll-area-viewport', 'ds-scroll-area-scrollbar', 'ds-scroll-area-thumb') to Base UI component parts.",
215
- "Provides extensive custom styling via './style.css' for the root, viewport (including 'focus-visible' styles), scrollbar (opacity transitions on hover/scroll, orientation-based dimensions), and thumb (custom border-radius, background, and border colors using design tokens)."
212
+ "Wraps `@base-ui-components/react/ScrollArea` to integrate with the BioTuring Design System.",
213
+ "Provides consistent `classNames` prop pattern for styling different parts (viewport, scrollbar, thumb).",
214
+ "Applies specific BioTuring Design System CSS classes (e.g., `ds-scroll-area`, `ds-scroll-area-viewport`, `ds-scroll-area-scrollbar`, `ds-scroll-area-thumb`) to Base UI component parts.",
215
+ "Provides extensive custom styling via `./style.css` for the root, viewport (including `focus-visible` styles), scrollbar (opacity transitions on hover/scroll, orientation-based dimensions), and thumb (custom border-radius, background, and border colors using design tokens)."
216
216
  ],
217
217
  category: "Layout",
218
218
  packages: ["@base-ui-components/react"],
219
219
  originalDocUrl: "https://base-ui.com/react/components/scroll-area",
220
- description: "Provides a customizable scrollable container for content that exceeds its bounds."
220
+ description: "A scrollable container with custom scrollbars that blend with the design system."
221
221
  },
222
222
  Segmented: {
223
223
  name: "Segmented",
224
224
  link: "/segmented",
225
225
  base: "antd",
226
226
  refinements: [
227
- "Structured as a typed 'forwardRef' wrapper around the Ant Design Segmented component for type safety and consistency.",
228
- "Applies custom styles via './style.css' to ensure proper alignment and sizing of item labels and icons within the segmented control (e.g., flex centering for labels and icons, default icon size)."
227
+ "Structured as a typed `forwardRef` wrapper around the Ant Design Segmented component for type safety and consistency.",
228
+ "Applies custom styles via `./style.css` to ensure proper alignment and sizing of item labels and icons within the segmented control (e.g., flex centering for labels and icons, default icon size)."
229
229
  ],
230
230
  category: "Data Entry",
231
231
  originalDocUrl: "https://ant.design/components/segmented",
@@ -236,24 +236,24 @@ const i = {
236
236
  link: "/select",
237
237
  base: "antd",
238
238
  refinements: [
239
- "Introduced 'enhancePositioner' prop: Utilizes '@floating-ui/react' for robust dropdown positioning, allowing it to break out of overflow containers and intelligently place itself.",
240
- "Added 'popupSize' prop (works with 'enhancePositioner'): Controls the dropdown width with predefined sizes (e.g., 'small', 'medium', 'large'), pixel values, or 'fit-content'.",
241
- "Replaced default suffix icon with a custom 'CaretDown' icon from '@bioturing/assets'.",
242
- "Customized multiple selection mode: Uses Ant Design 'Checkbox' components for indicating selected items in the dropdown.",
243
- "Applied specific BioTuring Design System styling and CSS classes, including enhanced popup styles when 'enhancePositioner' is active."
239
+ "Introduced `enhancePositioner` prop: Utilizes `@floating-ui/react` for robust dropdown positioning, allowing it to break out of overflow containers and intelligently place itself.",
240
+ "Added `popupSize` prop (works with `enhancePositioner`): Controls the dropdown width with predefined sizes (e.g., `small`, `medium`, `large`), pixel values, or `fit-content`.",
241
+ "Replaced default suffix icon with a custom `CaretDown` icon from `@bioturing/assets`.",
242
+ "Customized multiple selection mode: Uses Ant Design `Checkbox` components for indicating selected items in the dropdown.",
243
+ "Applied specific BioTuring Design System styling and CSS classes, including enhanced popup styles when `enhancePositioner` is active."
244
244
  ],
245
245
  category: "Data Entry",
246
246
  packages: ["@floating-ui/react", "rc-select"],
247
247
  originalDocUrl: "https://ant.design/components/select",
248
- description: "Allows users to select one or more options from a dropdown list."
248
+ description: "A dropdown selection component for selecting values from a list of options."
249
249
  },
250
250
  Slider: {
251
251
  name: "Slider",
252
252
  link: "/slider",
253
253
  base: "antd",
254
254
  refinements: [
255
- "Applies a BioTuring Design System specific CSS class 'ds-slider'.",
256
- "Modifies the default behavior of the slider's tooltip by setting 'tooltip.arrow' to 'false' by default (Ant Design's default is true)."
255
+ "Applies a BioTuring Design System specific CSS class `ds-slider`.",
256
+ "Modifies the default behavior of the slider's tooltip by setting `tooltip.arrow` to `false` by default (Ant Design's default is true)."
257
257
  ],
258
258
  category: "Data Entry",
259
259
  originalDocUrl: "https://ant.design/components/slider",
@@ -297,44 +297,38 @@ const i = {
297
297
  link: "/switch",
298
298
  base: "antd",
299
299
  refinements: [
300
- "Structured as a typed 'forwardRef' wrapper around Ant Design's Switch component.",
301
- "Applies custom CSS to ensure 'checkedChildren' and 'unCheckedChildren' (e.g., icons, text) are properly centered within the switch handle."
300
+ "Structured as a typed `forwardRef` wrapper around Ant Design's Switch component.",
301
+ "Applies custom CSS to ensure `checkedChildren` and `unCheckedChildren` (e.g., icons, text) are properly centered within the switch handle."
302
302
  ],
303
303
  category: "Data Entry",
304
304
  originalDocUrl: "https://ant.design/components/switch",
305
- description: "A toggle control that allows users to switch between two states, typically on or off."
305
+ description: "A toggle switch for changing between two states, typically on or off."
306
306
  },
307
307
  Table: {
308
308
  name: "Table",
309
309
  link: "/table",
310
310
  base: "antd",
311
311
  refinements: [
312
- "Replaces default sort icons with custom 'CaretUp' and 'CaretDown' icons from '@bioturing/assets'. Displays both when inactive, and a filled version of the active one.",
313
- "Replaces default filter icon with a custom 'Funnel' icon (filled) from '@bioturing/assets'.",
314
- "Overrides 'locale.emptyText' to use the BioTuring 'Empty' component.",
315
- "Adds an 'emptyDescription' prop to customize the message displayed by the 'Empty' component when the table is empty.",
316
- "Uses a custom CSS-based loading indicator ('spin-loader') when the 'loading' prop is active.",
317
- "Defaults 'scroll.x' to 'fit-content' to optimize horizontal scrolling behavior.",
318
- "Applies BioTuring Design System specific styling via './style.css' for overall table appearance, including headers, rows, borders, and hover effects."
312
+ "Applies BioTuring Design System specific styling via `./style.css`.",
313
+ "Enhances the default Ant Design Table with additional features."
319
314
  ],
320
315
  category: "Data Display",
321
- packages: ["rc-table"],
322
316
  originalDocUrl: "https://ant.design/components/table",
323
- description: "Displays data in a structured, tabular format."
317
+ description: "A table displays rows of data, supporting features like sorting, filtering, and pagination."
324
318
  },
325
319
  Tag: {
326
320
  name: "Tag",
327
321
  link: "/tag",
328
322
  base: "antd",
329
323
  refinements: [
330
- "Defaults to using the 'X' icon (bold) from '@bioturing/assets' as the 'closeIcon' if the tag is 'closable' and no custom icon is provided.",
331
- "Introduces an 'active' boolean prop (defaults to false).",
332
- "When 'active={true}', applies specific styling (background, border, text color using '--ds-color-primary' tokens) via a 'data-active' attribute and 'style.css'.",
333
- "Applies BioTuring Design System specific styling via './style.css', including base styles for alignment and consistent close icon coloring ('--ds-color-icon')."
324
+ "Defaults to using the `X` icon (bold) from `@bioturing/assets` as the `closeIcon` if the tag is `closable` and no custom icon is provided.",
325
+ "Introduces an `active` boolean prop (defaults to false).",
326
+ "When `active={true}`, applies specific styling (background, border, text color using `--ds-color-primary` tokens) via a `data-active` attribute and `style.css`.",
327
+ "Applies BioTuring Design System specific styling via `./style.css`, including base styles for alignment and consistent close icon coloring (`--ds-color-icon`)."
334
328
  ],
335
329
  category: "Data Display",
336
330
  originalDocUrl: "https://ant.design/components/tag",
337
- description: "Used for marking or categorizing items with small labels."
331
+ description: "Small UI elements for categorization, filtering, or highlighting items."
338
332
  },
339
333
  ThemeProvider: {
340
334
  name: "ThemeProvider",
@@ -365,38 +359,38 @@ const i = {
365
359
  link: "/tooltip",
366
360
  base: "antd",
367
361
  refinements: [
368
- "Defaults the 'arrow' prop to 'false', hiding the tooltip arrow by default (Ant Design's default shows an arrow).",
369
- "Applies a BioTuring Design System specific CSS class 'ds-tooltip'.",
370
- "Custom CSS sets 'min-height: auto;' for the inner content, allowing tooltips to be shorter than Ant Design's default minimum height."
362
+ "Defaults the `arrow` prop to `false`, hiding the tooltip arrow by default (Ant Design's default shows an arrow).",
363
+ "Applies a BioTuring Design System specific CSS class `ds-tooltip`.",
364
+ "Custom CSS sets `min-height: auto;` for the inner content, allowing tooltips to be shorter than Ant Design's default minimum height."
371
365
  ],
372
366
  category: "Overlay",
373
367
  originalDocUrl: "https://ant.design/components/tooltip",
374
- description: "A small pop-up that displays information when a user hovers over or focuses on an element."
368
+ description: "A simple text popup tip that appears when a user hovers over an element."
375
369
  },
376
370
  Tour: {
377
371
  name: "Tour",
378
372
  link: "/tour",
379
373
  base: "antd",
380
374
  refinements: [
381
- "Provides a custom default rendering for step indicators ('indicatorsRender') if none is supplied. This includes a 'current / total' text and visual dots for steps.",
382
- "Applies BioTuring Design System specific CSS classes (e.g., 'ds-tour') for extensive styling.",
375
+ "Provides a custom default rendering for step indicators (`indicatorsRender`) if none is supplied. This includes a `current / total` text and visual dots for steps.",
376
+ "Applies BioTuring Design System specific CSS classes (e.g., `ds-tour`) for extensive styling.",
383
377
  "Customizes typography for title, description, and indicator text using design system tokens.",
384
378
  "Adjusts layout and spacing for header, footer, and content within the tour description (paragraphs, lists, icons).",
385
379
  "Includes specific styling for the appearance of the custom default indicators (wrapper, summary text, active/inactive dots)."
386
380
  ],
387
381
  category: "Feedback",
388
382
  originalDocUrl: "https://ant.design/components/tour",
389
- description: "Guides users through new features or UI elements in a step-by-step manner."
383
+ description: "A guided tour interface that leads users through specific features of an application."
390
384
  },
391
385
  Transition: {
392
386
  name: "Transition",
393
387
  link: "/transition",
394
388
  base: "base-ui",
395
389
  refinements: [
396
- "Wraps Base UI utilities (e.g., 'useTransitionStatus', 'useRender') and custom hooks (e.g., 'useAnimationsFinished') to manage element enter/leave transitions.",
397
- "Accepts 'starting' and 'ending' props, which can be CSS class strings (for Tailwind) or style objects, to define transition states.",
398
- "Dynamically applies 'starting'/'ending' styles and sets 'data-starting'/'data-ending' attributes on the child element based on transition phase.",
399
- "Manages mounting/unmounting of children post-animation, with a 'keepMounted' option, using a custom 'useAnimationsFinished' hook.",
390
+ "Wraps Base UI utilities (e.g., `useTransitionStatus`, `useRender`) and custom hooks (e.g., `useAnimationsFinished`) to manage element enter/leave transitions.",
391
+ "Accepts `starting` and `ending` props, which can be CSS class strings (for Tailwind) or style objects, to define transition states.",
392
+ "Dynamically applies `starting`/`ending` styles and sets `data-starting`/`data-ending` attributes on the child element based on transition phase.",
393
+ "Manages mounting/unmounting of children post-animation, with a `keepMounted` option, using a custom `useAnimationsFinished` hook.",
400
394
  "Provides a declarative API for CSS-based transitions."
401
395
  ],
402
396
  category: "Utility",
@@ -452,13 +446,13 @@ const i = {
452
446
  link: "/upload",
453
447
  base: "antd",
454
448
  refinements: [
455
- "Defaults to a custom 'itemRender' function that utilizes a bespoke 'UploadItem' component for the file list.",
456
- "'UploadItem' component features: file type icon, middle-truncated file name (using Truncate component), progress bar with status mapping, and a remove button.",
457
- "Added 'showRemoveButton' prop (defaults to true) on the 'Upload' component to control visibility of the remove action in 'UploadItem'.",
458
- "'UploadItem' includes a slot for 'extraActions' allowing additional custom controls per file.",
459
- "Provides a default 'Button' with 'CloudArrowUp' icon and 'Upload Files' text if no children are passed to 'Upload'.",
460
- "Includes 'Upload.Dragger' for drag-and-drop functionality, styled for the design system.",
461
- "Exports 'Upload.Item' (the UploadItem component) for potential direct use.",
449
+ "Defaults to a custom `itemRender` function that utilizes a bespoke `UploadItem` component for the file list.",
450
+ "`UploadItem` component features: file type icon, middle-truncated file name (using Truncate component), progress bar with status mapping, and a remove button.",
451
+ "Added `showRemoveButton` prop (defaults to true) on the `Upload` component to control visibility of the remove action in `UploadItem`.",
452
+ "`UploadItem` includes a slot for `extraActions` allowing additional custom controls per file.",
453
+ "Provides a default `Button` with `CloudArrowUp` icon and 'Upload Files' text if no children are passed to `Upload`.",
454
+ "Includes `Upload.Dragger` for drag-and-drop functionality, styled for the design system.",
455
+ "Exports `Upload.Item` (the UploadItem component) for potential direct use.",
462
456
  "Applies BioTuring Design System specific styling and CSS classes."
463
457
  ],
464
458
  category: "Data Entry",
@@ -470,15 +464,15 @@ const i = {
470
464
  link: "/vertical-collapsible-panel",
471
465
  base: "base-ui",
472
466
  refinements: [
473
- "Built upon '@base-ui-components/react' Collapsible components ('Collapsible.Root', 'Collapsible.Panel').",
474
- "Manages open/closed state with a custom 'useControlledState' hook for controlled/uncontrolled behavior.",
475
- "Features custom expand/collapse trigger icons ('MinusCircle', 'PlusCircle' from '@bioturing/assets') via IconButton.",
476
- "Automatically truncates string titles using the 'Truncate' component.",
477
- "Provides 'afterTitle' and 'actions' slots in the header for additional UI elements, visible when open.",
478
- "Integrates the BioTuring 'Transition' component for smooth open/close animations of the panel body, managed with 'useAnimationsFinished' hook.",
479
- "Offers a 'contentPadding' prop (default '16px') for customizable body padding via CSS variable '--ds-content-padding'.",
480
- "Extensive custom CSS for layout, typography, and a unique feature: header text displays vertically ('writing-mode: vertical-rl') when collapsed.",
481
- "Supports 'keepMounted' prop and applies Ant Design CSS variables for theming."
467
+ "Built upon `@base-ui-components/react` Collapsible components (`Collapsible.Root`, `Collapsible.Panel`).",
468
+ "Manages open/closed state with a custom `useControlledState` hook for controlled/uncontrolled behavior.",
469
+ "Features custom expand/collapse trigger icons (`MinusCircle`, `PlusCircle` from `@bioturing/assets`) via IconButton.",
470
+ "Automatically truncates string titles using the `Truncate` component.",
471
+ "Provides `afterTitle` and `actions` slots in the header for additional UI elements, visible when open.",
472
+ "Integrates the BioTuring `Transition` component for smooth open/close animations of the panel body, managed with `useAnimationsFinished` hook.",
473
+ "Offers a `contentPadding` prop (default `16px`) for customizable body padding via CSS variable `--ds-content-padding`.",
474
+ "Extensive custom CSS for layout, typography, and a unique feature: header text displays vertically (`writing-mode: vertical-rl`) when collapsed.",
475
+ "Supports `keepMounted` prop and applies Ant Design CSS variables for theming."
482
476
  ],
483
477
  category: "Layout",
484
478
  packages: ["@base-ui-components/react"],