@pixum/combobox 5.3.2-alpha.139 → 5.3.2-alpha.145
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/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/partials/ComboBoxSlotContainer.d.ts +29 -0
- package/lib/partials/ComboBoxSlotContainer.js +30 -0
- package/lib/partials/ComboBoxSlotContainer.js.map +1 -0
- package/lib/partials/index.d.ts +1 -0
- package/lib/partials/index.js +1 -0
- package/lib/partials/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,eAAe,QAAQ,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,eAAe,QAAQ,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import '../styles.css';
|
|
3
|
+
/**
|
|
4
|
+
* Styled container for optionsSlot content.
|
|
5
|
+
*
|
|
6
|
+
* Applies the standard ComboBox dropdown appearance — white background,
|
|
7
|
+
* border, border-radius, box-shadow and top margin — so consumers don't
|
|
8
|
+
* have to replicate it in every optionsSlot implementation.
|
|
9
|
+
*
|
|
10
|
+
* Use it as the outermost wrapper of your optionsSlot:
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import ComboBox, { ComboBoxSlotContainer } from '@pixum/combobox'
|
|
14
|
+
*
|
|
15
|
+
* <ComboBox
|
|
16
|
+
* optionsSlot={
|
|
17
|
+
* <ComboBoxSlotContainer>
|
|
18
|
+
* <MyCustomOptionsList />
|
|
19
|
+
* </ComboBoxSlotContainer>
|
|
20
|
+
* }
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param children - The slot content to render inside the container
|
|
25
|
+
* @returns A styled wrapper div matching the ComboBox dropdown look
|
|
26
|
+
*/
|
|
27
|
+
export declare function ComboBoxSlotContainer({ children }: {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import '../styles.css';
|
|
3
|
+
/**
|
|
4
|
+
* Styled container for optionsSlot content.
|
|
5
|
+
*
|
|
6
|
+
* Applies the standard ComboBox dropdown appearance — white background,
|
|
7
|
+
* border, border-radius, box-shadow and top margin — so consumers don't
|
|
8
|
+
* have to replicate it in every optionsSlot implementation.
|
|
9
|
+
*
|
|
10
|
+
* Use it as the outermost wrapper of your optionsSlot:
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import ComboBox, { ComboBoxSlotContainer } from '@pixum/combobox'
|
|
14
|
+
*
|
|
15
|
+
* <ComboBox
|
|
16
|
+
* optionsSlot={
|
|
17
|
+
* <ComboBoxSlotContainer>
|
|
18
|
+
* <MyCustomOptionsList />
|
|
19
|
+
* </ComboBoxSlotContainer>
|
|
20
|
+
* }
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param children - The slot content to render inside the container
|
|
25
|
+
* @returns A styled wrapper div matching the ComboBox dropdown look
|
|
26
|
+
*/
|
|
27
|
+
export function ComboBoxSlotContainer({ children }) {
|
|
28
|
+
return _jsx("div", { className: "combobox__slot-container", children: children });
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=ComboBoxSlotContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxSlotContainer.js","sourceRoot":"","sources":["../../src/partials/ComboBoxSlotContainer.tsx"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAA;AAEtB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,qBAAqB,CAAC,EAAE,QAAQ,EAA2B;IACzE,OAAO,cAAK,SAAS,EAAC,0BAA0B,YAAE,QAAQ,GAAO,CAAA;AACnE,CAAC"}
|
package/lib/partials/index.d.ts
CHANGED
package/lib/partials/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/partials/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/partials/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA"}
|
package/lib/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.combobox{position:relative;width:100%}.combobox .combobox--headline[class*=text--]+*{margin-top:var(--spacing)}.combobox .combobox--header,.combobox .combobox__options,.combobox__bottom-sheet .combobox__options{position:relative}.combobox__bottom-sheet .combobox--header{align-items:flex-start;height:auto;margin:var(--spacing-5) auto var(--spacing-2);padding:0 var(--spacing-2);width:100%}.combobox .combobox__options,.combobox__bottom-sheet .combobox__options{
|
|
1
|
+
.combobox{position:relative;width:100%}.combobox .combobox--headline[class*=text--]+*{margin-top:var(--spacing)}.combobox .combobox--header,.combobox .combobox__options,.combobox__bottom-sheet .combobox__options{position:relative}.combobox__bottom-sheet .combobox--header{align-items:flex-start;height:auto;margin:var(--spacing-5) auto var(--spacing-2);padding:0 var(--spacing-2);width:100%}.combobox .combobox__options,.combobox__bottom-sheet .combobox__options{display:flex;flex-direction:column;max-height:none;overflow:scroll;width:100%}.combobox .combobox__option-wrapper,.combobox__bottom-sheet .combobox__option-wrapper{touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer;-webkit-user-select:none;user-select:none}.combobox .combobox__options .combobox__sticky-header,.combobox__bottom-sheet .combobox__options .combobox__sticky-header{background-color:var(--color-surface);border-bottom:1px solid var(--color-dim);padding:var(--spacing-1_25) var(--spacing-2);position:-webkit-sticky;position:sticky;top:0}.combobox__options .text--caption{color:var(--color-on-secondary)}.combobox .combobox__options .item-header,.combobox__bottom-sheet .combobox__options .item-header{display:flex;justify-content:space-between}.combobox .combobox__options .combobox__option-details,.combobox__bottom-sheet .combobox__options .combobox__option-details{background-color:var(--color-surface);bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);position:-webkit-sticky;position:sticky}.combobox .combobox--no-results-text,.combobox__bottom-sheet .combobox--no-results-text{padding:var(--spacing-2) var(--spacing);text-align:center}@media screen and (min-width:960px){.combobox .combobox__options{border-radius:12px;margin-top:var(--spacing);max-height:330px;overflow:auto;position:absolute}}.combobox__slot-container{background-color:var(--color-surface,#fff);border:1px solid var(--color-dim,#e0e0e0);border-radius:12px;box-shadow:0 4px 12px #00000014;margin-top:var(--spacing,8px)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixum/combobox",
|
|
3
|
-
"version": "5.3.2-alpha.
|
|
3
|
+
"version": "5.3.2-alpha.145+1d6d8fabc",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"sideEffects": [
|
|
19
19
|
"*.css"
|
|
20
20
|
],
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "1d6d8fabcca4e4b4813454da2281904a9108d18c"
|
|
22
22
|
}
|