@purpurds/quantity-selector 8.5.0 → 8.5.2
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/.rush/temp/chunked-rush-logs/quantity-selector.ci_build.chunks.jsonl +3 -3
- package/.rush/temp/chunked-rush-logs/quantity-selector.test_unit.chunks.jsonl +3 -3
- package/.rush/temp/operation/ci_build/all.log +3 -3
- package/.rush/temp/operation/ci_build/log-chunks.jsonl +3 -3
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +3 -3
- package/.rush/temp/operation/test_unit/log-chunks.jsonl +3 -3
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/LICENSE.txt +4 -4
- package/dist/quantity-selector.cjs.js +3 -3
- package/dist/quantity-selector.cjs.js.map +1 -1
- package/dist/quantity-selector.es.js +3 -3
- package/dist/quantity-selector.es.js.map +1 -1
- package/package.json +6 -6
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
{"kind":"O","text":"computing gzip size...\n"}
|
|
14
14
|
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[35mstyles.css \u001b[39m\u001b[1m\u001b[2m 2.71 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 0.56 kB\u001b[22m\n"}
|
|
15
15
|
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mquantity-selector.cjs.js \u001b[39m\u001b[1m\u001b[2m37.95 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 7.48 kB\u001b[22m\u001b[2m │ map: 94.49 kB\u001b[22m\n"}
|
|
16
|
-
{"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in
|
|
16
|
+
{"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in 1711ms.\n"}
|
|
17
17
|
{"kind":"O","text":"\u001b[39m\n"}
|
|
18
18
|
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[35mstyles.css \u001b[39m\u001b[1m\u001b[2m 2.71 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 0.56 kB\u001b[22m\n"}
|
|
19
|
-
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mquantity-selector.es.js \u001b[39m\u001b[1m\u001b[2m50.70 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 8.
|
|
20
|
-
{"kind":"O","text":"\u001b[32m✓ built in 2.
|
|
19
|
+
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mquantity-selector.es.js \u001b[39m\u001b[1m\u001b[2m50.70 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 8.92 kB\u001b[22m\u001b[2m │ map: 98.91 kB\u001b[22m\n"}
|
|
20
|
+
{"kind":"O","text":"\u001b[32m✓ built in 2.42s\u001b[39m\n"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
{"kind":"O","text":"\n"}
|
|
3
3
|
{"kind":"O","text":"\u001b[1m\u001b[46m RUN \u001b[49m\u001b[22m \u001b[36mv3.2.4 \u001b[39m\u001b[90m/opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/quantity-selector\u001b[39m\n"}
|
|
4
4
|
{"kind":"O","text":"\n"}
|
|
5
|
-
{"kind":"O","text":" \u001b[32m✓\u001b[39m src/quantity-selector.test.tsx \u001b[2m(\u001b[22m\u001b[2m6 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m
|
|
5
|
+
{"kind":"O","text":" \u001b[32m✓\u001b[39m src/quantity-selector.test.tsx \u001b[2m(\u001b[22m\u001b[2m6 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m 60\u001b[2mms\u001b[22m\u001b[39m\n"}
|
|
6
6
|
{"kind":"O","text":"\n"}
|
|
7
7
|
{"kind":"O","text":"\u001b[2m Test Files \u001b[22m \u001b[1m\u001b[32m1 passed\u001b[39m\u001b[22m\u001b[90m (1)\u001b[39m\n"}
|
|
8
8
|
{"kind":"O","text":"\u001b[2m Tests \u001b[22m \u001b[1m\u001b[32m6 passed\u001b[39m\u001b[22m\u001b[90m (6)\u001b[39m\n"}
|
|
9
|
-
{"kind":"O","text":"\u001b[2m Start at \u001b[22m
|
|
10
|
-
{"kind":"O","text":"\u001b[2m Duration \u001b[22m
|
|
9
|
+
{"kind":"O","text":"\u001b[2m Start at \u001b[22m 12:27:49\n"}
|
|
10
|
+
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 978ms\u001b[2m (transform 321ms, setup 0ms, collect 459ms, tests 60ms, environment 237ms, prepare 65ms)\u001b[22m\n"}
|
|
11
11
|
{"kind":"O","text":"\n"}
|
|
@@ -13,8 +13,8 @@ rendering chunks...
|
|
|
13
13
|
computing gzip size...
|
|
14
14
|
dist/styles.css 2.71 kB │ gzip: 0.56 kB
|
|
15
15
|
dist/quantity-selector.cjs.js 37.95 kB │ gzip: 7.48 kB │ map: 94.49 kB
|
|
16
|
-
[vite:dts] Declaration files built in
|
|
16
|
+
[vite:dts] Declaration files built in 1711ms.
|
|
17
17
|
|
|
18
18
|
dist/styles.css 2.71 kB │ gzip: 0.56 kB
|
|
19
|
-
dist/quantity-selector.es.js 50.70 kB │ gzip: 8.
|
|
20
|
-
✓ built in 2.
|
|
19
|
+
dist/quantity-selector.es.js 50.70 kB │ gzip: 8.92 kB │ map: 98.91 kB
|
|
20
|
+
✓ built in 2.42s
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
{"kind":"O","text":"computing gzip size...\n"}
|
|
14
14
|
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[35mstyles.css \u001b[39m\u001b[1m\u001b[2m 2.71 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 0.56 kB\u001b[22m\n"}
|
|
15
15
|
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mquantity-selector.cjs.js \u001b[39m\u001b[1m\u001b[2m37.95 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 7.48 kB\u001b[22m\u001b[2m │ map: 94.49 kB\u001b[22m\n"}
|
|
16
|
-
{"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in
|
|
16
|
+
{"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in 1711ms.\n"}
|
|
17
17
|
{"kind":"O","text":"\u001b[39m\n"}
|
|
18
18
|
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[35mstyles.css \u001b[39m\u001b[1m\u001b[2m 2.71 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 0.56 kB\u001b[22m\n"}
|
|
19
|
-
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mquantity-selector.es.js \u001b[39m\u001b[1m\u001b[2m50.70 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 8.
|
|
20
|
-
{"kind":"O","text":"\u001b[32m✓ built in 2.
|
|
19
|
+
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mquantity-selector.es.js \u001b[39m\u001b[1m\u001b[2m50.70 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 8.92 kB\u001b[22m\u001b[2m │ map: 98.91 kB\u001b[22m\n"}
|
|
20
|
+
{"kind":"O","text":"\u001b[32m✓ built in 2.42s\u001b[39m\n"}
|
|
@@ -2,10 +2,10 @@ Invoking: vitest run --passWithNoTests
|
|
|
2
2
|
|
|
3
3
|
RUN v3.2.4 /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/quantity-selector
|
|
4
4
|
|
|
5
|
-
✓ src/quantity-selector.test.tsx (6 tests)
|
|
5
|
+
✓ src/quantity-selector.test.tsx (6 tests) 60ms
|
|
6
6
|
|
|
7
7
|
Test Files 1 passed (1)
|
|
8
8
|
Tests 6 passed (6)
|
|
9
|
-
Start at
|
|
10
|
-
Duration
|
|
9
|
+
Start at 12:27:49
|
|
10
|
+
Duration 978ms (transform 321ms, setup 0ms, collect 459ms, tests 60ms, environment 237ms, prepare 65ms)
|
|
11
11
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
{"kind":"O","text":"\n"}
|
|
3
3
|
{"kind":"O","text":"\u001b[1m\u001b[46m RUN \u001b[49m\u001b[22m \u001b[36mv3.2.4 \u001b[39m\u001b[90m/opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/quantity-selector\u001b[39m\n"}
|
|
4
4
|
{"kind":"O","text":"\n"}
|
|
5
|
-
{"kind":"O","text":" \u001b[32m✓\u001b[39m src/quantity-selector.test.tsx \u001b[2m(\u001b[22m\u001b[2m6 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m
|
|
5
|
+
{"kind":"O","text":" \u001b[32m✓\u001b[39m src/quantity-selector.test.tsx \u001b[2m(\u001b[22m\u001b[2m6 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m 60\u001b[2mms\u001b[22m\u001b[39m\n"}
|
|
6
6
|
{"kind":"O","text":"\n"}
|
|
7
7
|
{"kind":"O","text":"\u001b[2m Test Files \u001b[22m \u001b[1m\u001b[32m1 passed\u001b[39m\u001b[22m\u001b[90m (1)\u001b[39m\n"}
|
|
8
8
|
{"kind":"O","text":"\u001b[2m Tests \u001b[22m \u001b[1m\u001b[32m6 passed\u001b[39m\u001b[22m\u001b[90m (6)\u001b[39m\n"}
|
|
9
|
-
{"kind":"O","text":"\u001b[2m Start at \u001b[22m
|
|
10
|
-
{"kind":"O","text":"\u001b[2m Duration \u001b[22m
|
|
9
|
+
{"kind":"O","text":"\u001b[2m Start at \u001b[22m 12:27:49\n"}
|
|
10
|
+
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 978ms\u001b[2m (transform 321ms, setup 0ms, collect 459ms, tests 60ms, environment 237ms, prepare 65ms)\u001b[22m\n"}
|
|
11
11
|
{"kind":"O","text":"\n"}
|
package/dist/LICENSE.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Name: @purpurds/spinner
|
|
2
|
-
Version: 8.
|
|
2
|
+
Version: 8.5.1
|
|
3
3
|
License: AGPL-3.0-only
|
|
4
4
|
Private: false
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Name: @purpurds/text-field
|
|
9
|
-
Version: 8.
|
|
9
|
+
Version: 8.5.1
|
|
10
10
|
License: AGPL-3.0-only
|
|
11
11
|
Private: false
|
|
12
12
|
|
|
@@ -47,13 +47,13 @@ SOFTWARE.
|
|
|
47
47
|
---
|
|
48
48
|
|
|
49
49
|
Name: @purpurds/button
|
|
50
|
-
Version: 8.
|
|
50
|
+
Version: 8.5.1
|
|
51
51
|
License: AGPL-3.0-only
|
|
52
52
|
Private: false
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
56
56
|
Name: @purpurds/icon
|
|
57
|
-
Version: 8.
|
|
57
|
+
Version: 8.5.1
|
|
58
58
|
License: AGPL-3.0-only
|
|
59
59
|
Private: false
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Copyright (c) 2018 Jed Watson.
|
|
15
15
|
Licensed under the MIT License (MIT), see
|
|
16
16
|
http://jedwatson.github.io/classnames
|
|
17
|
-
*/var or;function St(){return or||(or=1,(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)i.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(sr)),sr.exports}var Nt=St();const Ot=wt(Nt),qt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Mt=Ot.bind(qt),lr="purpur-icon",Pt="md",At=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),kt=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=i?`<title>${i}</title>`:"";return`<svg ${At(n)}>${a}${t}</svg>`},Ct=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Er=({svg:t,allyTitle:i,className:n,size:a=Pt,...p})=>{const r=kt({content:Ct(t.svg),title:i}),e=Mt(
|
|
17
|
+
*/var or;function St(){return or||(or=1,(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)i.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(sr)),sr.exports}var Nt=St();const Ot=wt(Nt),qt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Mt=Ot.bind(qt),lr="purpur-icon",Pt="md",At=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),kt=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=i?`<title>${i}</title>`:"";return`<svg ${At(n)}>${a}${t}</svg>`},Ct=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Er=({svg:t,allyTitle:i,className:n,size:a=Pt,...p})=>{const r=kt({content:Ct(t.svg),title:i}),e=Mt(lr,`${lr}--${a}`,n);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...p})};Er.displayName="Icon";const Bt={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"};function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cr={exports:{}};/*!
|
|
18
18
|
Copyright (c) 2018 Jed Watson.
|
|
19
19
|
Licensed under the MIT License (MIT), see
|
|
20
20
|
http://jedwatson.github.io/classnames
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|
|
28
28
|
http://jedwatson.github.io/classnames
|
|
29
|
-
*/var br;function Ut(){return br||(br=1,(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)i.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(gr)),gr.exports}var Yt=Ut();const Jt=Wt(Yt),Kt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Xt=Jt.bind(Kt),hr="purpur-icon",re="md",te=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),ee=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=i?`<title>${i}</title>`:"";return`<svg ${te(n)}>${a}${t}</svg>`},ne=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Y=({svg:t,allyTitle:i,className:n,size:a=re,...p})=>{const r=ee({content:ne(t.svg),title:i}),e=Xt(
|
|
29
|
+
*/var br;function Ut(){return br||(br=1,(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)i.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(gr)),gr.exports}var Yt=Ut();const Jt=Wt(Yt),Kt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Xt=Jt.bind(Kt),hr="purpur-icon",re="md",te=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),ee=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=i?`<title>${i}</title>`:"";return`<svg ${te(n)}>${a}${t}</svg>`},ne=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Y=({svg:t,allyTitle:i,className:n,size:a=re,...p})=>{const r=ee({content:ne(t.svg),title:i}),e=Xt(hr,`${hr}--${a}`,n);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...p})};Y.displayName="Icon";const ue={name:"check-circle-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',keywords:["check-circle-filled"],category:"status"},Fr=t=>s.jsx(Y,{...t,svg:ue});Fr.displayName="IconCheckCircleFilled";const ie={name:"close",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["close"],category:"utility"},Zr=t=>s.jsx(Y,{...t,svg:ie});Zr.displayName="IconClose";function mr(t,i){if(typeof t=="function")return t(i);t!=null&&(t.current=i)}function pe(...t){return i=>{let n=!1;const a=t.map(p=>{const r=mr(p,i);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let p=0;p<a.length;p++){const r=a[p];typeof r=="function"?r():mr(t[p],null)}}}}function ae(t){const i=se(t),n=_.forwardRef((a,p)=>{const{children:r,...e}=a,u=_.Children.toArray(r),d=u.find(le);if(d){const l=d.props.children,y=u.map(f=>f===d?_.Children.count(l)>1?_.Children.only(null):_.isValidElement(l)?l.props.children:null:f);return s.jsx(i,{...e,ref:p,children:_.isValidElement(l)?_.cloneElement(l,void 0,y):null})}return s.jsx(i,{...e,ref:p,children:r})});return n.displayName=`${t}.Slot`,n}function se(t){const i=_.forwardRef((n,a)=>{const{children:p,...r}=n;if(_.isValidElement(p)){const e=_e(p),u=ce(r,p.props);return p.type!==_.Fragment&&(u.ref=a?pe(a,e):e),_.cloneElement(p,u)}return _.Children.count(p)>1?_.Children.only(null):null});return i.displayName=`${t}.SlotClone`,i}var oe=Symbol("radix.slottable");function le(t){return _.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===oe}function ce(t,i){const n={...i};for(const a in i){const p=t[a],r=i[a];/^on[A-Z]/.test(a)?p&&r?n[a]=(...e)=>{const u=r(...e);return p(...e),u}:p&&(n[a]=p):a==="style"?n[a]={...p,...r}:a==="className"&&(n[a]=[p,r].filter(Boolean).join(" "))}return{...t,...n}}function _e(t){var i,n;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,p=a&&"isReactWarning"in a&&a.isReactWarning;return p?t.ref:(a=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,p=a&&"isReactWarning"in a&&a.isReactWarning,p?t.props.ref:t.props.ref||t.ref)}var de=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fe=de.reduce((t,i)=>{const n=ae(`Primitive.${i}`),a=_.forwardRef((p,r)=>{const{asChild:e,...u}=p,d=e?n:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(d,{...u,ref:r})});return a.displayName=`Primitive.${i}`,{...t,[i]:a}},{}),ve="Label",Hr=_.forwardRef((t,i)=>s.jsx(fe.label,{...t,ref:i,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=t.onMouseDown)==null||a.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Hr.displayName=ve;var ge=Hr;function be(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yr={exports:{}};/*!
|
|
30
30
|
Copyright (c) 2018 Jed Watson.
|
|
31
31
|
Licensed under the MIT License (MIT), see
|
|
32
32
|
http://jedwatson.github.io/classnames
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
Copyright (c) 2018 Jed Watson.
|
|
55
55
|
Licensed under the MIT License (MIT), see
|
|
56
56
|
http://jedwatson.github.io/classnames
|
|
57
|
-
*/var zr;function nn(){return zr||(zr=1,(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)i.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Br)),Br.exports}var un=nn();const pn=en(un),an={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},sn=pn.bind(an),Rr="purpur-icon",on="md",ln=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),cn=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=i?`<title>${i}</title>`:"";return`<svg ${ln(n)}>${a}${t}</svg>`},_n=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),J=({svg:t,allyTitle:i,className:n,size:a=on,...p})=>{const r=cn({content:_n(t.svg),title:i}),e=sn(
|
|
57
|
+
*/var zr;function nn(){return zr||(zr=1,(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)i.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Br)),Br.exports}var un=nn();const pn=en(un),an={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},sn=pn.bind(an),Rr="purpur-icon",on="md",ln=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),cn=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=i?`<title>${i}</title>`:"";return`<svg ${ln(n)}>${a}${t}</svg>`},_n=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),J=({svg:t,allyTitle:i,className:n,size:a=on,...p})=>{const r=cn({content:_n(t.svg),title:i}),e=sn(Rr,`${Rr}--${a}`,n);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...p})};J.displayName="Icon";const dn={name:"minus",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.1 12a.9.9 0 0 1 .9-.9h14a.9.9 0 1 1 0 1.8H5a.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',keywords:["minus"],category:"utility"},Yr=t=>s.jsx(J,{...t,svg:dn});Yr.displayName="IconMinus";const fn={name:"plus",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 4.1a.9.9 0 0 1 .9.9v6.1H19a.9.9 0 1 1 0 1.8h-6.1V19a.9.9 0 0 1-1.8 0v-6.1H5a.9.9 0 0 1 0-1.8h6.1V5a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/></svg>',keywords:["plus"],category:"utility"},Jr=t=>s.jsx(J,{...t,svg:fn});Jr.displayName="IconPlus";const vn={"purpur-quantity-selector-button":"_purpur-quantity-selector-button_qjlbs_1","purpur-quantity-selector-button--gap-left":"_purpur-quantity-selector-button--gap-left_qjlbs_4","purpur-quantity-selector-button--gap-right":"_purpur-quantity-selector-button--gap-right_qjlbs_7","purpur-quantity-selector-button--no-gap-right":"_purpur-quantity-selector-button--no-gap-right_qjlbs_10","purpur-quantity-selector-button--no-gap-left":"_purpur-quantity-selector-button--no-gap-left_qjlbs_13"},gn=Qr.bind(vn),F="purpur-quantity-selector-button",bn=({["data-testid"]:t,disabled:i,hasGap:n,variant:a,buttonType:p,onClick:r})=>{const e=gn(F,{[`${F}--gap-left`]:n&&p==="decrement",[`${F}--gap-right`]:n&&p==="increment",[`${F}--no-gap-left`]:!n&&p==="decrement",[`${F}--no-gap-right`]:!n&&p==="increment"});return s.jsx(Ur,{"data-testid":t,className:e,size:"sm",type:"submit",variant:a,onClick:()=>r(p),iconOnly:!0,disabled:i,tabIndex:-1,children:p==="increment"?s.jsx(Jr,{size:"xs"}):s.jsx(Yr,{size:"xs"})})},Dr=Qr.bind(Ee),hn=["attached","separated"],mn=["primary","secondary"],S="purpur-quantity-selector",Kr=m.forwardRef(({["data-testid"]:t,className:i,variant:n,buttonVariant:a,onChange:p,value:r,defaultValue:e,fullWidth:u,disabled:d,loading:l,minValue:y,maxValue:f,ariaLabelDecrement:P,ariaLabelIncrement:A,...o},b)=>{const[x,Z]=m.useState(e??0),[k,h]=m.useState(x),j=r!==void 0,$=j?r:k,z=g=>t?`${t}-${g}`:void 0,w=d||l,C=Math.max(y??0,0),R=f??Number.MAX_SAFE_INTEGER,B=$===R,N=$===C;m.useEffect(()=>{j&&Z(r)},[r,j]),m.useEffect(()=>{if(!j){const g=setTimeout(()=>{Z(k)},300);return()=>clearTimeout(g)}},[k,j,p]);const T=Dr(i,S,{[`${S}--no-gap`]:n==="attached"&&!w&&!N&&!B,[`${S}--no-gap-disabled-left`]:n==="attached"&&!w&&!B&&N,[`${S}--no-gap-disabled-right`]:n==="attached"&&!w&&!N&&B,[`${S}--no-gap-disabled`]:n==="attached"&&(w||B&&N),[`${S}--full-width`]:u,[`${S}--loading`]:l}),v=g=>{if(!/^[0-9]*$/.test(g.target.value))return;const H=+g.target.value;H<C||H>R||(j||h(H),p(H))},Xr=g=>{const D=g==="increment"?$+1:$-1;D<0||(j||h(D),p(D))},K=g=>{const D=g==="increment"&&B||g==="decrement"&&N;return s.jsx(bn,{"data-testid":z("button-"+g),variant:a,buttonType:g,hasGap:n==="separated",onClick:Xr,disabled:w||D,"aria-label":g==="increment"?A:P})},rt=s.jsxs(s.Fragment,{children:[l&&s.jsx("div",{className:Dr(`${S}__spinner`,{[`${S}__spinner--full-width`]:u,[`${S}__spinner--separated`]:!u&&n==="separated"}),children:s.jsx(Ir,{disabled:w,size:"xs","data-testid":z("spinner")},"spinner")}),K("decrement")]});return s.jsx(Gr,{value:$,type:"number",ref:b,className:T,"data-testid":t,onChange:v,beforeField:rt,afterField:K("increment"),disabled:w,min:C,max:R,role:"spinbutton","aria-valuenow":$,"aria-valuemax":R,"aria-valuemin":C,...o})});Kr.displayName="QuantitySelector";exports.QuantitySelector=Kr;exports.quantitySelectorButtonVariants=mn;exports.quantitySelectorVariants=hn;
|
|
58
58
|
//# sourceMappingURL=quantity-selector.cjs.js.map
|