@commercelayer/app-elements 2.0.2 → 2.0.4
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/{InputDateComponent-s7dfwYfa.js → InputDateComponent-8TMM47zv.js} +1 -1
- package/dist/{main-B1eK9M3H.js → main-8HkofdS_.js} +8586 -8532
- package/dist/main.js +1 -1
- package/dist/ui/atoms/Icon/icons.d.ts +1 -0
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +2 -2
- package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +1 -1
- package/dist/ui/forms/InputReadonly.d.ts +1 -1
- package/dist/ui/forms/InputSelect/HookedInputSelect.d.ts +7 -1
- package/dist/ui/forms/InputSelect/InputSelect.d.ts +4 -0
- package/dist/ui/forms/InputSelect/overrides.d.ts +3 -1
- package/dist/ui/resources/ResourceListItem/common.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { aE as s, bh as t, aF as o, aG as r, aH as n, aI as u, aJ as c, aK as i, aL as l, aM as p, bi as d, aN as b, aO as g, au as S, bj as m, bk as I, bl as k, bm as T, aP as D, ax as R, ay as y, aQ as h, aR as A, bn as C, bA as H, bB as F, bD as P, bF as f, bH as v, bL as B, bN as O, bS as L, bV as G, bY as N, c3 as w, c5 as E, c7 as V, c9 as x, cb as M, cf as W, cg as U, aS as J, aT as Y, bC as j, bE as q, bG as z, bI as Z, bK as _, bM as $, bO as K, bP as Q, bQ as X, bR as aa, bT as ea, bU as sa, bW as ta, bZ as oa, c4 as ra, c6 as na, c8 as ua, ca, cc as ia, cd as la, ce as pa, bo as da, bp as ba, bq as ga, br as Sa, aA as ma, bs as Ia, aU as ka, bt as Ta, bu as Da, aV as Ra, aW as ya, aX as ha, aY as Aa, bv as Ca, cj as Ha, ck as Fa, cn as Pa, co as fa, cp as va, cq as Ba, cr as Oa, cs as La, ct as Ga, aZ as Na, bw as wa, a_ as Ea, a$ as Va, b0 as xa, b1 as Ma, b3 as Wa, b4 as Ua, b5 as Ja, b6 as Ya, b7 as ja, bc as qa, b8 as za, bx as Za, bd as _a, be as $a, b9 as Ka, bf as Qa, ba as Xa, by as ae, aB as ee, bz as se, bg as te, bb as oe, aa as re, aD as ne, ad as ue, ae as ce, Z as ie, _ as le, a9 as pe, b_ as de, bJ as be, $ as ge, a0 as Se, a1 as me, ab as Ie, ac as ke, af as Te, cv as De, cw as Re, b$ as ye, a2 as he, a3 as Ae, a4 as Ce, a5 as He, cx as Fe, cy as Pe, cz as fe, cA as ve, cB as Be, ag as Oe, ah as Le, cC as Ge, cD as Ne, cE as we, cF as Ee, ai as Ve, aj as xe, cG as Me, cH as We, cI as Ue, am as Je, an as Ye, U as je, ak as qe, al as ze, W as Ze, c0 as _e, c1 as $e, c2 as Ke, V as Qe, Y as Xe, a6 as as, cl as es, ch as ss, a7 as ts, a8 as os, ao as rs, av as ns, aw as us, ap as cs, aq as is, bX as ls, ar as ps, as as ds, at as bs, cm as gs, cu as Ss, az as ms, aC as Is, ci as ks, b2 as Ts } from "./main-
|
|
2
|
+
import { aE as s, bh as t, aF as o, aG as r, aH as n, aI as u, aJ as c, aK as i, aL as l, aM as p, bi as d, aN as b, aO as g, au as S, bj as m, bk as I, bl as k, bm as T, aP as D, ax as R, ay as y, aQ as h, aR as A, bn as C, bA as H, bB as F, bD as P, bF as f, bH as v, bL as B, bN as O, bS as L, bV as G, bY as N, c3 as w, c5 as E, c7 as V, c9 as x, cb as M, cf as W, cg as U, aS as J, aT as Y, bC as j, bE as q, bG as z, bI as Z, bK as _, bM as $, bO as K, bP as Q, bQ as X, bR as aa, bT as ea, bU as sa, bW as ta, bZ as oa, c4 as ra, c6 as na, c8 as ua, ca, cc as ia, cd as la, ce as pa, bo as da, bp as ba, bq as ga, br as Sa, aA as ma, bs as Ia, aU as ka, bt as Ta, bu as Da, aV as Ra, aW as ya, aX as ha, aY as Aa, bv as Ca, cj as Ha, ck as Fa, cn as Pa, co as fa, cp as va, cq as Ba, cr as Oa, cs as La, ct as Ga, aZ as Na, bw as wa, a_ as Ea, a$ as Va, b0 as xa, b1 as Ma, b3 as Wa, b4 as Ua, b5 as Ja, b6 as Ya, b7 as ja, bc as qa, b8 as za, bx as Za, bd as _a, be as $a, b9 as Ka, bf as Qa, ba as Xa, by as ae, aB as ee, bz as se, bg as te, bb as oe, aa as re, aD as ne, ad as ue, ae as ce, Z as ie, _ as le, a9 as pe, b_ as de, bJ as be, $ as ge, a0 as Se, a1 as me, ab as Ie, ac as ke, af as Te, cv as De, cw as Re, b$ as ye, a2 as he, a3 as Ae, a4 as Ce, a5 as He, cx as Fe, cy as Pe, cz as fe, cA as ve, cB as Be, ag as Oe, ah as Le, cC as Ge, cD as Ne, cE as we, cF as Ee, ai as Ve, aj as xe, cG as Me, cH as We, cI as Ue, am as Je, an as Ye, U as je, ak as qe, al as ze, W as Ze, c0 as _e, c1 as $e, c2 as Ke, V as Qe, Y as Xe, a6 as as, cl as es, ch as ss, a7 as ts, a8 as os, ao as rs, av as ns, aw as us, ap as cs, aq as is, bX as ls, ar as ps, as as ds, at as bs, cm as gs, cu as Ss, az as ms, aC as Is, ci as ks, b2 as Ts } from "./main-8HkofdS_.js";
|
|
3
3
|
export {
|
|
4
4
|
s as A,
|
|
5
5
|
t as ActionButtons,
|
|
@@ -95,6 +95,7 @@ export declare const iconMapping: {
|
|
|
95
95
|
readonly userCircle: phosphor.Icon;
|
|
96
96
|
readonly userRectangle: phosphor.Icon;
|
|
97
97
|
readonly users: phosphor.Icon;
|
|
98
|
+
readonly usersThree: phosphor.Icon;
|
|
98
99
|
readonly warehouse: phosphor.Icon;
|
|
99
100
|
readonly warning: phosphor.Icon;
|
|
100
101
|
readonly warningCircle: phosphor.Icon;
|
|
@@ -298,7 +298,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
298
298
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
299
299
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
300
300
|
label: string;
|
|
301
|
-
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | "keep-space" | undefined;
|
|
301
|
+
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "usersThree" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | "keep-space" | undefined;
|
|
302
302
|
href: string;
|
|
303
303
|
target?: string | undefined;
|
|
304
304
|
delayMs?: number | undefined;
|
|
@@ -584,7 +584,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
584
584
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
585
585
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
586
586
|
label: string;
|
|
587
|
-
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | "keep-space" | undefined;
|
|
587
|
+
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "usersThree" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | "keep-space" | undefined;
|
|
588
588
|
href?: undefined;
|
|
589
589
|
delayMs?: number | undefined;
|
|
590
590
|
isLoading?: boolean | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const InputRadioGroup: import('../../atoms/SkeletonTemplate').Ske
|
|
|
27
27
|
showInput?: boolean | undefined;
|
|
28
28
|
viewMode?: "list" | "grid" | "inline" | "simple" | undefined;
|
|
29
29
|
hint?: {
|
|
30
|
-
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | undefined;
|
|
30
|
+
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "usersThree" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | undefined;
|
|
31
31
|
text: ReactNode;
|
|
32
32
|
} | undefined;
|
|
33
33
|
feedback?: Omit<import('../InputFeedback').InputFeedbackProps, "className"> | undefined;
|
|
@@ -30,7 +30,7 @@ export type InputReadonlyProps = InputWrapperBaseProps & {
|
|
|
30
30
|
export declare const InputReadonly: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
31
31
|
label?: string | undefined;
|
|
32
32
|
hint?: {
|
|
33
|
-
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | undefined;
|
|
33
|
+
icon?: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "usersThree" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle" | undefined;
|
|
34
34
|
text: import('react').ReactNode;
|
|
35
35
|
} | undefined;
|
|
36
36
|
feedback?: Omit<import('./InputFeedback').InputFeedbackProps, "className"> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputSelectProps } from './InputSelect';
|
|
1
|
+
import { InputSelectProps, PossibleSelectValue } from './InputSelect';
|
|
2
2
|
|
|
3
3
|
export interface HookedInputSelectProps extends Omit<InputSelectProps, 'onSelect' | 'defaultValue'> {
|
|
4
4
|
/**
|
|
@@ -21,6 +21,12 @@ export interface HookedInputSelectProps extends Omit<InputSelectProps, 'onSelect
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
pathToValue?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Optional callback executed when a value is selected to allow custom behavior and re-use the selected value.
|
|
26
|
+
* This does not effect the field value neither the form state that always contains the value defined by `pathToValue`.
|
|
27
|
+
* It's useful when you need to perform some action when a value is selected and accessing the `meta` key of the `InputSelectValue`
|
|
28
|
+
*/
|
|
29
|
+
onSelect?: (value: PossibleSelectValue) => void;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* `InputSelect` component ready to be used with the `react-hook-form` context.
|
|
@@ -86,6 +86,10 @@ export interface InputSelectProps extends InputWrapperBaseProps {
|
|
|
86
86
|
* Function to load async values on search
|
|
87
87
|
*/
|
|
88
88
|
loadAsyncValues?: (inputValue: string) => Promise<GroupedSelectValues | InputSelectValue[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Optional text to display at the bottom of the dropdown menu
|
|
91
|
+
*/
|
|
92
|
+
menuFooterText?: string;
|
|
89
93
|
/**
|
|
90
94
|
* Debounce time in milliseconds for async search.
|
|
91
95
|
* It only works when `loadAsyncValues` is provided
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputSelectValue } from '.';
|
|
2
|
-
import { ClearIndicatorProps, DropdownIndicatorProps, GroupBase, GroupHeadingProps, MultiValueGenericProps } from 'react-select';
|
|
2
|
+
import { ClearIndicatorProps, DropdownIndicatorProps, GroupBase, GroupHeadingProps, MenuListProps, MultiValueGenericProps } from 'react-select';
|
|
3
3
|
|
|
4
4
|
declare function DropdownIndicator(props: DropdownIndicatorProps<InputSelectValue>): JSX.Element;
|
|
5
5
|
declare function ClearIndicator(props: ClearIndicatorProps<InputSelectValue>): JSX.Element;
|
|
@@ -7,6 +7,7 @@ declare function MultiValueContainer(props: MultiValueGenericProps<MultiValueGen
|
|
|
7
7
|
declare function MultiValueLabel(props: MultiValueGenericProps<MultiValueGenericProps<InputSelectValue, boolean, GroupBase<InputSelectValue>>>): string;
|
|
8
8
|
declare function MultiValueRemove(props: any): JSX.Element;
|
|
9
9
|
declare function GroupHeading(props: GroupHeadingProps<InputSelectValue>): JSX.Element | null;
|
|
10
|
+
declare function MenuList(props: MenuListProps<InputSelectValue>): JSX.Element;
|
|
10
11
|
declare const selectComponentOverrides: {
|
|
11
12
|
DropdownIndicator: typeof DropdownIndicator;
|
|
12
13
|
IndicatorSeparator: () => null;
|
|
@@ -15,5 +16,6 @@ declare const selectComponentOverrides: {
|
|
|
15
16
|
MultiValueLabel: typeof MultiValueLabel;
|
|
16
17
|
MultiValueRemove: typeof MultiValueRemove;
|
|
17
18
|
GroupHeading: typeof GroupHeading;
|
|
19
|
+
MenuList: typeof MenuList;
|
|
18
20
|
};
|
|
19
21
|
export default selectComponentOverrides;
|
|
@@ -9,7 +9,7 @@ export declare const ListItemDescription: import('../../atoms/SkeletonTemplate')
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare const ListItemIcon: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
11
11
|
color: "none" | "black" | "gray" | "green" | "orange" | "red" | "teal" | "white" | "lightGray" | undefined;
|
|
12
|
-
icon: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle";
|
|
12
|
+
icon: "x" | "airplaneTakeoff" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bank" | "bookOpenText" | "bracketsCurly" | "buildings" | "calculator" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "clipboardText" | "clockClockwise" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsSixVertical" | "dotsThree" | "download" | "envelopeSimple" | "eye" | "eyeSlash" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globe" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "list" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "mapPin" | "megaphoneSimple" | "minus" | "minusCircle" | "package" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "storefront" | "suitcaseSimple" | "tag" | "ticket" | "trash" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "userRectangle" | "users" | "usersThree" | "warehouse" | "warning" | "warningCircle" | "webhooksLogo" | "xCircle";
|
|
13
13
|
delayMs?: number | undefined;
|
|
14
14
|
isLoading?: boolean | undefined;
|
|
15
15
|
}>;
|