@purpurds/listbox 6.7.2 → 6.8.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/dist/LICENSE.txt +2 -2
- package/dist/listbox.cjs.js +4 -4
- package/dist/listbox.es.js +24 -24
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/src/listbox.module.scss +1 -1
package/dist/LICENSE.txt
CHANGED
|
@@ -33,13 +33,13 @@ SOFTWARE.
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
35
|
Name: @purpurds/icon
|
|
36
|
-
Version: 6.7.
|
|
36
|
+
Version: 6.7.2
|
|
37
37
|
License: AGPL-3.0-only
|
|
38
38
|
Private: false
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
42
|
Name: @purpurds/paragraph
|
|
43
|
-
Version: 6.7.
|
|
43
|
+
Version: 6.7.2
|
|
44
44
|
License: AGPL-3.0-only
|
|
45
45
|
Private: false
|
package/dist/listbox.cjs.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("react");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("react");function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var f;function L(){return f||(f=1,function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var p=arguments[t];p&&(r=n(r,u.call(this,p)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var p in r)i.call(r,p)&&r[p]&&(t=n(t,this&&this[p]||p));return t}function n(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(_)),_.exports}var R=L();const j=
|
|
5
|
+
*/var f;function L(){return f||(f=1,function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var p=arguments[t];p&&(r=n(r,u.call(this,p)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var p in r)i.call(r,p)&&r[p]&&(t=n(t,this&&this[p]||p));return t}function n(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(_)),_.exports}var R=L();const j=q(R),N={"purpur-listbox":"_purpur-listbox_6c8yl_1","purpur-listbox-item":"_purpur-listbox-item_6c8yl_15","purpur-listbox-item--hovered":"_purpur-listbox-item--hovered_6c8yl_29","purpur-listbox-item--highlighted":"_purpur-listbox-item--highlighted_6c8yl_37","purpur-listbox-item--noninteractive":"_purpur-listbox-item--noninteractive_6c8yl_41","purpur-listbox-item--disabled":"_purpur-listbox-item--disabled_6c8yl_44","purpur-listbox-item__icon":"_purpur-listbox-item__icon_6c8yl_51"};function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v={exports:{}};/*!
|
|
6
6
|
Copyright (c) 2018 Jed Watson.
|
|
7
7
|
Licensed under the MIT License (MIT), see
|
|
8
8
|
http://jedwatson.github.io/classnames
|
|
9
|
-
*/var b;function B(){return b||(b=1,function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var p=arguments[t];p&&(r=n(r,u.call(this,p)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var p in r)i.call(r,p)&&r[p]&&(t=n(t,this&&this[p]||p));return t}function n(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(v)),v.exports}var C=B();const M=I(C),k={"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"},H=M.bind(k),x="purpur-icon",E="md",T=e=>e.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),z=({content:e="",title:i}={})=>{const a=[{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"}],u=i?`<title>${i}</title>`:"";return`<svg ${T(a)}>${u}${e}</svg>`},G=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),S=({["data-testid"]:e,svg:i,allyTitle:a,className:u,size:n=E,...r})=>{const t=z({content:G(i.svg),title:a}),p=H(u,x,`${x}--${n}`);return s.jsx("span",{"aria-label":a,className:p,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};S.displayName="Icon";const V={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},
|
|
9
|
+
*/var b;function B(){return b||(b=1,function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var p=arguments[t];p&&(r=n(r,u.call(this,p)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var p in r)i.call(r,p)&&r[p]&&(t=n(t,this&&this[p]||p));return t}function n(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(v)),v.exports}var C=B();const M=I(C),k={"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"},H=M.bind(k),x="purpur-icon",E="md",T=e=>e.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),z=({content:e="",title:i}={})=>{const a=[{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"}],u=i?`<title>${i}</title>`:"";return`<svg ${T(a)}>${u}${e}</svg>`},G=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),S=({["data-testid"]:e,svg:i,allyTitle:a,className:u,size:n=E,...r})=>{const t=z({content:G(i.svg),title:a}),p=H(u,x,`${x}--${n}`);return s.jsx("span",{"aria-label":a,className:p,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};S.displayName="Icon";const V={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},O=e=>s.jsx(S,{...e,svg:V});O.displayName="IconCheckmark";function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y={exports:{}};/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
|
-
*/var $;function F(){return $||($=1,function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var p=arguments[t];p&&(r=n(r,u(p)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var p in r)i.call(r,p)&&r[p]&&(t=n(t,p));return t}function n(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(y)),y.exports}var Z=F();const J=D(Z),l={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},K={PARAGRAPH100:"paragraph-100"},c="purpur-paragraph",
|
|
13
|
+
*/var $;function F(){return $||($=1,function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var p=arguments[t];p&&(r=n(r,u(p)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var p in r)i.call(r,p)&&r[p]&&(t=n(t,p));return t}function n(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(y)),y.exports}var Z=F();const J=D(Z),l={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},K={PARAGRAPH100:"paragraph-100"},c="purpur-paragraph",A=({["data-testid"]:e,children:i,className:a,disabled:u,enableHyphenation:n=!1,negative:r=!1,variant:t=K.PARAGRAPH100,...p})=>{const h=J([a,l[c],l[`${c}--${t}`],{[l[`${c}--hyphens`]]:n,[l[`${c}--disabled`]]:u,[l[`${c}--negative`]]:r}]);return s.jsx("p",{...p,className:h,"data-testid":e,children:i})};A.displayName="Paragraph";const w=j.bind(N),o="purpur-listbox",g=d.forwardRef((e,i)=>{const{disabled:a,highlighted:u,hovered:n,selected:r,children:t,noninteractive:p,...h}=e,P=w(`${o}-item`,h.className,{[`${o}-item--highlighted`]:u,[`${o}-item--selected`]:r,[`${o}-item--hovered`]:n,[`${o}-item--disabled`]:a,[`${o}-item--noninteractive`]:p});return s.jsxs("li",{...h,ref:i,className:P,"aria-selected":!!r,role:"option","aria-disabled":!!a,children:[typeof t=="string"?s.jsx(A,{children:t}):t,r&&s.jsx(O,{size:"xs",className:w(`${o}-item__icon`)})]})}),Q=e=>d.isValidElement(e)&&(e==null?void 0:e.type)===g;g.displayName="ListBoxItem";const U=j.bind(N),W="purpur-listbox",m=d.forwardRef(({children:e,...i},a)=>s.jsx("ul",{...i,ref:a,className:U(W,i.className),role:"listbox",children:d.Children.toArray(e).filter(Q)}));m.Item=g;m.displayName="ListBox";exports.Listbox=m;
|
|
14
14
|
//# sourceMappingURL=listbox.cjs.js.map
|
package/dist/listbox.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as q } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as $, isValidElement as I, Children as L } from "react";
|
|
3
3
|
function B(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -44,13 +44,13 @@ function C() {
|
|
|
44
44
|
}
|
|
45
45
|
var R = C();
|
|
46
46
|
const w = /* @__PURE__ */ B(R), N = {
|
|
47
|
-
"purpur-listbox": "_purpur-
|
|
48
|
-
"purpur-listbox-item": "_purpur-listbox-
|
|
49
|
-
"purpur-listbox-item--hovered": "_purpur-listbox-item--
|
|
50
|
-
"purpur-listbox-item--highlighted": "_purpur-listbox-item--
|
|
51
|
-
"purpur-listbox-item--noninteractive": "_purpur-listbox-item--
|
|
52
|
-
"purpur-listbox-item--disabled": "_purpur-listbox-item--
|
|
53
|
-
"purpur-listbox-item__icon": "_purpur-listbox-
|
|
47
|
+
"purpur-listbox": "_purpur-listbox_6c8yl_1",
|
|
48
|
+
"purpur-listbox-item": "_purpur-listbox-item_6c8yl_15",
|
|
49
|
+
"purpur-listbox-item--hovered": "_purpur-listbox-item--hovered_6c8yl_29",
|
|
50
|
+
"purpur-listbox-item--highlighted": "_purpur-listbox-item--highlighted_6c8yl_37",
|
|
51
|
+
"purpur-listbox-item--noninteractive": "_purpur-listbox-item--noninteractive_6c8yl_41",
|
|
52
|
+
"purpur-listbox-item--disabled": "_purpur-listbox-item--disabled_6c8yl_44",
|
|
53
|
+
"purpur-listbox-item__icon": "_purpur-listbox-item__icon_6c8yl_51"
|
|
54
54
|
};
|
|
55
55
|
function k(e) {
|
|
56
56
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -140,8 +140,8 @@ const Z = {
|
|
|
140
140
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
|
|
141
141
|
keywords: ["checkmark"],
|
|
142
142
|
category: "utility"
|
|
143
|
-
},
|
|
144
|
-
|
|
143
|
+
}, j = (e) => /* @__PURE__ */ s(S, { ...e, svg: Z });
|
|
144
|
+
j.displayName = "IconCheckmark";
|
|
145
145
|
function J(e) {
|
|
146
146
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
147
147
|
}
|
|
@@ -151,9 +151,9 @@ var b = { exports: {} };
|
|
|
151
151
|
Licensed under the MIT License (MIT), see
|
|
152
152
|
http://jedwatson.github.io/classnames
|
|
153
153
|
*/
|
|
154
|
-
var
|
|
154
|
+
var y;
|
|
155
155
|
function K() {
|
|
156
|
-
return
|
|
156
|
+
return y || (y = 1, function(e) {
|
|
157
157
|
(function() {
|
|
158
158
|
var i = {}.hasOwnProperty;
|
|
159
159
|
function a() {
|
|
@@ -202,7 +202,7 @@ const U = /* @__PURE__ */ J(Q), l = {
|
|
|
202
202
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
203
203
|
}, W = {
|
|
204
204
|
PARAGRAPH100: "paragraph-100"
|
|
205
|
-
}, c = "purpur-paragraph",
|
|
205
|
+
}, c = "purpur-paragraph", A = ({
|
|
206
206
|
["data-testid"]: e,
|
|
207
207
|
children: i,
|
|
208
208
|
className: a,
|
|
@@ -224,35 +224,35 @@ const U = /* @__PURE__ */ J(Q), l = {
|
|
|
224
224
|
]);
|
|
225
225
|
return /* @__PURE__ */ s("p", { ...p, className: h, "data-testid": e, children: i });
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
const
|
|
227
|
+
A.displayName = "Paragraph";
|
|
228
|
+
const x = w.bind(N), o = "purpur-listbox", _ = $(
|
|
229
229
|
(e, i) => {
|
|
230
|
-
const { disabled: a, highlighted: u, hovered: n, selected: r, children: t, noninteractive: p, ...h } = e,
|
|
230
|
+
const { disabled: a, highlighted: u, hovered: n, selected: r, children: t, noninteractive: p, ...h } = e, P = x(`${o}-item`, h.className, {
|
|
231
231
|
[`${o}-item--highlighted`]: u,
|
|
232
232
|
[`${o}-item--selected`]: r,
|
|
233
233
|
[`${o}-item--hovered`]: n,
|
|
234
234
|
[`${o}-item--disabled`]: a,
|
|
235
235
|
[`${o}-item--noninteractive`]: p
|
|
236
236
|
});
|
|
237
|
-
return /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ q(
|
|
238
238
|
"li",
|
|
239
239
|
{
|
|
240
240
|
...h,
|
|
241
241
|
ref: i,
|
|
242
|
-
className:
|
|
242
|
+
className: P,
|
|
243
243
|
"aria-selected": !!r,
|
|
244
244
|
role: "option",
|
|
245
245
|
"aria-disabled": !!a,
|
|
246
246
|
children: [
|
|
247
|
-
typeof t == "string" ? /* @__PURE__ */ s(
|
|
248
|
-
r && /* @__PURE__ */ s(
|
|
247
|
+
typeof t == "string" ? /* @__PURE__ */ s(A, { children: t }) : t,
|
|
248
|
+
r && /* @__PURE__ */ s(j, { size: "xs", className: x(`${o}-item__icon`) })
|
|
249
249
|
]
|
|
250
250
|
}
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
253
|
), X = (e) => I(e) && (e == null ? void 0 : e.type) === _;
|
|
254
254
|
_.displayName = "ListBoxItem";
|
|
255
|
-
const Y = w.bind(N), rr = "purpur-listbox",
|
|
255
|
+
const Y = w.bind(N), rr = "purpur-listbox", O = $(
|
|
256
256
|
({ children: e, ...i }, a) => /* @__PURE__ */ s(
|
|
257
257
|
"ul",
|
|
258
258
|
{
|
|
@@ -264,9 +264,9 @@ const Y = w.bind(N), rr = "purpur-listbox", A = $(
|
|
|
264
264
|
}
|
|
265
265
|
)
|
|
266
266
|
);
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
O.Item = _;
|
|
268
|
+
O.displayName = "ListBox";
|
|
269
269
|
export {
|
|
270
|
-
|
|
270
|
+
O as Listbox
|
|
271
271
|
};
|
|
272
272
|
//# sourceMappingURL=listbox.es.js.map
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._purpur-
|
|
1
|
+
._purpur-listbox_6c8yl_1{padding:0;margin:0;list-style-type:none;border:var(--purpur-border-width-xs) solid var(--purpur-color-border-interactive-subtle);border-radius:var(--purpur-border-radius-sm);color:var(--purpur-color-brand-off-black);width:100%;background-color:var(--purpur-color-background-primary);max-height:calc(2 * var(--purpur-spacing-1200));overflow-y:scroll;box-sizing:border-box}._purpur-listbox-item_6c8yl_15{list-style:none;padding:var(--purpur-spacing-150);border:var(--purpur-border-width-xs) solid transparent;cursor:pointer;max-width:100%;word-break:break-word;transition:background var(--purpur-motion-duration-150) ease;display:flex;justify-content:space-between;align-items:center;gap:var(--purpur-spacing-100)}@media (hover: hover) and (pointer: fine){._purpur-listbox-item--hovered_6c8yl_29{background:var(--purpur-color-background-interactive-transparent-hover)}}._purpur-listbox-item--highlighted_6c8yl_37{outline:var(--purpur-border-width-sm) solid var(--purpur-color-border-interactive-focus);outline-offset:calc(-1 * var(--purpur-border-width-sm))}._purpur-listbox-item_6c8yl_15:active:not(._purpur-listbox-item--noninteractive_6c8yl_41){background:var(--purpur-color-background-interactive-transparent-active)}._purpur-listbox-item--disabled_6c8yl_44{color:var(--purpur-color-text-weak);cursor:default}._purpur-listbox-item--noninteractive_6c8yl_41{cursor:default}._purpur-listbox-item__icon_6c8yl_51{color:var(--purpur-color-text-interactive-selected)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/listbox",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/listbox.cjs.js",
|
|
6
6
|
"types": "./dist/listbox.d.ts",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"source": "src/listbox.tsx",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"classnames": "~2.5.0",
|
|
19
|
-
"@purpurds/
|
|
20
|
-
"@purpurds/
|
|
21
|
-
"@purpurds/
|
|
19
|
+
"@purpurds/icon": "6.8.0",
|
|
20
|
+
"@purpurds/paragraph": "6.8.0",
|
|
21
|
+
"@purpurds/tokens": "6.8.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@rushstack/eslint-patch": "~1.10.0",
|
package/src/listbox.module.scss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
border-radius: var(--purpur-border-radius-sm);
|
|
8
8
|
color: var(--purpur-color-brand-off-black);
|
|
9
9
|
width: 100%;
|
|
10
|
-
background-color: var(--purpur-color-
|
|
10
|
+
background-color: var(--purpur-color-background-primary);
|
|
11
11
|
max-height: calc(2 * var(--purpur-spacing-1200));
|
|
12
12
|
overflow-y: scroll;
|
|
13
13
|
box-sizing: border-box;
|