@charcoal-ui/react-sandbox 5.11.0-beta.1 → 5.11.0-beta.3
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/dist/index.cjs +120 -120
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +120 -120
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(e,t,n)=>(s(e,t,`default`),n&&s(n,t,`default`)),l=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require(`react`);u=l(u);let d=require(`styled-components`);d=l(d);let f=require(`@charcoal-ui/utils`),p=require(`react/jsx-runtime`),m=require(`@charcoal-ui/styled`),h=require(`@charcoal-ui/foundation`),g=require(`react-dom`);g=l(g);let
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(e,t,n)=>(s(e,t,`default`),n&&s(n,t,`default`)),l=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require(`react`);u=l(u,1);let d=require(`styled-components`);d=l(d,1);let f=require(`@charcoal-ui/utils`),p=require(`react/jsx-runtime`),m=require(`@charcoal-ui/styled`),h=require(`@charcoal-ui/foundation`),g=require(`react-dom`);g=l(g,1);let _=require(`@react-spring/web`),v=require(`warning`);v=l(v);var y=o({default:()=>b});c(y,require(`styled-components`));const b=typeof d.default==`function`?d.default:d.default.default,x={Link:u.forwardRef(function({to:e,children:t,...n},r){return(0,p.jsx)(`a`,{href:e,ref:r,...n,children:t})})},S=u.createContext(x);function C({children:e,components:t}){return(0,p.jsx)(S.Provider,{value:{...x,...t},children:e})}function w(){return(0,u.useContext)(S)}const T=u.forwardRef(function({onClick:e,children:t,active:n=!1,hover:r,reactive:i=!1},a){return(0,p.jsx)(A,{active:n,reactive:i,hover:r,onClick:n&&!i?void 0:e,ref:a,children:t})}),E=u.forwardRef(function({onClick:e,children:t,active:n=!1,hover:r,reactive:i=!1,width:a,height:o},s){return(0,p.jsx)(M,{active:n,reactive:i,hover:r,onClick:n&&!i?void 0:e,ref:s,buttonWidth:a,buttonHeight:o,children:t})}),D=u.forwardRef(function({onClick:e,children:t,active:n=!1,hover:r,reactive:i=!1,...a},o){let{Link:s}=w();return n&&!i?(0,p.jsx)(j,{active:!0,hover:r,ref:o,children:t}):(0,p.jsx)(s,{...a,onClick:e,children:(0,p.jsx)(j,{active:n,reactive:i,hover:r,ref:o,children:t})})}),O=y.css`
|
|
3
3
|
display: block;
|
|
4
4
|
outline: none;
|
|
5
5
|
border: none;
|
|
@@ -18,39 +18,39 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
18
18
|
color: ${({theme:e})=>e.color.text2};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
${({hover:e=!1})=>e&&
|
|
21
|
+
${({hover:e=!1})=>e&&y.css`
|
|
22
22
|
color: ${({theme:e})=>e.color.text2};
|
|
23
23
|
`}
|
|
24
24
|
|
|
25
|
-
${({active:e=!1})=>e&&
|
|
25
|
+
${({active:e=!1})=>e&&y.css`
|
|
26
26
|
background-color: ${({theme:e})=>e.color.surface3};
|
|
27
27
|
color: ${({theme:e})=>e.color.text2};
|
|
28
28
|
`}
|
|
29
29
|
|
|
30
|
-
${({active:e=!1,reactive:t=!1})=>e&&!t&&
|
|
30
|
+
${({active:e=!1,reactive:t=!1})=>e&&!t&&y.css`
|
|
31
31
|
cursor: default;
|
|
32
32
|
`}
|
|
33
33
|
|
|
34
34
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
35
35
|
padding: 5px 16px;
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,k=y.css`
|
|
38
38
|
padding: 0;
|
|
39
39
|
|
|
40
40
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
41
41
|
padding: 0;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
44
|
-
${
|
|
45
|
-
`,
|
|
46
|
-
${
|
|
47
|
-
`,
|
|
48
|
-
${
|
|
43
|
+
`,A=b.button`
|
|
44
|
+
${O}
|
|
45
|
+
`,j=b.span`
|
|
46
|
+
${O}
|
|
47
|
+
`,M=b(A)`
|
|
48
|
+
${k};
|
|
49
49
|
${e=>e.buttonWidth!==void 0&&`width: ${e.buttonWidth}px;`}
|
|
50
50
|
${e=>e.buttonHeight!==void 0&&`height: ${e.buttonHeight}px;`}
|
|
51
|
-
`,
|
|
51
|
+
`,N=b.div`
|
|
52
52
|
display: flex;
|
|
53
|
-
`,
|
|
53
|
+
`,P=(0,m.createTheme)(b);function F({size:e=24,viewBoxSize:t,currentColor:n,path:r,transform:i,fillRule:a,clipRule:o}){return(0,p.jsx)(ee,{viewBox:`0 0 ${t} ${t}`,size:e,currentColor:n,children:(0,p.jsx)(te,{path:r,transform:i,fillRule:a,clipRule:o})})}const ee=b.svg`
|
|
54
54
|
stroke: none;
|
|
55
55
|
fill: ${({currentColor:e=!1,theme:t})=>e?`currentColor`:t.color.text2};
|
|
56
56
|
width: ${e=>e.size}px;
|
|
@@ -58,39 +58,39 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
58
58
|
line-height: 0;
|
|
59
59
|
font-size: 0;
|
|
60
60
|
vertical-align: middle;
|
|
61
|
-
`,
|
|
62
|
-
0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z`}),(0,p.jsx)(
|
|
61
|
+
`,te=({path:e,transform:t,fillRule:n,clipRule:r})=>typeof e==`string`?(0,p.jsx)(`path`,{d:e,transform:t,fillRule:n,clipRule:r}):(0,p.jsx)(p.Fragment,{children:e});function ne(){return(0,p.jsx)(F,{viewBoxSize:16,size:16,currentColor:!0,path:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183
|
|
62
|
+
0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z`}),(0,p.jsx)(re,{d:`M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629
|
|
63
63
|
4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM8 6.25C8.69036 6.25 9.25 5.69036
|
|
64
64
|
9.25 5C9.25 4.30964 8.69036 3.75 8 3.75C7.30964 3.75 6.75 4.30964 6.75
|
|
65
65
|
5C6.75 5.69036 7.30964 6.25 8 6.25ZM7 7.75V11.25C7 11.8023 7.44772 12.25
|
|
66
66
|
8 12.25C8.55228 12.25 9 11.8023 9 11.25V7.75C9 7.19772 8.55228 6.75 8
|
|
67
|
-
6.75C7.44772 6.75 7 7.19772 7 7.75Z`})]})})}const
|
|
67
|
+
6.75C7.44772 6.75 7 7.19772 7 7.75Z`})]})})}const re=b.path`
|
|
68
68
|
fill: ${({theme:e})=>e.color.surface1};
|
|
69
69
|
fill-rule: evenodd;
|
|
70
|
-
`;function
|
|
71
|
-
${e=>
|
|
70
|
+
`;function ie({children:e,context:t,className:n}){return(0,p.jsxs)(ae,{className:n,...ce({children:e,context:t,className:n}),children:[(0,p.jsx)(oe,{children:(0,p.jsx)(ne,{})}),(0,p.jsx)(se,{children:e})]})}const ae=b.div`
|
|
71
|
+
${e=>P(t=>[t.bg.surface3,t.borderRadius(8),t.padding.vertical(e.default.vertical),t.padding.horizontal(e.default.horizontal)])}
|
|
72
72
|
|
|
73
73
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
74
|
-
${e=>
|
|
74
|
+
${e=>P(t=>[t.padding.vertical(e.screen1.vertical),t.padding.horizontal(e.screen1.horizontal)])}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: flex-start;
|
|
79
|
-
${e=>e.context===`page`&&
|
|
79
|
+
${e=>e.context===`page`&&y.css`
|
|
80
80
|
justify-content: center;
|
|
81
81
|
`}
|
|
82
|
-
`,
|
|
82
|
+
`,oe=b.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
color: ${e=>e.theme.color.text4};
|
|
86
86
|
height: 22px;
|
|
87
87
|
margin: -4px 4px -4px 0;
|
|
88
|
-
`,
|
|
89
|
-
${
|
|
88
|
+
`,se=b.p`
|
|
89
|
+
${P(e=>[e.font.text2,e.typography(14)])}
|
|
90
90
|
margin: 0;
|
|
91
91
|
min-width: 0;
|
|
92
92
|
overflow-wrap: break-word;
|
|
93
|
-
`;function
|
|
93
|
+
`;function ce(e){return{...e,...le(e.context)}}function le(e){switch(e){case`page`:return{default:{horizontal:40,vertical:24},screen1:{horizontal:16,vertical:16}};case`section`:return{default:{horizontal:16,vertical:16},screen1:{horizontal:16,vertical:16}}}}const ue=(0,h.columnSystem)(2,h.COLUMN_UNIT,h.GUTTER_UNIT)+h.GUTTER_UNIT,de=(0,h.columnSystem)(12,h.COLUMN_UNIT,h.GUTTER_UNIT);function fe(){return pe((0,f.maxWidth)((0,y.useTheme)().breakpoint.screen1))}function pe(e){let t=(0,u.useMemo)(()=>__TEST__?{matches:!1,addListener:()=>{},removeListener:()=>{}}:matchMedia(e),[e]),[n,r]=(0,u.useState)(t.matches);t.matches!==n&&r(t.matches);let i=e=>{try{g.default.flushSync(()=>{r(e.matches)})}catch{r(e.matches)}};return(0,u.useLayoutEffect)(()=>(t.addListener(i),r(t.matches),()=>{t.removeListener(i)}),[t]),(0,u.useDebugValue)(`${e}: ${n.toString()}`),n}function I(e){return e===null?void 0:e.getBoundingClientRect()}function me(e,t=[]){let[n,r]=(0,u.useReducer)((e,t)=>e===void 0||t===void 0?t:e.height===t.height&&e.width===t.width?e:t,void 0),[i,a]=(0,u.useState)(null);return(0,u.useLayoutEffect)(()=>{if(i===null)return;let e=new ResizeObserver(()=>{r(I(i))});return e.observe(i),()=>{e.unobserve(i),r(void 0)}},[i]),(0,u.useLayoutEffect)(()=>{e.current!==i&&a(e.current)}),(0,u.useLayoutEffect)(()=>{t.length>0&&r(I(e.current))},t),(0,u.useDebugValue)(n),n}function he(e){let[t,n]=(0,u.useState)(e),r=(0,u.useRef)(void 0);return[t,(0,u.useCallback)((e,t=!1)=>{if(t){n(e);return}r.current===void 0&&(r.current=requestAnimationFrame(()=>{n(e),r.current!==void 0&&(r.current=void 0)}))},[])]}const L=u.createContext({wide:!1,center:!1,withLeft:!1});function ge({menu:e,children:t,header:n,center:r=!1,wide:i,isHeaderTopMenu:a=!1}){let o={center:r,wide:r?!0:i??!1,withLeft:e!=null&&!a};return(0,p.jsxs)(ye,{children:[(0,p.jsxs)(L.Provider,{value:o,children:[o.withLeft&&(0,p.jsx)(be,{children:e}),(0,p.jsxs)(xe,{center:r,children:[n!=null&&(0,p.jsx)(Se,{children:n}),a&&(0,p.jsx)(_e,{children:e}),(0,p.jsx)(Ce,{children:t})]})]}),(0,p.jsx)(ve,{})]})}const _e=b.div`
|
|
94
94
|
margin-bottom: 40px;
|
|
95
95
|
overflow-x: auto;
|
|
96
96
|
word-break: keep-all;
|
|
@@ -101,7 +101,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
101
101
|
padding-bottom: 16px;
|
|
102
102
|
background-color: ${({theme:e})=>e.color.surface2};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,ve=y.createGlobalStyle`
|
|
105
105
|
:root {
|
|
106
106
|
background-color: ${({theme:e})=>e.color.background2};
|
|
107
107
|
|
|
@@ -109,26 +109,26 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
109
109
|
background-color: ${({theme:e})=>e.color.background1};
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
112
|
+
`,ye=b.div`
|
|
113
113
|
display: flex;
|
|
114
114
|
background-color: ${({theme:e})=>e.color.background2};
|
|
115
115
|
|
|
116
116
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
117
117
|
background-color: ${({theme:e})=>e.color.background1};
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
120
|
-
min-width: ${
|
|
119
|
+
`,be=b.div`
|
|
120
|
+
min-width: ${ue}px;
|
|
121
121
|
padding: 40px 0 40px ${h.GUTTER_UNIT}px;
|
|
122
122
|
box-sizing: border-box;
|
|
123
123
|
|
|
124
124
|
@media ${({theme:e})=>e.breakpoint.screen3} {
|
|
125
125
|
display: none;
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,xe=b.div`
|
|
128
128
|
flex-grow: 1;
|
|
129
129
|
/* https://www.w3.org/TR/css-flexbox-1/#min-size-auto */
|
|
130
130
|
min-width: 0;
|
|
131
|
-
max-width: ${e=>e.center?(0,h.columnSystem)(6,h.COLUMN_UNIT,h.GUTTER_UNIT):
|
|
131
|
+
max-width: ${e=>e.center?(0,h.columnSystem)(6,h.COLUMN_UNIT,h.GUTTER_UNIT):de}px;
|
|
132
132
|
padding: 40px ${72}px;
|
|
133
133
|
margin: 0 auto;
|
|
134
134
|
display: flex;
|
|
@@ -137,7 +137,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
137
137
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
138
138
|
padding: 0;
|
|
139
139
|
}
|
|
140
|
-
`,
|
|
140
|
+
`,Se=b.div`
|
|
141
141
|
font-weight: bold;
|
|
142
142
|
margin-bottom: 12px;
|
|
143
143
|
font-size: 20px;
|
|
@@ -153,7 +153,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
153
153
|
justify-content: center;
|
|
154
154
|
background-color: ${({theme:e})=>e.color.surface2};
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,Ce=b.div`
|
|
157
157
|
display: grid;
|
|
158
158
|
gap: ${h.GUTTER_UNIT}px;
|
|
159
159
|
grid-template-columns: 1fr;
|
|
@@ -165,7 +165,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
165
165
|
background-color: ${({theme:e})=>e.color.background1};
|
|
166
166
|
padding-bottom: 60px;
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,we=u.forwardRef(function({span:e,children:t},n){let{withLeft:r}=(0,u.useContext)(L);return(0,p.jsx)(Te,{span:e,withLeft:r,ref:n,children:t})}),Te=b.div`
|
|
169
169
|
grid-column-start: auto;
|
|
170
170
|
grid-column-end: span ${e=>e.span};
|
|
171
171
|
border-radius: 24px;
|
|
@@ -175,20 +175,20 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
175
175
|
min-width: 0;
|
|
176
176
|
|
|
177
177
|
@media ${e=>e.withLeft?e.theme.breakpoint.screen4:e.theme.breakpoint.screen3} {
|
|
178
|
-
${e=>e.span>2&&
|
|
178
|
+
${e=>e.span>2&&y.css`
|
|
179
179
|
grid-column-end: span 2;
|
|
180
180
|
`}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
184
|
-
${e=>e.span>1&&
|
|
184
|
+
${e=>e.span>1&&y.css`
|
|
185
185
|
grid-column-end: span 1;
|
|
186
186
|
`}
|
|
187
187
|
|
|
188
188
|
border-radius: 0;
|
|
189
189
|
padding-bottom: 40px;
|
|
190
190
|
}
|
|
191
|
-
`;function
|
|
191
|
+
`;function Ee({children:e}){let{wide:t,center:n}=(0,u.useContext)(L);return(0,p.jsx)(De,{wide:t,center:n,children:e})}const De=b.div`
|
|
192
192
|
padding: 0 ${e=>e.wide?40:24}px;
|
|
193
193
|
height: ${e=>e.wide?64:48}px;
|
|
194
194
|
display: grid;
|
|
@@ -199,7 +199,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
199
199
|
background-color: ${({theme:e})=>e.color.surface2};
|
|
200
200
|
color: ${({theme:e})=>e.color.text2};
|
|
201
201
|
border-radius: 24px 24px 0 0;
|
|
202
|
-
${e=>e.center&&
|
|
202
|
+
${e=>e.center&&y.css`
|
|
203
203
|
justify-content: center;
|
|
204
204
|
`}
|
|
205
205
|
|
|
@@ -209,45 +209,45 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
209
209
|
background: none;
|
|
210
210
|
overflow-x: auto;
|
|
211
211
|
border-radius: unset;
|
|
212
|
-
${e=>e.wide&&
|
|
212
|
+
${e=>e.wide&&y.css`
|
|
213
213
|
height: 48px;
|
|
214
214
|
margin-top: 0;
|
|
215
215
|
`}
|
|
216
216
|
}
|
|
217
|
-
`,
|
|
218
|
-
padding: ${e=>e.narrow?`${
|
|
217
|
+
`,R={wide:{x:40,y:40},default:{x:24,y:24},column1:{x:16,y:16},narrow:{x:24,yTop:12,yBottom:20},narrowColumn1:{x:16,yTop:4,yBottom:0}};function Oe({children:e,horizontal:t=!1,narrow:n=!1}){let{wide:r}=(0,u.useContext)(L);return(0,p.jsx)(ke,{wide:r,horizontal:t,narrow:n,children:e})}const ke=b.div`
|
|
218
|
+
padding: ${e=>e.narrow?`${R.narrow.yTop}px ${e.horizontal?0:R.narrow.x}px ${R.narrow.yBottom}px`:e.wide?`${e.horizontal?0:R.wide.y}px ${R.wide.x}px`:`${e.horizontal?0:R.default.y}px ${R.default.x}px`};
|
|
219
219
|
|
|
220
220
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
221
|
-
padding: ${e=>e.narrow?`${
|
|
221
|
+
padding: ${e=>e.narrow?`${R.narrowColumn1.yTop}px ${e.horizontal?0:R.narrowColumn1.x}px ${R.narrowColumn1.yBottom}px`:`${R.column1.y}px ${R.column1.x}px 0`};
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
width: 100%;
|
|
225
225
|
box-sizing: border-box;
|
|
226
|
-
`;function
|
|
227
|
-
margin: 0 -${e=>e.wide?
|
|
228
|
-
margin-top: -${({cancelTop:e=!1,wide:t})=>e?t?
|
|
226
|
+
`;function Ae(){let{wide:e}=(0,u.useContext)(L);return fe()?R.column1:e?R.wide:R.default}function je({children:e,cancelTop:t}){let{wide:n}=(0,u.useContext)(L);return(0,p.jsx)(Me,{wide:n,cancelTop:t,children:e})}const Me=b.div`
|
|
227
|
+
margin: 0 -${e=>e.wide?R.wide.x:R.default.x}px;
|
|
228
|
+
margin-top: -${({cancelTop:e=!1,wide:t})=>e?t?R.wide.y:R.default.y:0}px;
|
|
229
229
|
|
|
230
230
|
@media ${({theme:e})=>(0,f.maxWidth)(e.breakpoint.screen1)} {
|
|
231
|
-
margin: 0 -${
|
|
232
|
-
margin-top: -${({cancelTop:e=!1})=>e?
|
|
231
|
+
margin: 0 -${R.column1.x}px;
|
|
232
|
+
margin-top: -${({cancelTop:e=!1})=>e?R.column1.x:0}px;
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Ne=e=>(0,u.isValidElement)(e)&&!!e.props.children,Pe=e=>e==null||typeof e==`boolean`||JSON.stringify(e)===`{}`?``:e.toString(),Fe=e=>!Array.isArray(e)&&!(0,u.isValidElement)(e)?Pe(e):u.Children.toArray(e).reduce((e,t)=>{let n=``;return n=(0,u.isValidElement)(t)&&Ne(t)?Fe(t.props.children):(0,u.isValidElement)(t)&&!Ne(t)?``:Pe(t),e.concat(n)},``),z=b.div.attrs(({children:e,title:t=Fe(e)})=>({title:t===``?void 0:t}))`
|
|
235
235
|
overflow: hidden;
|
|
236
236
|
line-height: ${e=>e.lineHeight}px;
|
|
237
237
|
/* For english */
|
|
238
238
|
overflow-wrap: break-word;
|
|
239
239
|
|
|
240
|
-
${({lineLimit:e=1,lineHeight:t})=>e===1?
|
|
240
|
+
${({lineLimit:e=1,lineHeight:t})=>e===1?y.css`
|
|
241
241
|
text-overflow: ellipsis;
|
|
242
242
|
white-space: nowrap;
|
|
243
|
-
`:
|
|
243
|
+
`:y.css`
|
|
244
244
|
display: -webkit-box;
|
|
245
245
|
-webkit-box-orient: vertical;
|
|
246
246
|
-webkit-line-clamp: ${e};
|
|
247
247
|
/* Fallback for -webkit-line-clamp */
|
|
248
248
|
max-height: ${t*e}px;
|
|
249
249
|
`}
|
|
250
|
-
`,
|
|
250
|
+
`,B=u.createContext({padding:24});function V({primary:e,secondary:t,onClick:n,disabled:r=!1,noHover:i=!1,gtmClass:a,children:o}){let{padding:s}=(0,u.useContext)(B);return(0,p.jsxs)(Ie,{hasSubLabel:t!==void 0,onClick:e=>!r&&n&&n(e),sidePadding:s,noHover:i,noClick:n===void 0,"aria-disabled":r,role:n===void 0?void 0:`button`,className:a===void 0?void 0:`gtm-${a}`,children:[(0,p.jsxs)(Le,{children:[(0,p.jsx)(Re,{children:(0,p.jsx)(z,{lineHeight:22,lineLimit:1,children:e})}),t!==void 0&&(0,p.jsx)(ze,{children:(0,p.jsx)(z,{lineHeight:22,lineLimit:1,children:t})})]}),o]})}const Ie=b.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
height: ${e=>e.hasSubLabel?56:40}px;
|
|
253
253
|
align-items: center;
|
|
@@ -258,12 +258,12 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
258
258
|
transition: 0.2s background-color;
|
|
259
259
|
|
|
260
260
|
&:hover {
|
|
261
|
-
${e=>!e.noHover&&
|
|
261
|
+
${e=>!e.noHover&&y.css`
|
|
262
262
|
background-color: ${({theme:e})=>e.color.surface3};
|
|
263
263
|
`}
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
${
|
|
266
|
+
${P(e=>e.disabled)}
|
|
267
267
|
|
|
268
268
|
${f.disabledSelector} {
|
|
269
269
|
cursor: default;
|
|
@@ -273,42 +273,42 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
273
273
|
background-color: unset;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
`,
|
|
276
|
+
`,Le=b.div`
|
|
277
277
|
display: flex;
|
|
278
278
|
flex-direction: column;
|
|
279
|
-
`,
|
|
279
|
+
`,Re=b.div`
|
|
280
280
|
color: ${e=>e.theme.color.text2};
|
|
281
281
|
line-height: 22px;
|
|
282
282
|
font-size: 14px;
|
|
283
283
|
display: grid;
|
|
284
|
-
`,
|
|
284
|
+
`,ze=b.div`
|
|
285
285
|
color: ${e=>e.theme.color.text3};
|
|
286
286
|
line-height: 18px;
|
|
287
287
|
font-size: 10px;
|
|
288
|
-
`;function
|
|
288
|
+
`;function H({link:e,onClick:t,disabled:n=!1,primary:r,secondary:i,gtmClass:a,noHover:o,children:s,...c}){let{Link:l}=w(),u={disabled:n,primary:r,secondary:i,gtmClass:a,noHover:o,children:s};return n?(0,p.jsx)(`span`,{onClick:t,children:(0,p.jsx)(V,{...u})}):(0,p.jsx)(Be,{as:l,to:e,onClick:t,...c,children:(0,p.jsx)(V,{onClick:()=>void 0,...u})})}const Be=b.a`
|
|
289
289
|
display: block;
|
|
290
|
-
`;function
|
|
290
|
+
`;function Ve({icon:e,primary:t,...n}){return(0,p.jsx)(H,{primary:(0,p.jsxs)(Ue,{children:[(0,p.jsx)(We,{children:e}),t]}),...n})}function He({icon:e,primary:t,...n}){return(0,p.jsx)(V,{primary:(0,p.jsxs)(Ue,{children:[(0,p.jsx)(We,{children:e}),t]}),...n})}const Ue=b.div`
|
|
291
291
|
display: grid;
|
|
292
292
|
gap: 8px;
|
|
293
293
|
grid-auto-flow: column;
|
|
294
294
|
align-items: center;
|
|
295
|
-
`,
|
|
295
|
+
`,We=b.div`
|
|
296
296
|
color: ${({theme:e})=>e.color.text3};
|
|
297
297
|
display: flex;
|
|
298
|
-
`,
|
|
298
|
+
`,Ge=b.div`
|
|
299
299
|
height: 24px;
|
|
300
|
-
`,
|
|
300
|
+
`,Ke=b.div`
|
|
301
301
|
padding: 0 16px;
|
|
302
302
|
font-size: 12px;
|
|
303
303
|
line-height: 16px;
|
|
304
304
|
color: ${({theme:e})=>e.color.text3};
|
|
305
305
|
margin-top: -2px;
|
|
306
306
|
margin-bottom: 6px;
|
|
307
|
-
`;function
|
|
307
|
+
`;function qe({links:e,active:t}){let{Link:n}=w();return(0,p.jsx)(Ye,{children:e.map((e,r)=>(0,p.jsx)(n,{to:e.to,children:(0,p.jsx)(Xe,{"aria-current":e.id===t||void 0,children:e.text})},r))})}function Je({links:e}){return(0,p.jsx)(p.Fragment,{children:e.map((e,t)=>(0,p.jsx)(H,{link:e.to,primary:e.text},t))})}const Ye=b.div`
|
|
308
308
|
display: flex;
|
|
309
309
|
flex-direction: column;
|
|
310
310
|
align-items: flex-start;
|
|
311
|
-
|
|
311
|
+
`,Xe=b.div`
|
|
312
312
|
display: flex;
|
|
313
313
|
align-items: center;
|
|
314
314
|
color: ${({theme:e})=>e.color.text3};
|
|
@@ -327,20 +327,20 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
327
327
|
color: ${({theme:e})=>e.color.text2};
|
|
328
328
|
background-color: ${({theme:e})=>e.color.surface3};
|
|
329
329
|
}
|
|
330
|
-
`;var
|
|
331
|
-
${e=>e.rowReverse?
|
|
330
|
+
`;var Ze=u.forwardRef(function({gtmClass:e,flex:t=!1,rowReverse:n=!1,children:r,disabled:i,...a},o){return(0,p.jsxs)($e,{className:e===void 0?``:`gtm-${e}`,flex:t,rowReverse:n,"aria-disabled":i,children:[(0,p.jsxs)(et,{children:[(0,p.jsx)(nt,{...a,disabled:i,ref:o}),(0,p.jsx)(U,{children:(0,p.jsx)(tt,{})})]}),r!=null&&(0,p.jsx)(Qe,{rowReverse:n,children:r})]})});const Qe=b.span`
|
|
331
|
+
${e=>e.rowReverse?y.css`
|
|
332
332
|
margin-right: 8px;
|
|
333
|
-
`:
|
|
333
|
+
`:y.css`
|
|
334
334
|
margin-left: 8px;
|
|
335
335
|
`}
|
|
336
|
-
|
|
336
|
+
`,$e=b.label`
|
|
337
337
|
display: inline-flex;
|
|
338
338
|
align-items: center;
|
|
339
|
-
${({flex:e})=>e&&
|
|
339
|
+
${({flex:e})=>e&&y.css`
|
|
340
340
|
display: flex;
|
|
341
341
|
justify-content: space-between;
|
|
342
342
|
`}
|
|
343
|
-
${({rowReverse:e})=>
|
|
343
|
+
${({rowReverse:e})=>y.css`
|
|
344
344
|
flex-direction: ${e?`row-reverse`:`row`};
|
|
345
345
|
`}
|
|
346
346
|
cursor: pointer;
|
|
@@ -349,11 +349,11 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
349
349
|
&[aria-disabled='true'] {
|
|
350
350
|
cursor: auto;
|
|
351
351
|
}
|
|
352
|
-
`,
|
|
352
|
+
`,et=b.span`
|
|
353
353
|
display: inline-flex;
|
|
354
354
|
position: relative;
|
|
355
355
|
z-index: 0;
|
|
356
|
-
`,
|
|
356
|
+
`,U=b.div`
|
|
357
357
|
position: relative;
|
|
358
358
|
box-sizing: border-box;
|
|
359
359
|
width: 28px;
|
|
@@ -364,7 +364,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
364
364
|
transition:
|
|
365
365
|
box-shadow 0.2s,
|
|
366
366
|
background-color 0.2s;
|
|
367
|
-
`,
|
|
367
|
+
`,tt=b.div`
|
|
368
368
|
position: absolute;
|
|
369
369
|
display: block;
|
|
370
370
|
top: 0;
|
|
@@ -375,7 +375,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
375
375
|
border-radius: 50%;
|
|
376
376
|
transform: translateX(0);
|
|
377
377
|
transition: transform 0.2s;
|
|
378
|
-
`,
|
|
378
|
+
`,nt=b.input.attrs({type:`checkbox`})`
|
|
379
379
|
position: absolute;
|
|
380
380
|
/* NOTE: this is contained by the GraphicCheckboxOuter */
|
|
381
381
|
z-index: 1;
|
|
@@ -391,10 +391,10 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
391
391
|
cursor: pointer;
|
|
392
392
|
|
|
393
393
|
&:checked {
|
|
394
|
-
~ ${
|
|
394
|
+
~ ${U} {
|
|
395
395
|
background-color: ${({theme:e})=>e.color.brand};
|
|
396
396
|
|
|
397
|
-
${
|
|
397
|
+
${tt} {
|
|
398
398
|
transform: translateX(12px);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -403,52 +403,52 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
403
403
|
&:disabled {
|
|
404
404
|
cursor: auto;
|
|
405
405
|
|
|
406
|
-
~ ${
|
|
406
|
+
~ ${U} {
|
|
407
407
|
opacity: ${({theme:e})=>e.elementEffect.disabled.opacity};
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
&:not(:disabled):focus {
|
|
412
|
-
~ ${
|
|
412
|
+
~ ${U} {
|
|
413
413
|
box-shadow: 0 0 0 4px
|
|
414
414
|
${({theme:e})=>(0,f.applyEffect)(e.color.brand,e.elementEffect.disabled)};
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
`;var
|
|
417
|
+
`;var rt=u.memo(function({children:e,icon:t,show:n=!0,prefix:r=!1,width:i,fit:a=!1,fixed:o=!1}){let s=a?i===void 0?(0,p.jsx)(ot,{show:n,pre:r,children:t}):(0,p.jsx)(dt,{width:i,show:n,pre:r,children:(0,p.jsx)(ft,{children:t})}):(0,p.jsx)(lt,{show:n,pre:r,children:(0,p.jsx)(ut,{children:t})});return(0,p.jsxs)(it,{children:[r&&s,(0,p.jsx)(at,{fixed:o,children:e}),!r&&s]})});const it=b.div`
|
|
418
418
|
display: flex;
|
|
419
419
|
align-items: center;
|
|
420
|
-
`,
|
|
421
|
-
${e=>!e.fixed&&
|
|
420
|
+
`,at=b.div`
|
|
421
|
+
${e=>!e.fixed&&y.css`
|
|
422
422
|
min-width: 0;
|
|
423
423
|
overflow: hidden;
|
|
424
424
|
`}
|
|
425
425
|
white-space: nowrap;
|
|
426
426
|
text-overflow: ellipsis;
|
|
427
|
-
`;function
|
|
427
|
+
`;function ot({children:e,show:t,pre:n}){let r=(0,u.useRef)(null);return(0,p.jsx)(dt,{width:me(r,[null])?.width??0,show:t,pre:n,children:(0,p.jsx)(ft,{ref:r,children:e})})}const st=y.css`
|
|
428
428
|
> svg {
|
|
429
429
|
display: block;
|
|
430
430
|
}
|
|
431
|
-
`,
|
|
432
|
-
${e=>e.show===`collapse`?
|
|
431
|
+
`,ct=y.css`
|
|
432
|
+
${e=>e.show===`collapse`?y.css`
|
|
433
433
|
display: none;
|
|
434
|
-
`:
|
|
434
|
+
`:y.css`
|
|
435
435
|
visibility: ${e.show?`visible`:`hidden`};
|
|
436
436
|
`};
|
|
437
|
-
${e=>e.pre?
|
|
437
|
+
${e=>e.pre?y.css`
|
|
438
438
|
margin-right: 4px;
|
|
439
|
-
`:
|
|
439
|
+
`:y.css`
|
|
440
440
|
margin-left: 4px;
|
|
441
441
|
`}
|
|
442
|
-
`,
|
|
442
|
+
`,lt=b.div`
|
|
443
443
|
display: flex;
|
|
444
444
|
align-items: center;
|
|
445
445
|
|
|
446
|
-
${
|
|
447
|
-
`,
|
|
446
|
+
${ct}
|
|
447
|
+
`,ut=b.div`
|
|
448
448
|
display: inline-flex;
|
|
449
449
|
|
|
450
|
-
${
|
|
451
|
-
`,
|
|
450
|
+
${st}
|
|
451
|
+
`,dt=b.div`
|
|
452
452
|
display: flex;
|
|
453
453
|
position: relative;
|
|
454
454
|
/* Iconをline-heightに関与させない */
|
|
@@ -456,18 +456,18 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
456
456
|
/* 横方向の領域は確保する */
|
|
457
457
|
width: ${e=>e.width}px;
|
|
458
458
|
|
|
459
|
-
${
|
|
460
|
-
`,
|
|
459
|
+
${ct}
|
|
460
|
+
`,ft=b.div`
|
|
461
461
|
display: inline-flex;
|
|
462
462
|
position: absolute;
|
|
463
463
|
transform: translateY(-50%);
|
|
464
464
|
|
|
465
|
-
${
|
|
466
|
-
`;var
|
|
465
|
+
${st}
|
|
466
|
+
`;var W;function pt(){if(W!==void 0)return W;W=!1;try{let t=Object.defineProperty({},`passive`,{get(){return W=!0}});window.addEventListener(`test`,e,t),window.removeEventListener(`test`,e)}catch{}return W;function e(){}}const mt=()=>navigator.userAgent.includes(`Edge/`),G=typeof window<`u`?u.useLayoutEffect:u.useEffect;function K(e){throw Error(arguments.length===0?`unreachable`:`unreachable (${JSON.stringify(e)})`)}function ht({direction:e}){return(0,p.jsx)(F,{viewBoxSize:24,size:24,currentColor:!0,path:`M8.08579 16.5858C7.30474 17.3668 7.30474 18.6332 8.08579 19.4142C8.86684 20.1953 10.1332 20.1953 10.9142 19.4142L18.3284 12L10.9142 4.58579C10.1332 3.80474 8.86684 3.80474 8.08579 4.58579C7.30474 5.36684 7.30474 6.63317 8.08579 7.41421L12.6716 12L8.08579 16.5858Z`,transform:gt(e)})}function gt(e){switch(e){case`up`:return`rotate(270 12 12)`;case`down`:return`rotate(90 12 12)`;case`left`:return`rotate(180 12 12)`;case`right`:return;default:return K(e)}}const _t=y.css`
|
|
467
467
|
@media (hover: none) and (pointer: coarse) {
|
|
468
468
|
display: none;
|
|
469
469
|
}
|
|
470
|
-
`;function
|
|
470
|
+
`;function q({direction:e,show:t,offset:n=0,padding:r=0,bottomOffset:i=0,gradient:a=!1,onClick:o}){let s=e===`left`?{left:a?n-72:n,paddingLeft:Math.max(r,0),paddingBottom:i}:{right:a?n-72:n,paddingRight:Math.max(r,0),paddingBottom:i};return(0,p.jsx)(vt,{type:`button`,onClick:o,hide:!t,style:s,children:(0,p.jsx)(J,{children:(0,p.jsx)(ht,{direction:e===`right`?`right`:e===`left`?`left`:K()})})})}const J=b.div`
|
|
471
471
|
display: flex;
|
|
472
472
|
align-items: center;
|
|
473
473
|
justify-content: center;
|
|
@@ -481,7 +481,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
481
481
|
0.2s background-color,
|
|
482
482
|
0.2s color;
|
|
483
483
|
color: ${({theme:e})=>e.color.text5};
|
|
484
|
-
`;var
|
|
484
|
+
`;var vt=b(b.button`
|
|
485
485
|
position: absolute;
|
|
486
486
|
top: 0;
|
|
487
487
|
bottom: 0;
|
|
@@ -500,22 +500,22 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
500
500
|
/* このコンポーネントはCarouselでしか使われてないのでそっちでコンテキストで切る */
|
|
501
501
|
z-index: 1;
|
|
502
502
|
|
|
503
|
-
&:hover ${
|
|
503
|
+
&:hover ${J} {
|
|
504
504
|
background-color: ${({theme:e})=>(0,f.applyEffect)(e.color.surface4,e.effect.hover)};
|
|
505
505
|
color: ${({theme:e})=>(0,f.applyEffect)(e.color.text5,e.effect.hover)};
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
-
&:active ${
|
|
508
|
+
&:active ${J} {
|
|
509
509
|
background-color: ${({theme:e})=>(0,f.applyEffect)(e.color.surface4,e.effect.press)};
|
|
510
510
|
color: ${({theme:e})=>(0,f.applyEffect)(e.color.text5,e.effect.press)};
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
${e=>e.hide&&
|
|
513
|
+
${e=>e.hide&&y.css`
|
|
514
514
|
visibility: hidden;
|
|
515
515
|
opacity: 0;
|
|
516
516
|
pointer-events: none;
|
|
517
517
|
`}
|
|
518
|
-
`)`${
|
|
518
|
+
`)`${_t}`;function yt({buttonOffset:e=0,buttonPadding:t=16,bottomOffset:n=0,defaultScroll:{align:r=`left`,offset:i=0}={},onScroll:a,onResize:o,children:s,centerItems:c,onScrollStateChange:l,scrollAmountCoef:d=.75,...f}){let[m,h]=he(0),g=(0,u.useRef)(!1),[v,y]=(0,u.useState)(0),[b,x]=(0,u.useState)(!1),[S,C]=(0,u.useState)(!1),[w,T]=(0,_.useSpring)(()=>({from:{scroll:0}})),E=(0,u.useRef)(null),D=(0,u.useRef)(null),O=(0,u.useRef)(null),k=(0,u.useCallback)(()=>{if(D.current===null)return;let{clientWidth:e}=D.current,t=Math.min(m+e*d,v);h(t,!0),T({scroll:t,from:{scroll:m},reset:!g.current}),g.current=!0},[g,v,m,T,d,h]),A=(0,u.useCallback)(()=>{if(D.current===null)return;let{clientWidth:e}=D.current,t=Math.max(m-e*d,0);h(t,!0),T({scroll:t,from:{scroll:m},reset:!g.current}),g.current=!0},[g,m,T,d,h]);(0,u.useEffect)(()=>{let e=m>0,t=m<v&&v>0;(e!==b||t!==S)&&(x(e),C(t),l?.(e||t))},[b,v,l,S,m]);let j=(0,u.useCallback)(()=>{if(E.current===null)return;g.current&&=(w.scroll.stop(),!1);let e=E.current.scrollLeft;h(e)},[g,h,w]),M=(0,u.useCallback)(()=>{if(E.current===null)return;let{clientWidth:e,scrollWidth:t}=E.current;y(t-e),o&&o(e)},[o]);G(()=>{let e=E.current,t=O.current;if(e===null||t===null)return;e.addEventListener(`wheel`,j,pt()&&{passive:!0});let n=new ResizeObserver(M);n.observe(e);let r=new ResizeObserver(M);return r.observe(t),()=>{e.removeEventListener(`wheel`,j),n.disconnect(),r.disconnect()}},[M,j]),G(()=>{if(r!==`left`||i!==0){let e=E.current;if(e!==null){let t=Math.max(0,Math.min(r===`left`&&i>0?i:r===`center`?v/2+i:r===`right`&&i<=v?v-i/2:0,v));e.scrollLeft=t,h(t,!0)}}},[E.current]);let N=(0,u.useCallback)(()=>{E.current!==null&&a&&a(E.current.scrollLeft)},[a]),[P,F]=(0,u.useState)(!1);if(G(()=>{mt()&&F(!0)},[]),!P&&f.hasGradient===!0){let r=f.fadeInGradient??!1,i=!r;return(0,p.jsxs)(bt,{ref:D,children:[(0,p.jsx)(St,{fadeInGradient:r,children:(0,p.jsx)(Ct,{children:(0,p.jsx)(wt,{show:i||m>0,children:(0,p.jsx)(xt,{ref:E,scrollLeft:w.scroll,onScroll:N,children:(0,p.jsx)(Y,{ref:O,centerItems:c,children:s})})})})}),(0,p.jsxs)(X,{children:[(0,p.jsx)(q,{direction:`left`,show:b,offset:e,bottomOffset:n,padding:t,gradient:i,onClick:A}),(0,p.jsx)(q,{direction:`right`,show:S,offset:e,bottomOffset:n,padding:t,gradient:!0,onClick:k})]})]})}return(0,p.jsxs)(bt,{ref:D,children:[(0,p.jsx)(xt,{ref:E,scrollLeft:w.scroll,onScroll:N,children:(0,p.jsx)(Y,{ref:O,centerItems:c,children:s})}),(0,p.jsxs)(X,{children:[(0,p.jsx)(q,{direction:`left`,show:b,offset:e,bottomOffset:n,padding:t,onClick:A}),(0,p.jsx)(q,{direction:`right`,show:S,offset:e,bottomOffset:n,padding:t,onClick:k})]})]})}const Y=b.ul`
|
|
519
519
|
vertical-align: top;
|
|
520
520
|
overflow: hidden;
|
|
521
521
|
list-style: none;
|
|
@@ -525,26 +525,26 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
525
525
|
min-width: 100%;
|
|
526
526
|
box-sizing: border-box;
|
|
527
527
|
|
|
528
|
-
${({centerItems:e=!1})=>e?
|
|
528
|
+
${({centerItems:e=!1})=>e?y.css`
|
|
529
529
|
display: flex;
|
|
530
530
|
width: max-content;
|
|
531
531
|
margin: 0 auto;
|
|
532
|
-
`:
|
|
532
|
+
`:y.css`
|
|
533
533
|
display: inline-flex;
|
|
534
534
|
margin: 0;
|
|
535
535
|
`}
|
|
536
|
-
`,
|
|
536
|
+
`,X=b.div`
|
|
537
537
|
opacity: 0;
|
|
538
538
|
transition: 0.4s opacity;
|
|
539
|
-
`,
|
|
540
|
-
&:hover ${
|
|
539
|
+
`,bt=b.div`
|
|
540
|
+
&:hover ${X} {
|
|
541
541
|
opacity: 1;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
/* CarouselButtonの中にz-index:1があるのでここでコンテキストを切る */
|
|
545
545
|
position: relative;
|
|
546
546
|
z-index: 0;
|
|
547
|
-
`,
|
|
547
|
+
`,xt=b(_.animated.div)`
|
|
548
548
|
overflow-x: auto;
|
|
549
549
|
padding: 0;
|
|
550
550
|
margin: 0;
|
|
@@ -554,28 +554,28 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
scrollbar-width: none;
|
|
557
|
-
`,
|
|
557
|
+
`,St=b.div`
|
|
558
558
|
/* NOTE: LeftGradientがはみ出るためhidden */
|
|
559
559
|
overflow: hidden;
|
|
560
|
-
${e=>!e.fadeInGradient&&
|
|
560
|
+
${e=>!e.fadeInGradient&&y.css`
|
|
561
561
|
margin-left: ${-72}px;
|
|
562
|
-
${
|
|
562
|
+
${Y} {
|
|
563
563
|
padding-left: ${72}px;
|
|
564
564
|
}
|
|
565
565
|
`}
|
|
566
566
|
|
|
567
567
|
margin-right: ${-72}px;
|
|
568
568
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
569
|
-
${
|
|
569
|
+
${Y} {
|
|
570
570
|
padding-right: ${72}px;
|
|
571
571
|
}
|
|
572
|
-
`,
|
|
572
|
+
`,Ct=b.div`
|
|
573
573
|
mask-image: linear-gradient(
|
|
574
574
|
to right,
|
|
575
575
|
#000 calc(100% - ${72}px),
|
|
576
576
|
transparent
|
|
577
577
|
);
|
|
578
|
-
`,
|
|
578
|
+
`,wt=b.div`
|
|
579
579
|
/* NOTE: mask-position が left → negative px の時、right → abs(negative px) の位置に表示されるため */
|
|
580
580
|
margin-right: ${-72}px;
|
|
581
581
|
padding-right: ${72}px;
|
|
@@ -583,23 +583,23 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
583
583
|
transition: 0.2s all ease-in;
|
|
584
584
|
mask: linear-gradient(to right, transparent, #000 ${72}px)
|
|
585
585
|
${e=>e.show?0:-72}px 0;
|
|
586
|
-
`;function
|
|
586
|
+
`;function Tt({size:e=16}){return(0,p.jsx)(Et,{viewBox:`0 0 20 6`,width:e,height:e,children:(0,p.jsx)(`path`,{fillRule:`evenodd`,d:`M5,14.5 C3.61928813,14.5 2.5,13.3807119 2.5,12 C2.5,10.6192881 3.61928813,9.5 5,9.5
|
|
587
587
|
C6.38071187,9.5 7.5,10.6192881 7.5,12 C7.5,13.3807119 6.38071187,14.5 5,14.5 Z M12,14.5
|
|
588
588
|
C10.6192881,14.5 9.5,13.3807119 9.5,12 C9.5,10.6192881 10.6192881,9.5 12,9.5
|
|
589
589
|
C13.3807119,9.5 14.5,10.6192881 14.5,12 C14.5,13.3807119 13.3807119,14.5 12,14.5 Z M19,14.5
|
|
590
590
|
C17.6192881,14.5 16.5,13.3807119 16.5,12 C16.5,10.6192881 17.6192881,9.5 19,9.5
|
|
591
|
-
C20.3807119,9.5 21.5,10.6192881 21.5,12 C21.5,13.3807119 20.3807119,14.5 19,14.5 Z`,transform:`translate(-2 -9)`})})}const
|
|
591
|
+
C20.3807119,9.5 21.5,10.6192881 21.5,12 C21.5,13.3807119 20.3807119,14.5 19,14.5 Z`,transform:`translate(-2 -9)`})})}const Et=b.svg`
|
|
592
592
|
fill: currentColor;
|
|
593
|
-
`;
|
|
593
|
+
`;function Z({size:e=16,direction:t}){return(0,p.jsx)(`svg`,{viewBox:`0 0 10 8`,width:e,height:e,children:(0,p.jsx)(Ot,{strokeWidth:`2`,points:`1,2 5,6 9,2`,transform:Dt(t)})})}function Dt(e){switch(e){case`up`:return`rotate(180 5 4)`;case`down`:return;case`left`:return`rotate(90 5 4)`;case`right`:return`rotate(-90 5 4)`;default:return K(e)}}const Ot=b.polyline`
|
|
594
594
|
fill: none;
|
|
595
595
|
stroke-linejoin: round;
|
|
596
596
|
stroke-linecap: round;
|
|
597
597
|
stroke: currentColor;
|
|
598
|
-
`;function
|
|
598
|
+
`;function kt(e,t,n=7){process.env.NODE_ENV!==`production`&&((0,v.default)((e|0)===e,`\`page\` must be integer (${e})`),(0,v.default)((t|0)===t,`\`pageCount\` must be integer (${t})`),(0,v.default)((n|0)===n,`\`pageRangeDisplayed\` must be integer (${n})`),(0,v.default)(n>2,"`windowSize` must be greater than 2"));let r=(0,u.useMemo)(()=>{let r=Math.min(t,Math.max(e+Math.floor(n/2),n));if(r<=n)return Array.from({length:1+r-1},(e,t)=>1+t);{let e=r-(n-1)+2;return[1,`...`,...Array.from({length:1+r-e},(t,n)=>e+n)]}},[e,t,n]);return(0,u.useDebugValue)(r),r}var At=(0,u.memo)(function({page:e,pageCount:t,pageRangeDisplayed:n,onChange:r}){let i=kt(e,t,n),a=(0,u.useCallback)(e=>()=>{r(e)},[r]),o=e<t,s=e>1;return(0,p.jsxs)(Mt,{children:[(0,p.jsx)(Q,{type:`button`,hidden:!s,disabled:!s,onClick:a(Math.max(1,e-1)),noBackground:!0,children:(0,p.jsx)(Z,{size:16,direction:`left`})}),i.map(t=>t===`...`?(0,p.jsx)(Nt,{children:(0,p.jsx)(Tt,{size:20})},t):t===e?(0,p.jsx)(Q,{type:`button`,"aria-current":!0,children:(0,p.jsx)($,{children:t})},t):(0,p.jsx)(Q,{type:`button`,onClick:a(t),children:(0,p.jsx)($,{children:t})},t)),(0,p.jsx)(Q,{type:`button`,hidden:!o,disabled:!o,onClick:a(Math.min(t,e+1)),noBackground:!0,children:(0,p.jsx)(Z,{size:16,direction:`right`})})]})});function jt({page:e,pageCount:t,pageRangeDisplayed:n,makeUrl:r}){let{Link:i}=w(),a=kt(e,t,n),o=e<t,s=e>1;return(0,p.jsxs)(Mt,{children:[(0,p.jsx)(i,{to:r(Math.max(1,e-1)),children:(0,p.jsx)(Q,{hidden:!s,"aria-disabled":!s,noBackground:!0,children:(0,p.jsx)(Z,{size:16,direction:`left`})})}),a.map(t=>t===`...`?(0,p.jsx)(Nt,{children:(0,p.jsx)(Tt,{size:20,subLink:!0})},t):t===e?(0,p.jsx)(Q,{type:`button`,"aria-current":!0,children:(0,p.jsx)($,{children:t})},t):(0,p.jsx)(i,{to:r(t),children:(0,p.jsx)(Q,{type:`button`,children:(0,p.jsx)($,{children:t})})},t)),(0,p.jsx)(i,{to:r(Math.min(t,e+1)),children:(0,p.jsx)(Q,{hidden:!o,"aria-disabled":!o,noBackground:!0,children:(0,p.jsx)(Z,{size:16,direction:`right`})})})]})}const Mt=b.nav`
|
|
599
599
|
display: flex;
|
|
600
600
|
justify-content: center;
|
|
601
601
|
align-items: center;
|
|
602
|
-
`,Q=
|
|
602
|
+
`,Q=b.button`
|
|
603
603
|
font-size: 1rem;
|
|
604
604
|
line-height: calc(1em + 8px);
|
|
605
605
|
text-decoration: none;
|
|
@@ -654,16 +654,16 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
654
654
|
color: ${({theme:e})=>e.color.text5};
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
${({noBackground:e=!1})=>e&&
|
|
657
|
+
${({noBackground:e=!1})=>e&&y.css`
|
|
658
658
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
659
659
|
&:hover {
|
|
660
660
|
background: transparent;
|
|
661
661
|
}
|
|
662
662
|
`}
|
|
663
|
-
`,
|
|
663
|
+
`,Nt=b(Q).attrs({type:`button`,disabled:!0})`
|
|
664
664
|
&& {
|
|
665
665
|
color: ${({theme:e})=>e.color.text3};
|
|
666
666
|
background: none;
|
|
667
667
|
}
|
|
668
|
-
`,$=`span`;exports.CancelLayoutItemBodyPadding=
|
|
668
|
+
`,$=`span`;exports.CancelLayoutItemBodyPadding=je,exports.Carousel=yt,exports.ComponentAbstraction=C,exports.Filter=N,exports.FilterButton=T,exports.FilterIconButton=E,exports.FilterLink=D,exports.HintText=ie,exports.LAYOUT_ITEM_BODY_PADDING=R,exports.Layout=ge,exports.LayoutItem=we,exports.LayoutItemBody=Oe,exports.LayoutItemHeader=Ee,exports.LeftMenu=qe,exports.LeftMenuContent=Je,exports.LinkPager=jt,exports.MAIN_COLUMN_HORIZONTAL_MIN_MARGIN=72,exports.MenuListItem=V,exports.MenuListItemContext=B,exports.MenuListItemWithIcon=He,exports.MenuListLabel=Ke,exports.MenuListLinkItem=H,exports.MenuListLinkItemWithIcon=Ve,exports.MenuListSpacer=Ge,exports.Pager=At,exports.RESPONSIVE_LEFT_WIDTH=ue,exports.RESPONSIVE_MAIN_MAX_WIDTH=de,exports.StyledCancelLayoutItemBodyPadding=Me,exports.StyledLayoutItemBody=ke,exports.SwitchCheckbox=Ze,exports.TextEllipsis=z,exports.WithIcon=rt,exports.useComponentAbstraction=w,exports.useElementSize=me,exports.useLayoutItemBodyPadding=Ae,exports.useMedia=pe,exports.useMediaScreen1=fe;
|
|
669
669
|
//# sourceMappingURL=index.cjs.map
|