smartsell-ui-kit 0.1.8 → 0.1.9
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 +11 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1279 -0
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -9,6 +9,16 @@ It provides the public UI contract that external consumers should rely on instea
|
|
|
9
9
|
- predictable APIs for forms, modals, data tables, and common surfaces
|
|
10
10
|
- async-friendly primitives for remote search and server-driven datasets
|
|
11
11
|
|
|
12
|
+
## Styles
|
|
13
|
+
|
|
14
|
+
The package keeps style injection enabled for backwards compatibility. New hosts should also import
|
|
15
|
+
the public stylesheet once from their application entrypoint, which makes CSS loading deterministic
|
|
16
|
+
in production and SSR builds:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import 'smartsell-ui-kit/styles.css';
|
|
20
|
+
```
|
|
21
|
+
|
|
12
22
|
## Highlights
|
|
13
23
|
|
|
14
24
|
- React 18-first component API
|
|
@@ -224,4 +234,4 @@ npm publish
|
|
|
224
234
|
|
|
225
235
|
## License
|
|
226
236
|
|
|
227
|
-
This package is distributed under the SmartSell proprietary license described in `LICENSE`.
|
|
237
|
+
This package is distributed under the SmartSell proprietary license described in `LICENSE`.
|
package/dist/index.cjs
CHANGED
|
@@ -4275,7 +4275,7 @@ function OverflowMenu({ label, children }) {
|
|
|
4275
4275
|
"aria-label": label,
|
|
4276
4276
|
className: [
|
|
4277
4277
|
"z-50 flex flex-col gap-1.5",
|
|
4278
|
-
"border-
|
|
4278
|
+
"border-[3px] border-solid border-[var(--theme-background)] bg-[var(--theme-surface)] p-2.5 shadow-none"
|
|
4279
4279
|
].join(" "),
|
|
4280
4280
|
style: {
|
|
4281
4281
|
borderRadius: 22,
|
|
@@ -4509,7 +4509,7 @@ function TableBase({
|
|
|
4509
4509
|
{
|
|
4510
4510
|
colSpan: column.colSpan,
|
|
4511
4511
|
className: [
|
|
4512
|
-
"border-b border-[var(--theme-background)] px-2.5 py-
|
|
4512
|
+
"border-b border-[var(--theme-background)] px-2.5 py-2.5",
|
|
4513
4513
|
"align-middle text-[12px] font-normal leading-[1.3] text-[var(--theme-text)]",
|
|
4514
4514
|
getAlignClassName(align)
|
|
4515
4515
|
].join(" "),
|
|
@@ -4622,7 +4622,7 @@ function TableBase({
|
|
|
4622
4622
|
role: "listitem",
|
|
4623
4623
|
className: [
|
|
4624
4624
|
"flex min-w-0 flex-col gap-2.5 rounded-[20px]",
|
|
4625
|
-
"border-
|
|
4625
|
+
"border-[3px] border-solid border-[var(--theme-background)] bg-[var(--theme-surface)]",
|
|
4626
4626
|
"px-3.5 pb-1.5 pt-3 shadow-none"
|
|
4627
4627
|
].join(" "),
|
|
4628
4628
|
children: [
|
|
@@ -4795,7 +4795,7 @@ function TableBase({
|
|
|
4795
4795
|
"td",
|
|
4796
4796
|
{
|
|
4797
4797
|
className: [
|
|
4798
|
-
"border-b border-[var(--theme-background)] px-2.5 py-
|
|
4798
|
+
"border-b border-[var(--theme-background)] px-2.5 py-2.5 text-right align-middle"
|
|
4799
4799
|
].join(" "),
|
|
4800
4800
|
style: {
|
|
4801
4801
|
...actionsColumnSizeStyle,
|
|
@@ -4816,7 +4816,7 @@ function TableBase({
|
|
|
4816
4816
|
}
|
|
4817
4817
|
)
|
|
4818
4818
|
] }) : null,
|
|
4819
|
-
hasRows && shouldRenderFooter ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-3
|
|
4819
|
+
hasRows && shouldRenderFooter ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
4820
4820
|
shouldShowPaginationControls ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
4821
4821
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4822
4822
|
Button,
|