nitro-web 0.2.15 → 0.2.17
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.
|
@@ -267,6 +267,10 @@ function SelectBase<IsMulti extends boolean = false>({
|
|
|
267
267
|
outline: undefined,
|
|
268
268
|
transition: 'none',
|
|
269
269
|
}),
|
|
270
|
+
input: (base) => ({
|
|
271
|
+
...base,
|
|
272
|
+
visibility: 'inherit', // RS hardcodes to visblr, inherit visibility from ancestor
|
|
273
|
+
}),
|
|
270
274
|
}}
|
|
271
275
|
// menuIsOpen={true}
|
|
272
276
|
// isSearchable={false}
|
|
@@ -537,12 +537,12 @@ export function Styleguide({ className, elements, children, currencies, groups }
|
|
|
537
537
|
/>
|
|
538
538
|
</div>
|
|
539
539
|
<div>
|
|
540
|
-
<label for="combobox">JSX label + custom search</label>
|
|
540
|
+
<label for="combobox">JSX label + custom search matching</label>
|
|
541
541
|
<Select
|
|
542
542
|
name="jsxlabel"
|
|
543
543
|
state={state}
|
|
544
544
|
onChange={(e) => onChange(e, setState)}
|
|
545
|
-
menuIsOpen={true}
|
|
545
|
+
// menuIsOpen={true}
|
|
546
546
|
options={useMemo(() => [
|
|
547
547
|
{ value: '11', label: <div class="inline-block bg-blue-300">Blue</div>, labelSearch: 'BL - blue', noTruncate: true },
|
|
548
548
|
{ value: '22', label: <div class="inline-block bg-green-300">Green</div>, labelSearch: 'GR - green', noTruncate: true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"repository": "github:boycce/nitro-web",
|
|
5
5
|
"homepage": "https://boycce.github.io/nitro-web/",
|
|
6
6
|
"description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
|
package/util.js
CHANGED
|
@@ -212,7 +212,7 @@ export function capitalise (str) {
|
|
|
212
212
|
* @returns {string}
|
|
213
213
|
*/
|
|
214
214
|
export function currency (cents, options) {
|
|
215
|
-
const { currency, decimals, decimalsMinimum, prefix, suffix } = options || { currency: 'usd' }
|
|
215
|
+
const { currency='usd', decimals, decimalsMinimum, prefix, suffix } = options || { currency: 'usd' }
|
|
216
216
|
const currencyObject = currencies[/**@type {keyof typeof currencies}*/(currency)]
|
|
217
217
|
|
|
218
218
|
if (currency && !currencyObject) {
|