@sps-woodland/content-row 8.10.3 → 8.11.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/lib/content-row/ContentRow.css.d.ts +51 -0
- package/lib/content-row/ContentRow.d.ts +6 -1
- package/lib/index.cjs.js +10 -10
- package/lib/index.es.js +166 -110
- package/lib/style.css +1 -1
- package/package.json +13 -11
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const expandedVar: any;
|
2
2
|
export declare const expandedBorderRadiusVar: any;
|
3
3
|
export declare const selectedBordersVar: any;
|
4
|
+
export declare const reorderableButtonIcon: any;
|
4
5
|
export declare const contentRow: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
5
6
|
expanded: {
|
6
7
|
true: {
|
@@ -39,6 +40,12 @@ export declare const contentRowColGroup: import("@vanilla-extract/recipes/dist/d
|
|
39
40
|
};
|
40
41
|
false: {};
|
41
42
|
};
|
43
|
+
reorderable: {
|
44
|
+
true: {
|
45
|
+
minHeight: string;
|
46
|
+
};
|
47
|
+
false: {};
|
48
|
+
};
|
42
49
|
}>;
|
43
50
|
export declare const contentTableRow: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
44
51
|
selected: {
|
@@ -96,3 +103,47 @@ export declare const contentRowExpansion: import("@vanilla-extract/recipes/dist/
|
|
96
103
|
};
|
97
104
|
}>;
|
98
105
|
export declare const section: string;
|
106
|
+
export declare const reorderableLayout: string;
|
107
|
+
export declare const reorderableSection: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
108
|
+
reorderable: {
|
109
|
+
true: {
|
110
|
+
minHeight: string;
|
111
|
+
width: string;
|
112
|
+
height: "50%";
|
113
|
+
display: "flex";
|
114
|
+
};
|
115
|
+
false: {
|
116
|
+
padding: string;
|
117
|
+
};
|
118
|
+
};
|
119
|
+
}>;
|
120
|
+
export declare const indexContainerWrapper: string;
|
121
|
+
export declare const indexContainer: string;
|
122
|
+
export declare const indexContainerElement: string;
|
123
|
+
export declare const reorderableButton: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
124
|
+
disabled: {
|
125
|
+
true: {
|
126
|
+
border: "none";
|
127
|
+
vars: {
|
128
|
+
[x: number]: string;
|
129
|
+
};
|
130
|
+
};
|
131
|
+
false: {
|
132
|
+
vars: {
|
133
|
+
[x: number]: string;
|
134
|
+
};
|
135
|
+
};
|
136
|
+
};
|
137
|
+
up: {
|
138
|
+
true: {
|
139
|
+
borderTopLeftRadius: string;
|
140
|
+
};
|
141
|
+
false: {};
|
142
|
+
};
|
143
|
+
down: {
|
144
|
+
true: {
|
145
|
+
borderBottomLeftRadius: string;
|
146
|
+
};
|
147
|
+
false: {};
|
148
|
+
};
|
149
|
+
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import type { ComponentProps } from "@sps-woodland/core";
|
3
|
-
export declare function ContentRow({ children, className, alternateLayout, initiallyExpanded, cardSpacing, expanded, onBeforeCollapsed, onBeforeExpanded, onSelectionChange, onCollapsed, onExpanded, selectable, selected, renderExpandedContent, disableSelection, disableExpansion, __autoLayout, ...rest }: ComponentProps<{
|
3
|
+
export declare function ContentRow({ children, className, alternateLayout, initiallyExpanded, cardSpacing, expanded, onBeforeCollapsed, onBeforeExpanded, onSelectionChange, onCollapsed, onExpanded, selectable, selected, renderExpandedContent, disableSelection, disableExpansion, __autoLayout, __reorderable, __onOrderChange, __index, __canBeMovedUp, __canBeMovedDown, ...rest }: ComponentProps<{
|
4
4
|
alternateLayout?: boolean;
|
5
5
|
initiallyExpanded?: boolean;
|
6
6
|
cardSpacing?: boolean;
|
@@ -16,4 +16,9 @@ export declare function ContentRow({ children, className, alternateLayout, initi
|
|
16
16
|
disableSelection?: boolean;
|
17
17
|
disableExpansion?: boolean;
|
18
18
|
__autoLayout?: boolean;
|
19
|
+
__reorderable?: boolean;
|
20
|
+
__onOrderChange?: (currentIndex: number, newIndex: number) => void;
|
21
|
+
__index?: number;
|
22
|
+
__canBeMovedUp?: boolean;
|
23
|
+
__canBeMovedDown?: boolean;
|
19
24
|
}, HTMLDivElement>): React.ReactElement;
|
package/lib/index.cjs.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("react"),r=require("@sps-woodland/core"),B=require("@sps-woodland/buttons"),K=require("@spscommerce/ds-react"),j=require("@spscommerce/ds-shared"),p=require("@spscommerce/utils");function ae(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(a,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return a.default=t,Object.freeze(a)}const e=ae(ne);function re(t,a,o){return a in t?Object.defineProperty(t,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[a]=o,t}function G(t,a){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),o.push.apply(o,n)}return o}function J(t){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?G(Object(o),!0).forEach(function(n){re(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):G(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var se=(t,a,o)=>{for(var n of Object.keys(t)){var s;if(t[n]!==((s=a[n])!==null&&s!==void 0?s:o[n]))return!1}return!0},u=t=>a=>{var o=t.defaultClassName,n=J(J({},t.defaultVariants),a);for(var s in n){var i,m=(i=n[s])!==null&&i!==void 0?i:t.defaultVariants[s];if(m!=null){var l=m;typeof l=="boolean"&&(l=l===!0?"true":"false");var y=t.variantClassNames[s][l];y&&(o+=" "+y)}}for(var[C,f]of t.compoundVariants)se(C,n,t.defaultVariants)&&(o+=" "+f);return o},le=u({defaultClassName:"_1mxrufv0",variantClassNames:{lean:{true:"_1mxrufv1",false:"_1mxrufv2"},borderless:{true:"_1mxrufv3",false:"_1mxrufv4"},wrapContent:{true:"_1mxrufv5",false:"_1mxrufv6"}},defaultVariants:{lean:!1,borderless:!1,wrapContent:!1},compoundVariants:[]}),ie=u({defaultClassName:"_1mxrufv7",variantClassNames:{lean:{true:"_1mxrufv8",false:"_1mxrufv9"},borderless:{true:"_1mxrufva",false:"_1mxrufvb"},wrapContent:{true:"_1mxrufvc",false:"_1mxrufvd"}},defaultVariants:{lean:!1,borderless:!1,wrapContent:!1},compoundVariants:[]});function c({children:t,className:a,borderless:o,lean:n,widthPx:s,widthRem:i,style:m,wrapContent:l=!1,__autoLayout:y=!1,...C}){const f=s?s/16:i,w=f?{...m,width:`${f}rem`}:m;return y?e.createElement("td",{className:r.cl(ie({lean:n,borderless:o,wrapContent:l}),a),...C,style:w},t):e.createElement("div",{className:r.cl(le({lean:n,borderless:o,wrapContent:l}),a),...C,style:w},t)}r.Metadata.set(c,{name:"Content Row Col",props:{borderless:{type:"boolean"},lean:{type:"boolean"},widthPx:{type:"number"},widthRem:{type:"number"},wrapContent:{type:"boolean"}}});var de=u({defaultClassName:"_11ztjee4",variantClassNames:{expanded:{true:"_11ztjee5",false:"_11ztjee6"}},defaultVariants:{expanded:!1},compoundVariants:[]}),ce=u({defaultClassName:"_11ztjee7",variantClassNames:{cardSpacing:{true:"_11ztjee8",false:"_11ztjee9"},expanded:{true:"_11ztjeea",false:"_11ztjeeb"},selected:{true:"_11ztjeec",false:"_11ztjeed"},reorderable:{true:"_11ztjeee",false:"_11ztjeef"}},defaultVariants:{expanded:!1,selected:!1,cardSpacing:!1},compoundVariants:[[{expanded:!0,cardSpacing:!0},"_11ztjeeg"]]}),U=u({defaultClassName:"_11ztjeer",variantClassNames:{__autoLayout:{true:"_11ztjees",false:"_11ztjeet"}},defaultVariants:{__autoLayout:!1},compoundVariants:[]}),me=u({defaultClassName:"_11ztjeeh",variantClassNames:{selected:{true:"_11ztjeei",false:"_11ztjeej"},expanded:{true:"_11ztjeek",false:"_11ztjeel"}},defaultVariants:{selected:!1,expanded:!1},compoundVariants:[]}),ue="_11ztjeem",pe="_11ztjeen",Ce=u({defaultClassName:"_11ztjeeo",variantClassNames:{disabled:{true:"_11ztjeep",false:"_11ztjeeq"}},defaultVariants:{},compoundVariants:[]}),fe="_11ztjee10",we="_11ztjee11",be="_11ztjeez",Q=u({defaultClassName:"_11ztjee12",variantClassNames:{disabled:{true:"_11ztjee13",false:"_11ztjee14"},up:{true:"_11ztjee15",false:"_11ztjee16"},down:{true:"_11ztjee17",false:"_11ztjee18"}},defaultVariants:{disabled:!1,up:!1,down:!1},compoundVariants:[]}),Re="_11ztjeev",X=u({defaultClassName:"_11ztjeew",variantClassNames:{reorderable:{true:"_11ztjeex",false:"_11ztjeey"}},defaultVariants:{reorderable:!1},compoundVariants:[]}),k="_11ztjeeu";function z({children:t,className:a,__autoLayout:o=!1,...n}){return o?e.createElement("tr",null,e.createElement("td",{className:r.cl(U({__autoLayout:o}),a),colSpan:100,...n},t)):e.createElement("div",{className:r.cl(U({__autoLayout:o}),a),...n},t)}r.Metadata.set(z,{name:"Content Row Expansion"});function I({children:t,className:a,alternateLayout:o=!1,initiallyExpanded:n=!1,cardSpacing:s=!1,expanded:i,onBeforeCollapsed:m,onBeforeExpanded:l,onSelectionChange:y,onCollapsed:C,onExpanded:f,selectable:w=!1,selected:V,renderExpandedContent:g=!0,disableSelection:Z=!1,disableExpansion:F=!1,__autoLayout:S=!1,__reorderable:x=!1,__onOrderChange:h=()=>{},__index:d=0,__canBeMovedUp:O,__canBeMovedDown:H,..._}){const[A,[E]]=r.selectChildren(t,[{type:c},{type:z}]),{t:$}=e.useContext(r.I18nContext),[D,T]=e.useState(!S&&g?g:n),[ee,L]=e.useState(n),b=typeof i=="boolean"?i:ee,[P,M]=e.useState((d+1).toString()||"");e.useEffect(()=>{M((d+1).toString()||"")},[d]);function te(R){M(R.target.value)}function W(){Number(P)?h(d,Number(P)-1):(M((d+1).toString()||""),h(d,d))}function oe(R){R.stopPropagation(),b&&(!m||m())?(L(!1),(!g||S)&&T(!1),C&&C()):!b&&(!l||l())&&(L(!0),(!g||S)&&T(!0),f&&f())}const N=()=>e.createElement(K.SpsCheckbox,{disabled:Z,checked:V,onChange:y}),v=e.createElement("button",{type:"button",className:r.cl(pe),onClick:oe,"aria-label":$(`design-system:contentRow.${b?"collapse":"expand"}`),disabled:F},e.createElement(r.Icon,{className:r.cl(Ce({disabled:F})),icon:b?"minus-circle":"plus-circle"}));if(S){const R=e.createElement("tr",null,e.createElement("td",{className:r.cl(ue),colSpan:100}));return e.createElement(e.Fragment,null,e.createElement("tr",{className:r.cl(me({selected:V,expanded:b})),..._},w&&!o&&e.createElement(c,{widthPx:46,__autoLayout:!0},e.createElement(N,null)),E&&!o&&e.createElement(c,{widthPx:44,__autoLayout:!0},v),E&&w&&o&&e.createElement(c,{widthPx:46,__autoLayout:!0},e.createElement("section",{className:k},e.createElement(N,null)),e.createElement("section",{className:k},v)),A),D&&E,R)}const q=e.createElement("div",{className:r.cl(de({expanded:b}),a),..._},e.createElement("div",{className:r.cl(ce({expanded:b,selected:V,cardSpacing:s,reorderable:x}))},x&&e.createElement(c,{widthPx:53,style:{position:"relative"}},e.createElement("section",{className:X({reorderable:x})},e.createElement(B.Button,{className:Q({up:!0,disabled:!O}),kind:j.ButtonKind.ICON,icon:j.SpsIcon.CHEVRON_UP,onClick:()=>h(d,d-1),disabled:!O})),e.createElement("section",{className:X({reorderable:x})},e.createElement(B.Button,{className:Q({down:!0,disabled:!H}),kind:j.ButtonKind.ICON,icon:j.SpsIcon.CHEVRON_DOWN,onClick:()=>h(d,d+1),disabled:!H}))),w&&!o&&e.createElement(c,{widthPx:46},e.createElement(N,null)),E&&!o&&e.createElement(c,{widthPx:44},v),E&&w&&o&&e.createElement(c,{widthPx:46},e.createElement("section",{className:k},e.createElement(N,null)),e.createElement("section",{className:k},v)),A),D&&E);return x?e.createElement("div",{className:Re},x&&e.createElement("div",{className:r.cl(be,a)},e.createElement("div",{className:fe},e.createElement(K.SpsTextInput,{className:we,value:P,onChange:te,onBlur:()=>W(),onKeyUp:R=>{R.key==="Enter"&&W()},notClearable:!0}))),q):q}r.Metadata.set(I,{name:"Content Row",props:{alternateLayout:{type:"boolean",default:"false"},initiallyExpanded:{type:"boolean",default:"false"},cardSpacing:{type:"boolean",default:"false"},expanded:{type:"boolean"},onBeforeCollapsed:{type:"() => boolean"},onBeforeExpanded:{type:"() => boolean"},onSelectionChange:{type:"ChangeEventHandler"},onCollapsed:{type:"() => void"},onExpanded:{type:"() => void"},selectable:{type:"boolean",default:"false"},selected:{type:"boolean"},renderExpandedContent:{type:"boolean",default:"true"},disableSelection:{type:"boolean",default:"false"},disableExpansion:{type:"boolean",default:"false"}}});var ye=u({defaultClassName:"_1wuky9j0",variantClassNames:{wrapContent:{true:"_1wuky9j1",false:"_1wuky9j2"}},defaultVariants:{wrapContent:!1},compoundVariants:[]});const xe=new Set(["Content Row","Content Row Col","Content Row Expansion","Sorting Header","Sorting Header Cell"]);function Y({children:t,className:a,wrapContent:o=!1,...n}){const s=e.useMemo(()=>r.modChildren(t,l=>r.Metadata.isWoodlandComponent(l.type)&&xe.has(r.Metadata.get(l.type).name)?[{__autoLayout:!0}]:[{}]),[t]),[[i],m]=e.useMemo(()=>r.selectChildren(s,[{type:l=>!!(r.Metadata.isWoodlandComponent(l.type)&&r.Metadata.get(l.type).name==="Sorting Header")}]),[s]);return e.createElement("table",{className:r.cl(ye({wrapContent:o}),a),...n},i?e.createElement("thead",null,i):null,e.createElement("tbody",null,m))}r.Metadata.set(Y,{name:"Row List Auto Layout",props:{wrapContent:{type:"boolean",default:"false"}}});const Ee={components:[I,c,z],examples:{basic:{label:"Content Rows",examples:{basic:{react:p.code`
|
2
2
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-row";
|
3
3
|
import { Icon } from "@sps-woodland/core";
|
4
4
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -16,7 +16,7 @@
|
|
16
16
|
</ContentRow>
|
17
17
|
)
|
18
18
|
}
|
19
|
-
`},withCheckbox:{react:
|
19
|
+
`},withCheckbox:{react:p.code`
|
20
20
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-row";
|
21
21
|
import { Icon } from "@sps-woodland/core";
|
22
22
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -46,7 +46,7 @@
|
|
46
46
|
</ContentRow>
|
47
47
|
)
|
48
48
|
}
|
49
|
-
`},withCheckboxAndFavorite:{react:
|
49
|
+
`},withCheckboxAndFavorite:{react:p.code`
|
50
50
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-row";
|
51
51
|
import { Icon } from "@sps-woodland/core";
|
52
52
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -79,7 +79,7 @@
|
|
79
79
|
</ContentRow>
|
80
80
|
)
|
81
81
|
}
|
82
|
-
`}}},expandable:{label:"Expandable Content Rows",examples:{basic:{react:
|
82
|
+
`}}},expandable:{label:"Expandable Content Rows",examples:{basic:{react:p.code`
|
83
83
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
84
84
|
import { Card } from "@sps-woodland/cards";
|
85
85
|
import { Icon } from "@sps-woodland/core";
|
@@ -111,7 +111,7 @@
|
|
111
111
|
</ContentRow>
|
112
112
|
)
|
113
113
|
}
|
114
|
-
`},expandableWithCheckbox:{react:
|
114
|
+
`},expandableWithCheckbox:{react:p.code`
|
115
115
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
116
116
|
import { Card } from "@sps-woodland/cards";
|
117
117
|
import { Icon } from "@sps-woodland/core";
|
@@ -155,7 +155,7 @@
|
|
155
155
|
</ContentRow>
|
156
156
|
)
|
157
157
|
}
|
158
|
-
`},expandableWithCheckboxAlternate:{react:
|
158
|
+
`},expandableWithCheckboxAlternate:{react:p.code`
|
159
159
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
160
160
|
import { Card } from "@sps-woodland/cards";
|
161
161
|
import { Icon } from "@sps-woodland/core";
|
@@ -200,7 +200,7 @@
|
|
200
200
|
</ContentRow>
|
201
201
|
)
|
202
202
|
}
|
203
|
-
`},expandableWithCheckboxAndFavorite:{react:
|
203
|
+
`},expandableWithCheckboxAndFavorite:{react:p.code`
|
204
204
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
205
205
|
import { Card } from "@sps-woodland/cards";
|
206
206
|
import { Icon } from "@sps-woodland/core";
|
@@ -247,7 +247,7 @@
|
|
247
247
|
</ContentRow>
|
248
248
|
)
|
249
249
|
}
|
250
|
-
`},expandableWithCheckboxAndFavoriteAlternate:{react:
|
250
|
+
`},expandableWithCheckboxAndFavoriteAlternate:{react:p.code`
|
251
251
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
252
252
|
import { Card } from "@sps-woodland/cards";
|
253
253
|
import { Icon } from "@sps-woodland/core";
|
@@ -295,7 +295,7 @@
|
|
295
295
|
</ContentRow>
|
296
296
|
)
|
297
297
|
}
|
298
|
-
`}}},sortable:{label:"Sortable Content Rows",examples:{basic:{react:
|
298
|
+
`}}},sortable:{label:"Sortable Content Rows",examples:{basic:{react:p.code`
|
299
299
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
300
300
|
import { Card } from "@sps-woodland/cards";
|
301
301
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sorting-header";
|
@@ -398,4 +398,4 @@
|
|
398
398
|
</>
|
399
399
|
)
|
400
400
|
}
|
401
|
-
`}}}}},
|
401
|
+
`}}}}},ge={"Content Rows":Ee};exports.ContentRow=I;exports.ContentRowCol=c;exports.ContentRowExpansion=z;exports.MANIFEST=ge;exports.RowListAutoLayout=Y;
|
package/lib/index.es.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as e from "react";
|
2
|
-
import { Metadata as
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
|
2
|
+
import { Metadata as C, cl as l, selectChildren as Y, I18nContext as ae, Icon as re, modChildren as se } from "@sps-woodland/core";
|
3
|
+
import { Button as K } from "@sps-woodland/buttons";
|
4
|
+
import { SpsTextInput as le, SpsCheckbox as ie } from "@spscommerce/ds-react";
|
5
|
+
import { ButtonKind as B, SpsIcon as G } from "@spscommerce/ds-shared";
|
6
|
+
import { code as u } from "@spscommerce/utils";
|
7
|
+
function de(t, a, o) {
|
6
8
|
return a in t ? Object.defineProperty(t, a, {
|
7
9
|
value: o,
|
8
10
|
enumerable: !0,
|
@@ -10,7 +12,7 @@ function J(t, a, o) {
|
|
10
12
|
writable: !0
|
11
13
|
}) : t[a] = o, t;
|
12
14
|
}
|
13
|
-
function
|
15
|
+
function q(t, a) {
|
14
16
|
var o = Object.keys(t);
|
15
17
|
if (Object.getOwnPropertySymbols) {
|
16
18
|
var n = Object.getOwnPropertySymbols(t);
|
@@ -20,77 +22,77 @@ function I(t, a) {
|
|
20
22
|
}
|
21
23
|
return o;
|
22
24
|
}
|
23
|
-
function
|
25
|
+
function J(t) {
|
24
26
|
for (var a = 1; a < arguments.length; a++) {
|
25
27
|
var o = arguments[a] != null ? arguments[a] : {};
|
26
|
-
a % 2 ?
|
27
|
-
|
28
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) :
|
28
|
+
a % 2 ? q(Object(o), !0).forEach(function(n) {
|
29
|
+
de(t, n, o[n]);
|
30
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : q(Object(o)).forEach(function(n) {
|
29
31
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(o, n));
|
30
32
|
});
|
31
33
|
}
|
32
34
|
return t;
|
33
35
|
}
|
34
|
-
var
|
36
|
+
var ce = (t, a, o) => {
|
35
37
|
for (var n of Object.keys(t)) {
|
36
38
|
var r;
|
37
39
|
if (t[n] !== ((r = a[n]) !== null && r !== void 0 ? r : o[n]))
|
38
40
|
return !1;
|
39
41
|
}
|
40
42
|
return !0;
|
41
|
-
},
|
42
|
-
var o = t.defaultClassName, n =
|
43
|
+
}, p = (t) => (a) => {
|
44
|
+
var o = t.defaultClassName, n = J(J({}, t.defaultVariants), a);
|
43
45
|
for (var r in n) {
|
44
|
-
var
|
45
|
-
if (
|
46
|
-
var s =
|
46
|
+
var i, c = (i = n[r]) !== null && i !== void 0 ? i : t.defaultVariants[r];
|
47
|
+
if (c != null) {
|
48
|
+
var s = c;
|
47
49
|
typeof s == "boolean" && (s = s === !0 ? "true" : "false");
|
48
|
-
var
|
50
|
+
var x = (
|
49
51
|
// @ts-expect-error
|
50
52
|
t.variantClassNames[r][s]
|
51
53
|
);
|
52
|
-
|
54
|
+
x && (o += " " + x);
|
53
55
|
}
|
54
56
|
}
|
55
|
-
for (var [
|
56
|
-
|
57
|
+
for (var [f, w] of t.compoundVariants)
|
58
|
+
ce(f, n, t.defaultVariants) && (o += " " + w);
|
57
59
|
return o;
|
58
|
-
},
|
60
|
+
}, me = p({ defaultClassName: "_1mxrufv0", variantClassNames: { lean: { true: "_1mxrufv1", false: "_1mxrufv2" }, borderless: { true: "_1mxrufv3", false: "_1mxrufv4" }, wrapContent: { true: "_1mxrufv5", false: "_1mxrufv6" } }, defaultVariants: { lean: !1, borderless: !1, wrapContent: !1 }, compoundVariants: [] }), pe = p({ defaultClassName: "_1mxrufv7", variantClassNames: { lean: { true: "_1mxrufv8", false: "_1mxrufv9" }, borderless: { true: "_1mxrufva", false: "_1mxrufvb" }, wrapContent: { true: "_1mxrufvc", false: "_1mxrufvd" } }, defaultVariants: { lean: !1, borderless: !1, wrapContent: !1 }, compoundVariants: [] });
|
59
61
|
function m({
|
60
62
|
children: t,
|
61
63
|
className: a,
|
62
64
|
borderless: o,
|
63
65
|
lean: n,
|
64
66
|
widthPx: r,
|
65
|
-
widthRem:
|
66
|
-
style:
|
67
|
+
widthRem: i,
|
68
|
+
style: c,
|
67
69
|
wrapContent: s = !1,
|
68
|
-
__autoLayout:
|
69
|
-
...
|
70
|
+
__autoLayout: x = !1,
|
71
|
+
...f
|
70
72
|
}) {
|
71
|
-
const
|
72
|
-
...
|
73
|
-
width: `${
|
74
|
-
} :
|
75
|
-
return
|
73
|
+
const w = r ? r / 16 : i, b = w ? {
|
74
|
+
...c,
|
75
|
+
width: `${w}rem`
|
76
|
+
} : c;
|
77
|
+
return x ? /* @__PURE__ */ e.createElement(
|
76
78
|
"td",
|
77
79
|
{
|
78
|
-
className:
|
79
|
-
...
|
80
|
-
style:
|
80
|
+
className: l(pe({ lean: n, borderless: o, wrapContent: s }), a),
|
81
|
+
...f,
|
82
|
+
style: b
|
81
83
|
},
|
82
84
|
t
|
83
85
|
) : /* @__PURE__ */ e.createElement(
|
84
86
|
"div",
|
85
87
|
{
|
86
|
-
className:
|
87
|
-
...
|
88
|
-
style:
|
88
|
+
className: l(me({ lean: n, borderless: o, wrapContent: s }), a),
|
89
|
+
...f,
|
90
|
+
style: b
|
89
91
|
},
|
90
92
|
t
|
91
93
|
);
|
92
94
|
}
|
93
|
-
|
95
|
+
C.set(m, {
|
94
96
|
name: "Content Row Col",
|
95
97
|
props: {
|
96
98
|
borderless: { type: "boolean" },
|
@@ -100,8 +102,8 @@ p.set(m, {
|
|
100
102
|
wrapContent: { type: "boolean" }
|
101
103
|
}
|
102
104
|
});
|
103
|
-
var
|
104
|
-
function
|
105
|
+
var ue = p({ defaultClassName: "_11ztjee4", variantClassNames: { expanded: { true: "_11ztjee5", false: "_11ztjee6" } }, defaultVariants: { expanded: !1 }, compoundVariants: [] }), Ce = p({ defaultClassName: "_11ztjee7", variantClassNames: { cardSpacing: { true: "_11ztjee8", false: "_11ztjee9" }, expanded: { true: "_11ztjeea", false: "_11ztjeeb" }, selected: { true: "_11ztjeec", false: "_11ztjeed" }, reorderable: { true: "_11ztjeee", false: "_11ztjeef" } }, defaultVariants: { expanded: !1, selected: !1, cardSpacing: !1 }, compoundVariants: [[{ expanded: !0, cardSpacing: !0 }, "_11ztjeeg"]] }), U = p({ defaultClassName: "_11ztjeer", variantClassNames: { __autoLayout: { true: "_11ztjees", false: "_11ztjeet" } }, defaultVariants: { __autoLayout: !1 }, compoundVariants: [] }), fe = p({ defaultClassName: "_11ztjeeh", variantClassNames: { selected: { true: "_11ztjeei", false: "_11ztjeej" }, expanded: { true: "_11ztjeek", false: "_11ztjeel" } }, defaultVariants: { selected: !1, expanded: !1 }, compoundVariants: [] }), we = "_11ztjeem", be = "_11ztjeen", Re = p({ defaultClassName: "_11ztjeeo", variantClassNames: { disabled: { true: "_11ztjeep", false: "_11ztjeeq" } }, defaultVariants: {}, compoundVariants: [] }), ye = "_11ztjee10", xe = "_11ztjee11", Ee = "_11ztjeez", Q = p({ defaultClassName: "_11ztjee12", variantClassNames: { disabled: { true: "_11ztjee13", false: "_11ztjee14" }, up: { true: "_11ztjee15", false: "_11ztjee16" }, down: { true: "_11ztjee17", false: "_11ztjee18" } }, defaultVariants: { disabled: !1, up: !1, down: !1 }, compoundVariants: [] }), he = "_11ztjeev", X = p({ defaultClassName: "_11ztjeew", variantClassNames: { reorderable: { true: "_11ztjeex", false: "_11ztjeey" } }, defaultVariants: { reorderable: !1 }, compoundVariants: [] }), z = "_11ztjeeu";
|
106
|
+
function I({
|
105
107
|
children: t,
|
106
108
|
className: a,
|
107
109
|
__autoLayout: o = !1,
|
@@ -110,84 +112,138 @@ function k({
|
|
110
112
|
return o ? /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement(
|
111
113
|
"td",
|
112
114
|
{
|
113
|
-
className:
|
115
|
+
className: l(U({ __autoLayout: o }), a),
|
114
116
|
colSpan: 100,
|
115
117
|
...n
|
116
118
|
},
|
117
119
|
t
|
118
|
-
)) : /* @__PURE__ */ e.createElement("div", { className:
|
120
|
+
)) : /* @__PURE__ */ e.createElement("div", { className: l(U({ __autoLayout: o }), a), ...n }, t);
|
119
121
|
}
|
120
|
-
|
122
|
+
C.set(I, {
|
121
123
|
name: "Content Row Expansion"
|
122
124
|
});
|
123
|
-
function
|
125
|
+
function Z({
|
124
126
|
children: t,
|
125
127
|
className: a,
|
126
128
|
alternateLayout: o = !1,
|
127
129
|
initiallyExpanded: n = !1,
|
128
130
|
cardSpacing: r = !1,
|
129
|
-
expanded:
|
130
|
-
onBeforeCollapsed:
|
131
|
+
expanded: i,
|
132
|
+
onBeforeCollapsed: c,
|
131
133
|
onBeforeExpanded: s,
|
132
|
-
onSelectionChange:
|
133
|
-
onCollapsed:
|
134
|
-
onExpanded:
|
135
|
-
selectable:
|
136
|
-
selected:
|
137
|
-
renderExpandedContent:
|
138
|
-
disableSelection:
|
139
|
-
disableExpansion:
|
140
|
-
__autoLayout:
|
141
|
-
|
134
|
+
onSelectionChange: x,
|
135
|
+
onCollapsed: f,
|
136
|
+
onExpanded: w,
|
137
|
+
selectable: b = !1,
|
138
|
+
selected: j,
|
139
|
+
renderExpandedContent: g = !0,
|
140
|
+
disableSelection: $ = !1,
|
141
|
+
disableExpansion: M = !1,
|
142
|
+
__autoLayout: N = !1,
|
143
|
+
__reorderable: E = !1,
|
144
|
+
__onOrderChange: S = () => {
|
145
|
+
},
|
146
|
+
__index: d = 0,
|
147
|
+
__canBeMovedUp: F,
|
148
|
+
__canBeMovedDown: H,
|
149
|
+
...O
|
142
150
|
}) {
|
143
|
-
const [
|
151
|
+
const [_, [h]] = Y(t, [
|
144
152
|
{ type: m },
|
145
|
-
{ type:
|
146
|
-
]), { t:
|
147
|
-
!
|
148
|
-
), [
|
149
|
-
|
150
|
-
|
153
|
+
{ type: I }
|
154
|
+
]), { t: ee } = e.useContext(ae), [A, D] = e.useState(
|
155
|
+
!N && g ? g : n
|
156
|
+
), [te, T] = e.useState(n), R = typeof i == "boolean" ? i : te, [V, P] = e.useState((d + 1).toString() || "");
|
157
|
+
e.useEffect(() => {
|
158
|
+
P((d + 1).toString() || "");
|
159
|
+
}, [d]);
|
160
|
+
function oe(y) {
|
161
|
+
P(y.target.value);
|
151
162
|
}
|
152
|
-
|
163
|
+
function L() {
|
164
|
+
Number(V) ? S(d, Number(V) - 1) : (P((d + 1).toString() || ""), S(d, d));
|
165
|
+
}
|
166
|
+
function ne(y) {
|
167
|
+
y.stopPropagation(), R && (!c || c()) ? (T(!1), (!g || N) && D(!1), f && f()) : !R && (!s || s()) && (T(!0), (!g || N) && D(!0), w && w());
|
168
|
+
}
|
169
|
+
const v = () => /* @__PURE__ */ e.createElement(ie, { disabled: $, checked: j, onChange: x }), k = /* @__PURE__ */ e.createElement(
|
153
170
|
"button",
|
154
171
|
{
|
155
172
|
type: "button",
|
156
|
-
className:
|
157
|
-
onClick:
|
158
|
-
"aria-label":
|
159
|
-
disabled:
|
173
|
+
className: l(be),
|
174
|
+
onClick: ne,
|
175
|
+
"aria-label": ee(`design-system:contentRow.${R ? "collapse" : "expand"}`),
|
176
|
+
disabled: M
|
160
177
|
},
|
161
178
|
/* @__PURE__ */ e.createElement(
|
162
|
-
|
179
|
+
re,
|
163
180
|
{
|
164
|
-
className:
|
165
|
-
icon:
|
181
|
+
className: l(Re({ disabled: M })),
|
182
|
+
icon: R ? "minus-circle" : "plus-circle"
|
166
183
|
}
|
167
184
|
)
|
168
185
|
);
|
169
|
-
if (
|
170
|
-
const
|
171
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("tr", { className:
|
186
|
+
if (N) {
|
187
|
+
const y = /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", { className: l(we), colSpan: 100 }));
|
188
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("tr", { className: l(fe({ selected: j, expanded: R })), ...O }, b && !o && /* @__PURE__ */ e.createElement(m, { widthPx: 46, __autoLayout: !0 }, /* @__PURE__ */ e.createElement(v, null)), h && !o && /* @__PURE__ */ e.createElement(m, { widthPx: 44, __autoLayout: !0 }, k), h && b && o && /* @__PURE__ */ e.createElement(m, { widthPx: 46, __autoLayout: !0 }, /* @__PURE__ */ e.createElement("section", { className: z }, /* @__PURE__ */ e.createElement(v, null)), /* @__PURE__ */ e.createElement("section", { className: z }, k)), _), A && h, y);
|
172
189
|
}
|
173
|
-
|
190
|
+
const W = /* @__PURE__ */ e.createElement("div", { className: l(ue({ expanded: R }), a), ...O }, /* @__PURE__ */ e.createElement(
|
174
191
|
"div",
|
175
192
|
{
|
176
|
-
className:
|
177
|
-
|
178
|
-
expanded:
|
179
|
-
selected:
|
180
|
-
cardSpacing: r
|
193
|
+
className: l(
|
194
|
+
Ce({
|
195
|
+
expanded: R,
|
196
|
+
selected: j,
|
197
|
+
cardSpacing: r,
|
198
|
+
reorderable: E
|
181
199
|
})
|
182
200
|
)
|
183
201
|
},
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
202
|
+
E && /* @__PURE__ */ e.createElement(m, { widthPx: 53, style: { position: "relative" } }, /* @__PURE__ */ e.createElement("section", { className: X({ reorderable: E }) }, /* @__PURE__ */ e.createElement(
|
203
|
+
K,
|
204
|
+
{
|
205
|
+
className: Q({
|
206
|
+
up: !0,
|
207
|
+
disabled: !F
|
208
|
+
}),
|
209
|
+
kind: B.ICON,
|
210
|
+
icon: G.CHEVRON_UP,
|
211
|
+
onClick: () => S(d, d - 1),
|
212
|
+
disabled: !F
|
213
|
+
}
|
214
|
+
)), /* @__PURE__ */ e.createElement("section", { className: X({ reorderable: E }) }, /* @__PURE__ */ e.createElement(
|
215
|
+
K,
|
216
|
+
{
|
217
|
+
className: Q({
|
218
|
+
down: !0,
|
219
|
+
disabled: !H
|
220
|
+
}),
|
221
|
+
kind: B.ICON,
|
222
|
+
icon: G.CHEVRON_DOWN,
|
223
|
+
onClick: () => S(d, d + 1),
|
224
|
+
disabled: !H
|
225
|
+
}
|
226
|
+
))),
|
227
|
+
b && !o && /* @__PURE__ */ e.createElement(m, { widthPx: 46 }, /* @__PURE__ */ e.createElement(v, null)),
|
228
|
+
h && !o && /* @__PURE__ */ e.createElement(m, { widthPx: 44 }, k),
|
229
|
+
h && b && o && /* @__PURE__ */ e.createElement(m, { widthPx: 46 }, /* @__PURE__ */ e.createElement("section", { className: z }, /* @__PURE__ */ e.createElement(v, null)), /* @__PURE__ */ e.createElement("section", { className: z }, k)),
|
230
|
+
_
|
231
|
+
), A && h);
|
232
|
+
return E ? /* @__PURE__ */ e.createElement("div", { className: he }, E && /* @__PURE__ */ e.createElement("div", { className: l(Ee, a) }, /* @__PURE__ */ e.createElement("div", { className: ye }, /* @__PURE__ */ e.createElement(
|
233
|
+
le,
|
234
|
+
{
|
235
|
+
className: xe,
|
236
|
+
value: V,
|
237
|
+
onChange: oe,
|
238
|
+
onBlur: () => L(),
|
239
|
+
onKeyUp: (y) => {
|
240
|
+
y.key === "Enter" && L();
|
241
|
+
},
|
242
|
+
notClearable: !0
|
243
|
+
}
|
244
|
+
))), W) : W;
|
189
245
|
}
|
190
|
-
|
246
|
+
C.set(Z, {
|
191
247
|
name: "Content Row",
|
192
248
|
props: {
|
193
249
|
alternateLayout: { type: "boolean", default: "false" },
|
@@ -206,15 +262,15 @@ p.set(A, {
|
|
206
262
|
disableExpansion: { type: "boolean", default: "false" }
|
207
263
|
}
|
208
264
|
});
|
209
|
-
var
|
210
|
-
const
|
265
|
+
var ge = p({ defaultClassName: "_1wuky9j0", variantClassNames: { wrapContent: { true: "_1wuky9j1", false: "_1wuky9j2" } }, defaultVariants: { wrapContent: !1 }, compoundVariants: [] });
|
266
|
+
const Ne = /* @__PURE__ */ new Set([
|
211
267
|
"Content Row",
|
212
268
|
"Content Row Col",
|
213
269
|
"Content Row Expansion",
|
214
270
|
"Sorting Header",
|
215
271
|
"Sorting Header Cell"
|
216
272
|
]);
|
217
|
-
function
|
273
|
+
function Se({
|
218
274
|
children: t,
|
219
275
|
className: a,
|
220
276
|
wrapContent: o = !1,
|
@@ -223,40 +279,40 @@ function re({
|
|
223
279
|
const r = e.useMemo(
|
224
280
|
() => (
|
225
281
|
// eslint-disable-next-line implicit-arrow-linebreak
|
226
|
-
|
282
|
+
se(t, (s) => C.isWoodlandComponent(s.type) && Ne.has(C.get(s.type).name) ? [
|
227
283
|
{
|
228
284
|
__autoLayout: !0
|
229
285
|
}
|
230
286
|
] : [{}])
|
231
287
|
),
|
232
288
|
[t]
|
233
|
-
), [[
|
289
|
+
), [[i], c] = e.useMemo(
|
234
290
|
() => (
|
235
291
|
// eslint-disable-next-line implicit-arrow-linebreak
|
236
|
-
|
292
|
+
Y(r, [
|
237
293
|
{
|
238
|
-
type: (s) => !!(
|
294
|
+
type: (s) => !!(C.isWoodlandComponent(s.type) && C.get(s.type).name === "Sorting Header")
|
239
295
|
}
|
240
296
|
])
|
241
297
|
),
|
242
298
|
[r]
|
243
299
|
);
|
244
|
-
return /* @__PURE__ */ e.createElement("table", { className:
|
300
|
+
return /* @__PURE__ */ e.createElement("table", { className: l(ge({ wrapContent: o }), a), ...n }, i ? /* @__PURE__ */ e.createElement("thead", null, i) : null, /* @__PURE__ */ e.createElement("tbody", null, c));
|
245
301
|
}
|
246
|
-
|
302
|
+
C.set(Se, {
|
247
303
|
name: "Row List Auto Layout",
|
248
304
|
props: {
|
249
305
|
wrapContent: { type: "boolean", default: "false" }
|
250
306
|
}
|
251
307
|
});
|
252
|
-
const
|
253
|
-
components: [
|
308
|
+
const ve = {
|
309
|
+
components: [Z, m, I],
|
254
310
|
examples: {
|
255
311
|
basic: {
|
256
312
|
label: "Content Rows",
|
257
313
|
examples: {
|
258
314
|
basic: {
|
259
|
-
react:
|
315
|
+
react: u`
|
260
316
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-row";
|
261
317
|
import { Icon } from "@sps-woodland/core";
|
262
318
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -277,7 +333,7 @@ const se = {
|
|
277
333
|
`
|
278
334
|
},
|
279
335
|
withCheckbox: {
|
280
|
-
react:
|
336
|
+
react: u`
|
281
337
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-row";
|
282
338
|
import { Icon } from "@sps-woodland/core";
|
283
339
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -310,7 +366,7 @@ const se = {
|
|
310
366
|
`
|
311
367
|
},
|
312
368
|
withCheckboxAndFavorite: {
|
313
|
-
react:
|
369
|
+
react: u`
|
314
370
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-row";
|
315
371
|
import { Icon } from "@sps-woodland/core";
|
316
372
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -351,7 +407,7 @@ const se = {
|
|
351
407
|
label: "Expandable Content Rows",
|
352
408
|
examples: {
|
353
409
|
basic: {
|
354
|
-
react:
|
410
|
+
react: u`
|
355
411
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
356
412
|
import { Card } from "@sps-woodland/cards";
|
357
413
|
import { Icon } from "@sps-woodland/core";
|
@@ -386,7 +442,7 @@ const se = {
|
|
386
442
|
`
|
387
443
|
},
|
388
444
|
expandableWithCheckbox: {
|
389
|
-
react:
|
445
|
+
react: u`
|
390
446
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
391
447
|
import { Card } from "@sps-woodland/cards";
|
392
448
|
import { Icon } from "@sps-woodland/core";
|
@@ -433,7 +489,7 @@ const se = {
|
|
433
489
|
`
|
434
490
|
},
|
435
491
|
expandableWithCheckboxAlternate: {
|
436
|
-
react:
|
492
|
+
react: u`
|
437
493
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
438
494
|
import { Card } from "@sps-woodland/cards";
|
439
495
|
import { Icon } from "@sps-woodland/core";
|
@@ -481,7 +537,7 @@ const se = {
|
|
481
537
|
`
|
482
538
|
},
|
483
539
|
expandableWithCheckboxAndFavorite: {
|
484
|
-
react:
|
540
|
+
react: u`
|
485
541
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
486
542
|
import { Card } from "@sps-woodland/cards";
|
487
543
|
import { Icon } from "@sps-woodland/core";
|
@@ -531,7 +587,7 @@ const se = {
|
|
531
587
|
`
|
532
588
|
},
|
533
589
|
expandableWithCheckboxAndFavoriteAlternate: {
|
534
|
-
react:
|
590
|
+
react: u`
|
535
591
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
536
592
|
import { Card } from "@sps-woodland/cards";
|
537
593
|
import { Icon } from "@sps-woodland/core";
|
@@ -587,7 +643,7 @@ const se = {
|
|
587
643
|
label: "Sortable Content Rows",
|
588
644
|
examples: {
|
589
645
|
basic: {
|
590
|
-
react:
|
646
|
+
react: u`
|
591
647
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-row";
|
592
648
|
import { Card } from "@sps-woodland/cards";
|
593
649
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sorting-header";
|
@@ -1039,13 +1095,13 @@ const se = {
|
|
1039
1095
|
// },
|
1040
1096
|
// },
|
1041
1097
|
}
|
1042
|
-
},
|
1043
|
-
"Content Rows":
|
1098
|
+
}, Ie = {
|
1099
|
+
"Content Rows": ve
|
1044
1100
|
};
|
1045
1101
|
export {
|
1046
|
-
|
1102
|
+
Z as ContentRow,
|
1047
1103
|
m as ContentRowCol,
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1104
|
+
I as ContentRowExpansion,
|
1105
|
+
Ie as MANIFEST,
|
1106
|
+
Se as RowListAutoLayout
|
1051
1107
|
};
|
package/lib/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._11ztjee4{background:#fff;border-radius:.25rem;display:block}._11ztjee5{--_11ztjee0: block}._11ztjee6{--_11ztjee0: none}._11ztjee7{display:table;table-layout:fixed;width:100.06%;border-width:.0625rem;border-style:solid;border-color:#d2d4d4;border-radius:.25rem}._11ztjee8{border-radius:.25rem;margin-top:1rem}._11ztjeea{border-top-left-radius:.25rem;border-top-right-radius:.25rem;border-bottom-right-radius:0;border-bottom-left-radius:0}._11ztjeec{background:#e6f2f8;border-color:#027db8}._11ztjeee{min-height:3.875rem}._11ztjeeg{border-top-left-radius:.25rem;border-top-right-radius:.25rem;border-bottom-right-radius:0;border-bottom-left-radius:0}._11ztjeeh{background:#fff}._11ztjeei{--_11ztjee2: oklch(56.21% .128 239.83);background:#e6f2f8}._11ztjeej{--_11ztjee2: oklch(86.84% .002 197.12)}._11ztjeek{--_11ztjee1: 0}._11ztjeel{--_11ztjee1: .25rem}._11ztjeem{height:1rem;background:transparent;border:0}._11ztjeen{background:none;border:0;padding:0}._11ztjeeo{cursor:pointer;font-size:1rem;line-height:1.125rem;padding:0;vertical-align:middle}._11ztjeep{color:#d2d4d4;cursor:not-allowed}._11ztjeeq{color:#027db8}._11ztjeeq:hover{color:#08638d}._11ztjeer{display:var(--_11ztjee0);background:#f3f4f4;border-color:#d2d4d4;border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem;border-style:solid;border-top-width:0;border-right-width:.0625rem;border-bottom-width:.0625rem;border-left-width:.0625rem;padding:1rem}._11ztjees{display:table-cell}._11ztjeet{display:var(--_11ztjee0)}._11ztjeeu{padding:1rem}._11ztjeeu:first-child{margin:-1rem -1rem 0}._11ztjeeu:last-child{border-top-width:.0625rem;border-right-width:0;border-bottom-width:0;border-left-width:0;border-style:solid;border-top-color:#d2d4d4;margin:0 -1rem -1rem}._11ztjeev{display:flex}._11ztjeew{position:absolute}._11ztjeew:first-child{margin:-1rem -1rem 0;top:1rem}._11ztjeew:last-child{border-top-width:.0625rem;border-right-width:0;border-bottom-width:0;border-left-width:0;border-style:solid;border-top-color:#d2d4d4;margin:0 -1rem -1rem;bottom:1rem}._11ztjeex{min-height:1.78125rem;width:3.3125rem;height:50%;display:flex}._11ztjeey{padding:1rem}._11ztjeez{display:block}._11ztjee10{border-width:.0625rem;border-style:solid;border-color:#d2d4d4;border-radius:.25rem;background:#fff;height:100%;display:table;table-layout:fixed;min-height:3.5rem;width:3.5rem;margin-right:.5rem;padding:.5rem}._11ztjee11{display:table-cell;vertical-align:middle}._11ztjee12{border-radius:0;padding:0}._11ztjee13{--_11ztjee3: none;border:none}._11ztjee14{--_11ztjee3: inline}._11ztjee15{border-top-left-radius:.1875rem}._11ztjee17{border-bottom-left-radius:.1875rem}._11ztjeew ._11ztjee12{width:100%;height:100%}._11ztjeew ._11ztjee12 button{padding:0;width:100%;height:100%;min-height:1.78125rem;min-width:3.3125rem}._11ztjeew ._11ztjee12 button>i{display:var(--_11ztjee3)}._11ztjee11 input{text-align:center}._1mxrufv0{display:table-cell;padding:1rem;vertical-align:middle}._1mxrufv1{padding:.5rem 1rem}._1mxrufv4:not(:first-child){border-left:.0625rem solid oklch(86.84% .002 197.12)}._1mxrufv5{word-break:break-word}._1mxrufv7{padding:1rem;vertical-align:middle;border-style:solid;border-color:var(--_11ztjee2);border-top-width:.0625rem;border-bottom-width:.0625rem;border-left-width:.0625rem;border-right-width:0;text-align:left}._1mxrufv7:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:var(--_11ztjee1)}._1mxrufv7:last-child{border-right-width:.0625rem;border-top-right-radius:.25rem;border-bottom-right-radius:var(--_11ztjee1)}._1mxrufv8{padding:.5rem 1rem}._1mxrufva{border-left-width:0}._1mxrufvc{word-break:break-word}._1mxrufv0>*{vertical-align:middle}._1wuky9j0{table-layout:auto;width:100%;border-collapse:separate;border-spacing:0;white-space:normal;overflow:hidden}._1wuky9j1{word-break:break-word}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sps-woodland/content-row",
|
3
3
|
"description": "SPS Woodland Design System page title component",
|
4
|
-
"version": "8.
|
4
|
+
"version": "8.11.0",
|
5
5
|
"author": "SPS Commerce",
|
6
6
|
"license": "UNLICENSED",
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/page-title",
|
@@ -30,11 +30,12 @@
|
|
30
30
|
"@spscommerce/utils": "^7.0.0",
|
31
31
|
"react": "^16.14.0",
|
32
32
|
"react-dom": "^16.14.0",
|
33
|
-
"@sps-woodland/core": "8.
|
34
|
-
"@sps-woodland/tokens": "8.
|
35
|
-
"@
|
36
|
-
"@spscommerce/ds-
|
37
|
-
"@spscommerce/ds-
|
33
|
+
"@sps-woodland/core": "8.11.0",
|
34
|
+
"@sps-woodland/tokens": "8.11.0",
|
35
|
+
"@sps-woodland/buttons": "8.11.0",
|
36
|
+
"@spscommerce/ds-colors": "8.11.0",
|
37
|
+
"@spscommerce/ds-react": "8.11.0",
|
38
|
+
"@spscommerce/ds-shared": "8.11.0"
|
38
39
|
},
|
39
40
|
"devDependencies": {
|
40
41
|
"@spscommerce/ds-illustrations": "^6.12.1",
|
@@ -43,11 +44,12 @@
|
|
43
44
|
"@vanilla-extract/recipes": "^0.2.5",
|
44
45
|
"react": "^16.14.0",
|
45
46
|
"react-dom": "^16.14.0",
|
46
|
-
"@sps-woodland/core": "8.
|
47
|
-
"@sps-woodland/tokens": "8.
|
48
|
-
"@
|
49
|
-
"@spscommerce/ds-
|
50
|
-
"@spscommerce/ds-
|
47
|
+
"@sps-woodland/core": "8.11.0",
|
48
|
+
"@sps-woodland/tokens": "8.11.0",
|
49
|
+
"@sps-woodland/buttons": "8.11.0",
|
50
|
+
"@spscommerce/ds-colors": "8.11.0",
|
51
|
+
"@spscommerce/ds-react": "8.11.0",
|
52
|
+
"@spscommerce/ds-shared": "8.11.0"
|
51
53
|
},
|
52
54
|
"scripts": {
|
53
55
|
"build": "pnpm run build:js && pnpm run build:types",
|