@vygruppen/spor-react 12.4.7 → 12.4.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/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +33 -22
- package/dist/index.d.ts +33 -22
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/accordion/Accordion.tsx +12 -5
- package/src/accordion/types.ts +1 -0
- package/src/input/SearchInput.tsx +1 -1
- package/src/logo/VyLogo.tsx +3 -3
- package/src/logo/VyLogoPride.tsx +2 -3
- package/src/table/Table.tsx +10 -22
- package/src/table/index.tsx +1 -0
- package/src/theme/recipes/input.ts +1 -0
- package/src/theme/slot-recipes/table.ts +31 -22
package/dist/index.js
CHANGED
@@ -93,7 +93,13 @@ var Accordion = React28.forwardRef(
|
|
93
93
|
}
|
94
94
|
);
|
95
95
|
var AccordionItemTrigger = React28.forwardRef(function AccordionItemTrigger2(props, ref) {
|
96
|
-
const {
|
96
|
+
const {
|
97
|
+
startElement,
|
98
|
+
children,
|
99
|
+
headingLevel,
|
100
|
+
showChevron = true,
|
101
|
+
...rest
|
102
|
+
} = props;
|
97
103
|
warnAboutMismatchingIcon({ icon: startElement });
|
98
104
|
const recipe = react.useSlotRecipe({ key: "accordion" });
|
99
105
|
const styles = recipe();
|
@@ -102,7 +108,7 @@ var AccordionItemTrigger = React28.forwardRef(function AccordionItemTrigger2(pro
|
|
102
108
|
startElement && startElement,
|
103
109
|
children
|
104
110
|
] }),
|
105
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.DropdownDownFill24Icon, {}) })
|
111
|
+
showChevron && /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.DropdownDownFill24Icon, {}) })
|
106
112
|
] }) });
|
107
113
|
});
|
108
114
|
var AccordionItemContent = React28.forwardRef(function AccordionItemContent2(props, ref) {
|
@@ -3346,6 +3352,7 @@ var inputRecipe = react.defineRecipe({
|
|
3346
3352
|
borderRadius: "sm",
|
3347
3353
|
transitionProperty: "common",
|
3348
3354
|
transitionDuration: "fast",
|
3355
|
+
color: "text",
|
3349
3356
|
position: "relative",
|
3350
3357
|
paddingX: 3,
|
3351
3358
|
paddingTop: 3,
|
@@ -4173,7 +4180,7 @@ var SearchInput = React28.forwardRef(
|
|
4173
4180
|
type: "search",
|
4174
4181
|
variant,
|
4175
4182
|
...props,
|
4176
|
-
startElement: /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.SearchOutline24Icon, {}),
|
4183
|
+
startElement: /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.SearchOutline24Icon, { color: "icon" }),
|
4177
4184
|
endElement: clearButton && /* @__PURE__ */ jsxRuntime.jsx(
|
4178
4185
|
IconButton,
|
4179
4186
|
{
|
@@ -6238,15 +6245,11 @@ var tableSlotRecipe = react.defineSlotRecipe({
|
|
6238
6245
|
columnHeader: {
|
6239
6246
|
fontWeight: "bold",
|
6240
6247
|
textAlign: "start",
|
6241
|
-
borderBottom: "sm",
|
6242
|
-
borderColor: "outline.disabled",
|
6243
6248
|
...numericStyles,
|
6244
6249
|
paddingX: 1.5,
|
6245
6250
|
paddingY: 1
|
6246
6251
|
},
|
6247
6252
|
row: {
|
6248
|
-
borderBottom: "sm",
|
6249
|
-
borderColor: "outline.disabled",
|
6250
6253
|
...numericStyles
|
6251
6254
|
},
|
6252
6255
|
cell: {
|
@@ -6300,48 +6303,53 @@ var tableSlotRecipe = react.defineSlotRecipe({
|
|
6300
6303
|
backgroundColor: "none"
|
6301
6304
|
},
|
6302
6305
|
columnHeader: {
|
6303
|
-
borderLeft: "none",
|
6304
6306
|
borderBottom: "sm",
|
6305
6307
|
borderColor: "outline.disabled",
|
6306
6308
|
backgroundColor: "none",
|
6307
6309
|
color: "text"
|
6308
6310
|
},
|
6309
6311
|
cell: {
|
6312
|
+
...numericStyles
|
6313
|
+
},
|
6314
|
+
row: {
|
6310
6315
|
borderBottom: "sm",
|
6311
6316
|
borderColor: "outline.disabled",
|
6312
|
-
...numericStyles
|
6313
|
-
_first: {
|
6314
|
-
borderLeft: "none"
|
6315
|
-
}
|
6317
|
+
...numericStyles
|
6316
6318
|
}
|
6317
6319
|
},
|
6318
6320
|
core: {
|
6321
|
+
root: {
|
6322
|
+
boxShadow: "0 0 0 1px var(--shadow-color)",
|
6323
|
+
shadowColor: "outline.disabled",
|
6324
|
+
borderRadius: "sm"
|
6325
|
+
},
|
6319
6326
|
table: {
|
6320
|
-
|
6321
|
-
overflow: "hidden",
|
6322
|
-
border: "sm",
|
6323
|
-
borderColor: "outline.disabled"
|
6327
|
+
overflow: "hidden"
|
6324
6328
|
},
|
6325
6329
|
cell: {
|
6326
|
-
borderLeft: "sm",
|
6327
|
-
borderColor: "outline.disabled",
|
6328
6330
|
...numericStyles,
|
6329
|
-
|
6330
|
-
|
6331
|
+
borderRight: "sm",
|
6332
|
+
borderColor: "outline.disabled",
|
6333
|
+
_last: {
|
6334
|
+
borderRight: "none"
|
6331
6335
|
}
|
6332
6336
|
},
|
6333
|
-
header: {
|
6334
|
-
border: "none"
|
6335
|
-
},
|
6336
6337
|
columnHeader: {
|
6337
|
-
borderBottom: "sm",
|
6338
|
-
borderLeft: "sm",
|
6339
|
-
borderLeftColor: "outline.disabled",
|
6340
6338
|
...numericStyles,
|
6339
|
+
borderRight: "sm",
|
6340
|
+
borderColor: "outline.disabled",
|
6341
6341
|
_first: {
|
6342
|
-
|
6342
|
+
borderTopLeftRadius: "sm"
|
6343
|
+
},
|
6344
|
+
_last: {
|
6345
|
+
borderTopRightRadius: "sm",
|
6346
|
+
borderRight: "none"
|
6343
6347
|
}
|
6344
6348
|
},
|
6349
|
+
header: {
|
6350
|
+
borderBottom: "sm",
|
6351
|
+
borderColor: "outline.disabled"
|
6352
|
+
},
|
6345
6353
|
row: {
|
6346
6354
|
...numericStyles,
|
6347
6355
|
borderBottom: "sm",
|
@@ -6417,7 +6425,7 @@ var Table = React28.forwardRef((props, ref) => {
|
|
6417
6425
|
const { variant = "ghost", size, colorPalette = "green", children } = props;
|
6418
6426
|
const recipe = react.useSlotRecipe({ recipe: tableSlotRecipe });
|
6419
6427
|
const styles = recipe({ variant, size });
|
6420
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
6428
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
6421
6429
|
react.Table.Root,
|
6422
6430
|
{
|
6423
6431
|
variant,
|
@@ -6425,18 +6433,12 @@ var Table = React28.forwardRef((props, ref) => {
|
|
6425
6433
|
colorPalette,
|
6426
6434
|
css: styles,
|
6427
6435
|
ref,
|
6436
|
+
...props,
|
6428
6437
|
children
|
6429
6438
|
}
|
6430
|
-
)
|
6439
|
+
);
|
6431
6440
|
});
|
6432
6441
|
Table.displayName = "Table";
|
6433
|
-
function getStyleProps(props) {
|
6434
|
-
return props.variant === "core" ? {
|
6435
|
-
borderRadius: "sm",
|
6436
|
-
border: "sm",
|
6437
|
-
borderColor: "outline.disabled"
|
6438
|
-
} : {};
|
6439
|
-
}
|
6440
6442
|
var buttonRecipe = react.defineRecipe({
|
6441
6443
|
className: "spor-button",
|
6442
6444
|
base: {
|
@@ -10642,6 +10644,10 @@ Object.defineProperty(exports, "TableColumn", {
|
|
10642
10644
|
enumerable: true,
|
10643
10645
|
get: function () { return react.TableColumn; }
|
10644
10646
|
});
|
10647
|
+
Object.defineProperty(exports, "TableColumnGroup", {
|
10648
|
+
enumerable: true,
|
10649
|
+
get: function () { return react.TableColumnGroup; }
|
10650
|
+
});
|
10645
10651
|
Object.defineProperty(exports, "TableColumnHeader", {
|
10646
10652
|
enumerable: true,
|
10647
10653
|
get: function () { return react.TableColumnHeader; }
|