@salutejs/plasma-new-hope 0.186.0-canary.1542.11732695647.0 → 0.186.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Badge/Badge.css +3 -3
- package/cjs/components/Badge/Badge.js +10 -3
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Badge/Badge.styles.js +5 -5
- package/cjs/components/Badge/Badge.styles.js.map +1 -1
- package/cjs/components/Badge/Badge.styles_hhbwyi.css +4 -0
- package/cjs/components/Badge/Badge.tokens.js +2 -1
- package/cjs/components/Badge/Badge.tokens.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +3 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +1 -7
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/{es/components/Combobox/ComboboxNew/Combobox.styles_15nwy93.css → cjs/components/Combobox/ComboboxNew/Combobox.styles_18a8p75.css} +0 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +3 -4
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +3 -4
- package/cjs/components/Tabs/tokens.js +2 -1
- package/cjs/components/Tabs/tokens.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +10 -3
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +5 -0
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/{base_4zingj.css → base_j8lg9u.css} +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +10 -3
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +5 -0
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_fueiq8.css → base_12fk3xi.css} +1 -1
- package/cjs/index.css +18 -19
- package/cjs/index.js +0 -4
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Badge/Badge.js +15 -3
- package/emotion/cjs/components/Badge/Badge.styles.js +4 -13
- package/emotion/cjs/components/Badge/Badge.tokens.js +2 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +10 -15
- package/emotion/cjs/components/Combobox/ComboboxNew/index.js +1 -15
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
- package/emotion/cjs/components/Combobox/index.js +0 -12
- package/emotion/cjs/components/Tabs/tokens.js +2 -1
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -3
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +12 -12
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -3
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +12 -12
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +1 -4
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -1
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.js +1 -4
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +5 -5
- package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/emotion/es/components/Badge/Badge.js +16 -3
- package/emotion/es/components/Badge/Badge.styles.js +5 -14
- package/emotion/es/components/Badge/Badge.tokens.js +2 -1
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +9 -14
- package/emotion/es/components/Combobox/ComboboxNew/index.js +1 -3
- package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
- package/emotion/es/components/Combobox/index.js +1 -1
- package/emotion/es/components/Tabs/tokens.js +2 -1
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +16 -3
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +13 -13
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +16 -3
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +13 -13
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -5
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -1
- package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.js +2 -5
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +5 -5
- package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/es/components/Badge/Badge.css +3 -3
- package/es/components/Badge/Badge.js +11 -4
- package/es/components/Badge/Badge.js.map +1 -1
- package/es/components/Badge/Badge.styles.js +5 -5
- package/es/components/Badge/Badge.styles.js.map +1 -1
- package/es/components/Badge/Badge.styles_hhbwyi.css +4 -0
- package/es/components/Badge/Badge.tokens.js +2 -1
- package/es/components/Badge/Badge.tokens.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.css +3 -4
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -7
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/{cjs/components/Combobox/ComboboxNew/Combobox.styles_15nwy93.css → es/components/Combobox/ComboboxNew/Combobox.styles_18a8p75.css} +0 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +3 -4
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +3 -4
- package/es/components/Tabs/tokens.js +2 -1
- package/es/components/Tabs/tokens.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +11 -4
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +5 -0
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/{base_4zingj.css → base_j8lg9u.css} +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +11 -4
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +5 -0
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_fueiq8.css → base_12fk3xi.css} +1 -1
- package/es/index.css +18 -19
- package/es/index.js +0 -2
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Badge/Badge.js +15 -3
- package/styled-components/cjs/components/Badge/Badge.styles.js +2 -2
- package/styled-components/cjs/components/Badge/Badge.tokens.js +2 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -6
- package/styled-components/cjs/components/Combobox/ComboboxNew/index.js +1 -15
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
- package/styled-components/cjs/components/Combobox/index.js +0 -12
- package/styled-components/cjs/components/Tabs/tokens.js +2 -1
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -3
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +8 -8
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -3
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +9 -9
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +1 -4
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.js +1 -4
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +5 -5
- package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/styled-components/es/components/Badge/Badge.js +16 -3
- package/styled-components/es/components/Badge/Badge.styles.js +3 -3
- package/styled-components/es/components/Badge/Badge.tokens.js +2 -1
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +1 -5
- package/styled-components/es/components/Combobox/ComboboxNew/index.js +1 -3
- package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
- package/styled-components/es/components/Combobox/index.js +1 -1
- package/styled-components/es/components/Tabs/tokens.js +2 -1
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +16 -3
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +9 -9
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +16 -3
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +10 -10
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -5
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -1
- package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.js +2 -5
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +5 -5
- package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/types/components/Badge/Badge.d.ts.map +1 -1
- package/types/components/Badge/Badge.styles.d.ts +1 -1
- package/types/components/Badge/Badge.styles.d.ts.map +1 -1
- package/types/components/Badge/Badge.tokens.d.ts +1 -0
- package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
- package/types/components/Badge/Badge.types.d.ts +6 -1
- package/types/components/Badge/Badge.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts +0 -1
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +0 -22
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/index.d.ts +0 -2
- package/types/components/Combobox/ComboboxNew/index.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/index.d.ts +0 -1
- package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
- package/types/components/Combobox/index.d.ts +1 -1
- package/types/components/Combobox/index.d.ts.map +1 -1
- package/types/components/Tabs/TabItem.types.d.ts +6 -1
- package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
- package/types/components/Tabs/tokens.d.ts +1 -0
- package/types/components/Tabs/tokens.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +6 -0
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +0 -24
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.d.ts +3 -0
- package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +0 -24
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
- package/cjs/components/Badge/Badge.styles_8pi3br.css +0 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -25
- package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js.map +0 -1
- package/cjs/components/Combobox/ComboboxNew/utils/getForm.css +0 -39
- package/cjs/components/Combobox/ComboboxNew/utils/getForm.js +0 -90
- package/cjs/components/Combobox/ComboboxNew/utils/getForm.js.map +0 -1
- package/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -55
- package/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js.map +0 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +0 -5
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +0 -5
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -26
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/getForm.js +0 -99
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -53
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -17
- package/emotion/es/components/Combobox/ComboboxNew/utils/getForm.js +0 -90
- package/emotion/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -47
- package/es/components/Badge/Badge.styles_8pi3br.css +0 -4
- package/es/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -21
- package/es/components/Combobox/ComboboxNew/Combobox.boundler.js.map +0 -1
- package/es/components/Combobox/ComboboxNew/utils/getForm.css +0 -39
- package/es/components/Combobox/ComboboxNew/utils/getForm.js +0 -86
- package/es/components/Combobox/ComboboxNew/utils/getForm.js.map +0 -1
- package/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -50
- package/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js.map +0 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +0 -5
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +0 -5
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -26
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getForm.js +0 -99
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -53
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -17
- package/styled-components/es/components/Combobox/ComboboxNew/utils/getForm.js +0 -90
- package/styled-components/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -47
- package/types/components/Combobox/ComboboxNew/Combobox.boundler.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/Combobox.boundler.d.ts.map +0 -1
- package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts +0 -18
- package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts.map +0 -1
- package/types/components/Combobox/ComboboxNew/utils/syntheticEvent.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/utils/syntheticEvent.d.ts.map +0 -1
@@ -1,86 +0,0 @@
|
|
1
|
-
import { extends as _extends, objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
2
|
-
import React, { forwardRef, useState, useRef, useEffect } from 'react';
|
3
|
-
import { SelectHidden } from '../Combobox.styles.js';
|
4
|
-
import { createEvent } from './syntheticEvent.js';
|
5
|
-
import { mergeRefs } from '../../../../utils/setRefList.js';
|
6
|
-
|
7
|
-
var _excluded = ["onChange", "name", "defaultValue", "component"],
|
8
|
-
_excluded2 = ["onChange", "name", "defaultValue", "component"];
|
9
|
-
var SingleForm = /*#__PURE__*/forwardRef(function (args, ref) {
|
10
|
-
var onChange = args.onChange,
|
11
|
-
name = args.name,
|
12
|
-
defaultValue = args.defaultValue,
|
13
|
-
Component = args.component,
|
14
|
-
rest = _objectWithoutProperties(args, _excluded);
|
15
|
-
var _useState = useState(String(defaultValue)),
|
16
|
-
_useState2 = _slicedToArray(_useState, 2),
|
17
|
-
value = _useState2[0],
|
18
|
-
setValue = _useState2[1];
|
19
|
-
var selectRef = useRef(null);
|
20
|
-
var handleChange = function handleChange(value) {
|
21
|
-
setValue(value);
|
22
|
-
};
|
23
|
-
useEffect(function () {
|
24
|
-
var event = createEvent(selectRef);
|
25
|
-
onChange && onChange(event);
|
26
|
-
}, [value]);
|
27
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
28
|
-
ref: mergeRefs(selectRef, ref),
|
29
|
-
value: value,
|
30
|
-
name: name,
|
31
|
-
hidden: true
|
32
|
-
}, /*#__PURE__*/React.createElement("option", {
|
33
|
-
value: value
|
34
|
-
}, value)), /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
35
|
-
value: value,
|
36
|
-
onChange: handleChange
|
37
|
-
})));
|
38
|
-
});
|
39
|
-
var MultipleForm = /*#__PURE__*/forwardRef(function (args, ref) {
|
40
|
-
var onChange = args.onChange,
|
41
|
-
name = args.name,
|
42
|
-
defaultValue = args.defaultValue,
|
43
|
-
Component = args.component,
|
44
|
-
rest = _objectWithoutProperties(args, _excluded2);
|
45
|
-
var _useState3 = useState(defaultValue && Array.isArray(defaultValue) ? defaultValue : []),
|
46
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
47
|
-
values = _useState4[0],
|
48
|
-
setValues = _useState4[1];
|
49
|
-
var selectRef = useRef(null);
|
50
|
-
var handleChange = function handleChange(value) {
|
51
|
-
setValues(value);
|
52
|
-
};
|
53
|
-
useEffect(function () {
|
54
|
-
var event = createEvent(selectRef);
|
55
|
-
onChange && onChange(event);
|
56
|
-
}, [values]);
|
57
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
58
|
-
ref: mergeRefs(selectRef, ref),
|
59
|
-
value: values,
|
60
|
-
name: name,
|
61
|
-
multiple: true,
|
62
|
-
hidden: true
|
63
|
-
}, values.map(function (value) {
|
64
|
-
return /*#__PURE__*/React.createElement("option", {
|
65
|
-
key: value,
|
66
|
-
value: value
|
67
|
-
}, value);
|
68
|
-
})), /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
69
|
-
value: values,
|
70
|
-
onChange: handleChange
|
71
|
-
})));
|
72
|
-
});
|
73
|
-
var getFormComponentGenerator = function getFormComponentGenerator(Component) {
|
74
|
-
return /*#__PURE__*/forwardRef(function (args, ref) {
|
75
|
-
return args.multiple ? /*#__PURE__*/React.createElement(MultipleForm, _extends({}, args, {
|
76
|
-
ref: ref,
|
77
|
-
component: Component
|
78
|
-
})) : /*#__PURE__*/React.createElement(SingleForm, _extends({}, args, {
|
79
|
-
ref: ref,
|
80
|
-
component: Component
|
81
|
-
}));
|
82
|
-
});
|
83
|
-
};
|
84
|
-
|
85
|
-
export { getFormComponentGenerator };
|
86
|
-
//# sourceMappingURL=getForm.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getForm.js","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getForm.tsx"],"sourcesContent":["import React, { ComponentType, forwardRef, useEffect, useRef, useState } from 'react';\n\nimport { ComboboxProps, ComboboxFormProps } from '../Combobox.types';\nimport { mergeRefs } from '../../../../utils';\nimport { SelectHidden } from '../Combobox.styles';\n\nimport { createEvent } from './syntheticEvent';\n\ntype ComboboxWithComponent = ComboboxFormProps & {\n component: ComponentType<ComboboxProps>;\n};\n\nconst SingleForm = forwardRef<HTMLSelectElement, ComboboxWithComponent>((args, ref) => {\n const { onChange, name, defaultValue, component: Component, ...rest } = args;\n const [value, setValue] = useState<string | undefined>(String(defaultValue));\n const selectRef = useRef<HTMLSelectElement | null>(null);\n\n const handleChange = (value: string) => {\n setValue(value);\n };\n\n useEffect(() => {\n const event = createEvent(selectRef);\n onChange && onChange(event);\n }, [value]);\n\n return (\n <>\n <SelectHidden ref={mergeRefs(selectRef, ref)} value={value} name={name} hidden>\n <option value={value}>{value}</option>\n </SelectHidden>\n <Component {...(rest as any)} value={value} onChange={handleChange} />\n </>\n );\n});\n\nconst MultipleForm = forwardRef<HTMLSelectElement, ComboboxWithComponent>((args, ref) => {\n const { onChange, name, defaultValue, component: Component, ...rest } = args;\n const [values, setValues] = useState<string[]>(defaultValue && Array.isArray(defaultValue) ? defaultValue : []);\n const selectRef = useRef<HTMLSelectElement | null>(null);\n\n const handleChange = (value: string[]) => {\n setValues(value);\n };\n\n useEffect(() => {\n const event = createEvent(selectRef);\n onChange && onChange(event);\n }, [values]);\n\n return (\n <>\n <SelectHidden ref={mergeRefs(selectRef, ref)} value={values} name={name} multiple hidden>\n {values.map((value) => (\n <option key={value} value={value}>\n {value}\n </option>\n ))}\n </SelectHidden>\n <Component {...(rest as any)} value={values} onChange={handleChange} />\n </>\n );\n});\n\nexport const getFormComponentGenerator = (Component: ComponentType<ComboboxProps>) => {\n return forwardRef<HTMLSelectElement, ComboboxFormProps>((args, ref) => {\n return args.multiple ? (\n <MultipleForm {...args} ref={ref} component={Component} />\n ) : (\n <SingleForm {...args} ref={ref} component={Component} />\n );\n });\n};\n"],"names":["SingleForm","forwardRef","args","ref","onChange","name","defaultValue","Component","component","rest","_objectWithoutProperties","_excluded","_useState","useState","String","_useState2","_slicedToArray","value","setValue","selectRef","useRef","handleChange","useEffect","event","createEvent","React","createElement","Fragment","SelectHidden","mergeRefs","hidden","_extends","MultipleForm","_excluded2","_useState3","Array","isArray","_useState4","values","setValues","multiple","map","key","getFormComponentGenerator"],"mappings":"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"}
|
@@ -1,50 +0,0 @@
|
|
1
|
-
var createEvent = function createEvent(ref) {
|
2
|
-
if (ref.current) {
|
3
|
-
var event = new Event('change', {
|
4
|
-
bubbles: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(event, 'target', {
|
7
|
-
writable: false,
|
8
|
-
value: ref.current
|
9
|
-
});
|
10
|
-
var syntheticEvent = createSyntheticEvent(event);
|
11
|
-
return syntheticEvent;
|
12
|
-
}
|
13
|
-
return null;
|
14
|
-
};
|
15
|
-
var createSyntheticEvent = function createSyntheticEvent(event) {
|
16
|
-
var _isDefaultPrevented = false;
|
17
|
-
var _isPropagationStopped = false;
|
18
|
-
var preventDefault = function preventDefault() {
|
19
|
-
_isDefaultPrevented = true;
|
20
|
-
event.preventDefault();
|
21
|
-
};
|
22
|
-
var stopPropagation = function stopPropagation() {
|
23
|
-
_isPropagationStopped = true;
|
24
|
-
event.stopPropagation();
|
25
|
-
};
|
26
|
-
return {
|
27
|
-
nativeEvent: event,
|
28
|
-
currentTarget: event.currentTarget,
|
29
|
-
target: event.target,
|
30
|
-
bubbles: event.bubbles,
|
31
|
-
cancelable: event.cancelable,
|
32
|
-
defaultPrevented: event.defaultPrevented,
|
33
|
-
eventPhase: event.eventPhase,
|
34
|
-
isTrusted: event.isTrusted,
|
35
|
-
preventDefault: preventDefault,
|
36
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
37
|
-
return _isDefaultPrevented;
|
38
|
-
},
|
39
|
-
stopPropagation: stopPropagation,
|
40
|
-
isPropagationStopped: function isPropagationStopped() {
|
41
|
-
return _isPropagationStopped;
|
42
|
-
},
|
43
|
-
persist: function persist() {},
|
44
|
-
timeStamp: event.timeStamp,
|
45
|
-
type: event.type
|
46
|
-
};
|
47
|
-
};
|
48
|
-
|
49
|
-
export { createEvent, createSyntheticEvent };
|
50
|
-
//# sourceMappingURL=syntheticEvent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"syntheticEvent.js","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/syntheticEvent.ts"],"sourcesContent":["import { RefObject } from 'react';\n\nexport const createEvent = (ref: RefObject<HTMLSelectElement>) => {\n if (ref.current) {\n const event = new Event('change', { bubbles: true });\n Object.defineProperty(event, 'target', { writable: false, value: ref.current });\n const syntheticEvent = createSyntheticEvent(event) as React.ChangeEvent<typeof ref.current>;\n return syntheticEvent;\n }\n\n return null;\n};\n\nexport const createSyntheticEvent = <T extends Element, E extends Event>(event: E): React.SyntheticEvent<T, E> => {\n let isDefaultPrevented = false;\n let isPropagationStopped = false;\n const preventDefault = () => {\n isDefaultPrevented = true;\n event.preventDefault();\n };\n const stopPropagation = () => {\n isPropagationStopped = true;\n event.stopPropagation();\n };\n return {\n nativeEvent: event,\n currentTarget: event.currentTarget as EventTarget & T,\n target: event.target as EventTarget & T,\n bubbles: event.bubbles,\n cancelable: event.cancelable,\n defaultPrevented: event.defaultPrevented,\n eventPhase: event.eventPhase,\n isTrusted: event.isTrusted,\n preventDefault,\n isDefaultPrevented: () => isDefaultPrevented,\n stopPropagation,\n isPropagationStopped: () => isPropagationStopped,\n persist: () => {},\n timeStamp: event.timeStamp,\n type: event.type,\n };\n};\n"],"names":["createEvent","ref","current","event","Event","bubbles","Object","defineProperty","writable","value","syntheticEvent","createSyntheticEvent","isDefaultPrevented","isPropagationStopped","preventDefault","stopPropagation","nativeEvent","currentTarget","target","cancelable","defaultPrevented","eventPhase","isTrusted","persist","timeStamp","type"],"mappings":"IAEaA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAiC,EAAK;EAC9D,IAAIA,GAAG,CAACC,OAAO,EAAE;AACb,IAAA,IAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,QAAQ,EAAE;AAAEC,MAAAA,OAAO,EAAE,IAAA;AAAK,KAAC,CAAC,CAAA;AACpDC,IAAAA,MAAM,CAACC,cAAc,CAACJ,KAAK,EAAE,QAAQ,EAAE;AAAEK,MAAAA,QAAQ,EAAE,KAAK;MAAEC,KAAK,EAAER,GAAG,CAACC,OAAAA;AAAQ,KAAC,CAAC,CAAA;AAC/E,IAAA,IAAMQ,cAAc,GAAGC,oBAAoB,CAACR,KAAK,CAA0C,CAAA;AAC3F,IAAA,OAAOO,cAAc,CAAA;AACzB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACf,EAAC;IAEYC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAwCR,KAAQ,EAAiC;EAC9G,IAAIS,mBAAkB,GAAG,KAAK,CAAA;EAC9B,IAAIC,qBAAoB,GAAG,KAAK,CAAA;AAChC,EAAA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AACzBF,IAAAA,mBAAkB,GAAG,IAAI,CAAA;IACzBT,KAAK,CAACW,cAAc,EAAE,CAAA;GACzB,CAAA;AACD,EAAA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAC1BF,IAAAA,qBAAoB,GAAG,IAAI,CAAA;IAC3BV,KAAK,CAACY,eAAe,EAAE,CAAA;GAC1B,CAAA;EACD,OAAO;AACHC,IAAAA,WAAW,EAAEb,KAAK;IAClBc,aAAa,EAAEd,KAAK,CAACc,aAAgC;IACrDC,MAAM,EAAEf,KAAK,CAACe,MAAyB;IACvCb,OAAO,EAAEF,KAAK,CAACE,OAAO;IACtBc,UAAU,EAAEhB,KAAK,CAACgB,UAAU;IAC5BC,gBAAgB,EAAEjB,KAAK,CAACiB,gBAAgB;IACxCC,UAAU,EAAElB,KAAK,CAACkB,UAAU;IAC5BC,SAAS,EAAEnB,KAAK,CAACmB,SAAS;AAC1BR,IAAAA,cAAc,EAAdA,cAAc;IACdF,kBAAkB,EAAE,SAAAA,kBAAA,GAAA;AAAA,MAAA,OAAMA,mBAAkB,CAAA;AAAA,KAAA;AAC5CG,IAAAA,eAAe,EAAfA,eAAe;IACfF,oBAAoB,EAAE,SAAAA,oBAAA,GAAA;AAAA,MAAA,OAAMA,qBAAoB,CAAA;AAAA,KAAA;AAChDU,IAAAA,OAAO,EAAE,SAAAA,OAAA,GAAM,EAAE;IACjBC,SAAS,EAAErB,KAAK,CAACqB,SAAS;IAC1BC,IAAI,EAAEtB,KAAK,CAACsB,IAAAA;GACf,CAAA;AACL;;;;"}
|
package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
.bkuum0w{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-clear,var(--plasma-tab-item-padding));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.bkuum0w:first-child{margin-left:0;}.bkuum0w::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.bkuum0w.focus-visible:focus::before,.bkuum0w[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
|
2
|
-
.s1l5e9z0{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
|
3
|
-
.t1nh4m12{color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
|
4
|
-
.r13nweg3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.r13nweg3:hover{color:inherit;}
|
5
|
-
.l1iip2sx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.l1iip2sx:hover{color:inherit;}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
.b1vnvg8i{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.b1vnvg8i::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.b1vnvg8i.focus-visible:focus::before,.b1vnvg8i[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
|
2
|
-
.s4s0t81{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
|
3
|
-
.tur46hh{color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
|
4
|
-
.r1ms3p4x{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.r1ms3p4x:hover{color:inherit;}
|
5
|
-
.l1yz2xa4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.l1yz2xa4:hover{color:inherit;}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports.boundCombobox = void 0;
|
8
|
-
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
11
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
12
|
-
var boundCombobox = exports.boundCombobox = function boundCombobox(_ref) {
|
13
|
-
var ComboboxBase = _ref.base,
|
14
|
-
ComboboxBaseForm = _ref.baseForm;
|
15
|
-
return /*#__PURE__*/(0, _react.forwardRef)(function (rest, ref) {
|
16
|
-
if (rest.formType) {
|
17
|
-
return /*#__PURE__*/_react["default"].createElement(ComboboxBaseForm, _extends({
|
18
|
-
ref: ref
|
19
|
-
}, rest));
|
20
|
-
}
|
21
|
-
if (!rest.formType) {
|
22
|
-
return /*#__PURE__*/_react["default"].createElement(ComboboxBase, rest);
|
23
|
-
}
|
24
|
-
return null;
|
25
|
-
});
|
26
|
-
};
|
@@ -1,99 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports.getFormComponentGenerator = void 0;
|
8
|
-
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
-
var _utils = /*#__PURE__*/require("../../../../utils");
|
10
|
-
var _Combobox = /*#__PURE__*/require("../Combobox.styles");
|
11
|
-
var _syntheticEvent = /*#__PURE__*/require("./syntheticEvent");
|
12
|
-
var _excluded = ["onChange", "name", "defaultValue", "component"],
|
13
|
-
_excluded2 = ["onChange", "name", "defaultValue", "component"];
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
18
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
19
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
20
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
21
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
22
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
23
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
24
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
25
|
-
var SingleForm = /*#__PURE__*/(0, _react.forwardRef)(function (args, ref) {
|
26
|
-
var onChange = args.onChange,
|
27
|
-
name = args.name,
|
28
|
-
defaultValue = args.defaultValue,
|
29
|
-
Component = args.component,
|
30
|
-
rest = _objectWithoutProperties(args, _excluded);
|
31
|
-
var _useState = (0, _react.useState)(String(defaultValue)),
|
32
|
-
_useState2 = _slicedToArray(_useState, 2),
|
33
|
-
value = _useState2[0],
|
34
|
-
setValue = _useState2[1];
|
35
|
-
var selectRef = (0, _react.useRef)(null);
|
36
|
-
var handleChange = function handleChange(value) {
|
37
|
-
setValue(value);
|
38
|
-
};
|
39
|
-
(0, _react.useEffect)(function () {
|
40
|
-
var event = (0, _syntheticEvent.createEvent)(selectRef);
|
41
|
-
onChange && onChange(event);
|
42
|
-
}, [value]);
|
43
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Combobox.SelectHidden, {
|
44
|
-
ref: (0, _utils.mergeRefs)(selectRef, ref),
|
45
|
-
value: value,
|
46
|
-
name: name,
|
47
|
-
hidden: true
|
48
|
-
}, /*#__PURE__*/_react["default"].createElement("option", {
|
49
|
-
value: value
|
50
|
-
}, value)), /*#__PURE__*/_react["default"].createElement(Component, _extends({}, rest, {
|
51
|
-
value: value,
|
52
|
-
onChange: handleChange
|
53
|
-
})));
|
54
|
-
});
|
55
|
-
var MultipleForm = /*#__PURE__*/(0, _react.forwardRef)(function (args, ref) {
|
56
|
-
var onChange = args.onChange,
|
57
|
-
name = args.name,
|
58
|
-
defaultValue = args.defaultValue,
|
59
|
-
Component = args.component,
|
60
|
-
rest = _objectWithoutProperties(args, _excluded2);
|
61
|
-
var _useState3 = (0, _react.useState)(defaultValue && Array.isArray(defaultValue) ? defaultValue : []),
|
62
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
63
|
-
values = _useState4[0],
|
64
|
-
setValues = _useState4[1];
|
65
|
-
var selectRef = (0, _react.useRef)(null);
|
66
|
-
var handleChange = function handleChange(value) {
|
67
|
-
setValues(value);
|
68
|
-
};
|
69
|
-
(0, _react.useEffect)(function () {
|
70
|
-
var event = (0, _syntheticEvent.createEvent)(selectRef);
|
71
|
-
onChange && onChange(event);
|
72
|
-
}, [values]);
|
73
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Combobox.SelectHidden, {
|
74
|
-
ref: (0, _utils.mergeRefs)(selectRef, ref),
|
75
|
-
value: values,
|
76
|
-
name: name,
|
77
|
-
multiple: true,
|
78
|
-
hidden: true
|
79
|
-
}, values.map(function (value) {
|
80
|
-
return /*#__PURE__*/_react["default"].createElement("option", {
|
81
|
-
key: value,
|
82
|
-
value: value
|
83
|
-
}, value);
|
84
|
-
})), /*#__PURE__*/_react["default"].createElement(Component, _extends({}, rest, {
|
85
|
-
value: values,
|
86
|
-
onChange: handleChange
|
87
|
-
})));
|
88
|
-
});
|
89
|
-
var getFormComponentGenerator = exports.getFormComponentGenerator = function getFormComponentGenerator(Component) {
|
90
|
-
return /*#__PURE__*/(0, _react.forwardRef)(function (args, ref) {
|
91
|
-
return args.multiple ? /*#__PURE__*/_react["default"].createElement(MultipleForm, _extends({}, args, {
|
92
|
-
ref: ref,
|
93
|
-
component: Component
|
94
|
-
})) : /*#__PURE__*/_react["default"].createElement(SingleForm, _extends({}, args, {
|
95
|
-
ref: ref,
|
96
|
-
component: Component
|
97
|
-
}));
|
98
|
-
});
|
99
|
-
};
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.createSyntheticEvent = exports.createEvent = void 0;
|
7
|
-
var createEvent = exports.createEvent = function createEvent(ref) {
|
8
|
-
if (ref.current) {
|
9
|
-
var event = new Event('change', {
|
10
|
-
bubbles: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(event, 'target', {
|
13
|
-
writable: false,
|
14
|
-
value: ref.current
|
15
|
-
});
|
16
|
-
var syntheticEvent = createSyntheticEvent(event);
|
17
|
-
return syntheticEvent;
|
18
|
-
}
|
19
|
-
return null;
|
20
|
-
};
|
21
|
-
var createSyntheticEvent = exports.createSyntheticEvent = function createSyntheticEvent(event) {
|
22
|
-
var _isDefaultPrevented = false;
|
23
|
-
var _isPropagationStopped = false;
|
24
|
-
var preventDefault = function preventDefault() {
|
25
|
-
_isDefaultPrevented = true;
|
26
|
-
event.preventDefault();
|
27
|
-
};
|
28
|
-
var stopPropagation = function stopPropagation() {
|
29
|
-
_isPropagationStopped = true;
|
30
|
-
event.stopPropagation();
|
31
|
-
};
|
32
|
-
return {
|
33
|
-
nativeEvent: event,
|
34
|
-
currentTarget: event.currentTarget,
|
35
|
-
target: event.target,
|
36
|
-
bubbles: event.bubbles,
|
37
|
-
cancelable: event.cancelable,
|
38
|
-
defaultPrevented: event.defaultPrevented,
|
39
|
-
eventPhase: event.eventPhase,
|
40
|
-
isTrusted: event.isTrusted,
|
41
|
-
preventDefault: preventDefault,
|
42
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
43
|
-
return _isDefaultPrevented;
|
44
|
-
},
|
45
|
-
stopPropagation: stopPropagation,
|
46
|
-
isPropagationStopped: function isPropagationStopped() {
|
47
|
-
return _isPropagationStopped;
|
48
|
-
},
|
49
|
-
persist: function persist() {},
|
50
|
-
timeStamp: event.timeStamp,
|
51
|
-
type: event.type
|
52
|
-
};
|
53
|
-
};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
-
import React, { forwardRef } from 'react';
|
3
|
-
export var boundCombobox = function boundCombobox(_ref) {
|
4
|
-
var ComboboxBase = _ref.base,
|
5
|
-
ComboboxBaseForm = _ref.baseForm;
|
6
|
-
return /*#__PURE__*/forwardRef(function (rest, ref) {
|
7
|
-
if (rest.formType) {
|
8
|
-
return /*#__PURE__*/React.createElement(ComboboxBaseForm, _extends({
|
9
|
-
ref: ref
|
10
|
-
}, rest));
|
11
|
-
}
|
12
|
-
if (!rest.formType) {
|
13
|
-
return /*#__PURE__*/React.createElement(ComboboxBase, rest);
|
14
|
-
}
|
15
|
-
return null;
|
16
|
-
});
|
17
|
-
};
|
@@ -1,90 +0,0 @@
|
|
1
|
-
var _excluded = ["onChange", "name", "defaultValue", "component"],
|
2
|
-
_excluded2 = ["onChange", "name", "defaultValue", "component"];
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
5
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
6
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
8
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
9
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
10
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
12
|
-
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
13
|
-
import { mergeRefs } from '../../../../utils';
|
14
|
-
import { SelectHidden } from '../Combobox.styles';
|
15
|
-
import { createEvent } from './syntheticEvent';
|
16
|
-
var SingleForm = /*#__PURE__*/forwardRef(function (args, ref) {
|
17
|
-
var onChange = args.onChange,
|
18
|
-
name = args.name,
|
19
|
-
defaultValue = args.defaultValue,
|
20
|
-
Component = args.component,
|
21
|
-
rest = _objectWithoutProperties(args, _excluded);
|
22
|
-
var _useState = useState(String(defaultValue)),
|
23
|
-
_useState2 = _slicedToArray(_useState, 2),
|
24
|
-
value = _useState2[0],
|
25
|
-
setValue = _useState2[1];
|
26
|
-
var selectRef = useRef(null);
|
27
|
-
var handleChange = function handleChange(value) {
|
28
|
-
setValue(value);
|
29
|
-
};
|
30
|
-
useEffect(function () {
|
31
|
-
var event = createEvent(selectRef);
|
32
|
-
onChange && onChange(event);
|
33
|
-
}, [value]);
|
34
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
35
|
-
ref: mergeRefs(selectRef, ref),
|
36
|
-
value: value,
|
37
|
-
name: name,
|
38
|
-
hidden: true
|
39
|
-
}, /*#__PURE__*/React.createElement("option", {
|
40
|
-
value: value
|
41
|
-
}, value)), /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
42
|
-
value: value,
|
43
|
-
onChange: handleChange
|
44
|
-
})));
|
45
|
-
});
|
46
|
-
var MultipleForm = /*#__PURE__*/forwardRef(function (args, ref) {
|
47
|
-
var onChange = args.onChange,
|
48
|
-
name = args.name,
|
49
|
-
defaultValue = args.defaultValue,
|
50
|
-
Component = args.component,
|
51
|
-
rest = _objectWithoutProperties(args, _excluded2);
|
52
|
-
var _useState3 = useState(defaultValue && Array.isArray(defaultValue) ? defaultValue : []),
|
53
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
54
|
-
values = _useState4[0],
|
55
|
-
setValues = _useState4[1];
|
56
|
-
var selectRef = useRef(null);
|
57
|
-
var handleChange = function handleChange(value) {
|
58
|
-
setValues(value);
|
59
|
-
};
|
60
|
-
useEffect(function () {
|
61
|
-
var event = createEvent(selectRef);
|
62
|
-
onChange && onChange(event);
|
63
|
-
}, [values]);
|
64
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
65
|
-
ref: mergeRefs(selectRef, ref),
|
66
|
-
value: values,
|
67
|
-
name: name,
|
68
|
-
multiple: true,
|
69
|
-
hidden: true
|
70
|
-
}, values.map(function (value) {
|
71
|
-
return /*#__PURE__*/React.createElement("option", {
|
72
|
-
key: value,
|
73
|
-
value: value
|
74
|
-
}, value);
|
75
|
-
})), /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
76
|
-
value: values,
|
77
|
-
onChange: handleChange
|
78
|
-
})));
|
79
|
-
});
|
80
|
-
export var getFormComponentGenerator = function getFormComponentGenerator(Component) {
|
81
|
-
return /*#__PURE__*/forwardRef(function (args, ref) {
|
82
|
-
return args.multiple ? /*#__PURE__*/React.createElement(MultipleForm, _extends({}, args, {
|
83
|
-
ref: ref,
|
84
|
-
component: Component
|
85
|
-
})) : /*#__PURE__*/React.createElement(SingleForm, _extends({}, args, {
|
86
|
-
ref: ref,
|
87
|
-
component: Component
|
88
|
-
}));
|
89
|
-
});
|
90
|
-
};
|
@@ -1,47 +0,0 @@
|
|
1
|
-
export var createEvent = function createEvent(ref) {
|
2
|
-
if (ref.current) {
|
3
|
-
var event = new Event('change', {
|
4
|
-
bubbles: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(event, 'target', {
|
7
|
-
writable: false,
|
8
|
-
value: ref.current
|
9
|
-
});
|
10
|
-
var syntheticEvent = createSyntheticEvent(event);
|
11
|
-
return syntheticEvent;
|
12
|
-
}
|
13
|
-
return null;
|
14
|
-
};
|
15
|
-
export var createSyntheticEvent = function createSyntheticEvent(event) {
|
16
|
-
var _isDefaultPrevented = false;
|
17
|
-
var _isPropagationStopped = false;
|
18
|
-
var preventDefault = function preventDefault() {
|
19
|
-
_isDefaultPrevented = true;
|
20
|
-
event.preventDefault();
|
21
|
-
};
|
22
|
-
var stopPropagation = function stopPropagation() {
|
23
|
-
_isPropagationStopped = true;
|
24
|
-
event.stopPropagation();
|
25
|
-
};
|
26
|
-
return {
|
27
|
-
nativeEvent: event,
|
28
|
-
currentTarget: event.currentTarget,
|
29
|
-
target: event.target,
|
30
|
-
bubbles: event.bubbles,
|
31
|
-
cancelable: event.cancelable,
|
32
|
-
defaultPrevented: event.defaultPrevented,
|
33
|
-
eventPhase: event.eventPhase,
|
34
|
-
isTrusted: event.isTrusted,
|
35
|
-
preventDefault: preventDefault,
|
36
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
37
|
-
return _isDefaultPrevented;
|
38
|
-
},
|
39
|
-
stopPropagation: stopPropagation,
|
40
|
-
isPropagationStopped: function isPropagationStopped() {
|
41
|
-
return _isPropagationStopped;
|
42
|
-
},
|
43
|
-
persist: function persist() {},
|
44
|
-
timeStamp: event.timeStamp,
|
45
|
-
type: event.type
|
46
|
-
};
|
47
|
-
};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ComboboxBoundlerProps, ComboboxBoundlerPropsComponent } from './Combobox.types';
|
3
|
-
export declare const boundCombobox: (args: ComboboxBoundlerProps) => React.FC<ComboboxBoundlerPropsComponent>;
|
4
|
-
//# sourceMappingURL=Combobox.boundler.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Combobox.boundler.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.boundler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAEzF,eAAO,MAAM,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAc9F,CAAC"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React, { ComponentType } from 'react';
|
2
|
-
import { ComboboxProps } from '../Combobox.types';
|
3
|
-
export declare const getFormComponentGenerator: (Component: ComponentType<ComboboxProps>) => React.ForwardRefExoticComponent<(Omit<Omit<ComboboxProps<import("..").ItemOption>, "onChange" | "defaultValue" | "multiple" | "formType"> & {
|
4
|
-
onChange?: ((event: React.ChangeEvent<HTMLSelectElement> | null) => void) | undefined;
|
5
|
-
defaultValue?: string | undefined;
|
6
|
-
name?: string | undefined;
|
7
|
-
multiple?: false | undefined;
|
8
|
-
ref?: React.Ref<HTMLSelectElement> | undefined;
|
9
|
-
formType: true;
|
10
|
-
}, "ref"> | Omit<Omit<ComboboxProps<import("..").ItemOption>, "onChange" | "defaultValue" | "multiple" | "formType"> & {
|
11
|
-
onChange?: ((event: React.ChangeEvent<HTMLSelectElement> | null) => void) | undefined;
|
12
|
-
defaultValue?: string[] | undefined;
|
13
|
-
name?: string | undefined;
|
14
|
-
multiple?: true | undefined;
|
15
|
-
ref?: React.Ref<HTMLSelectElement> | undefined;
|
16
|
-
formType: true;
|
17
|
-
}, "ref">) & React.RefAttributes<HTMLSelectElement>>;
|
18
|
-
//# sourceMappingURL=getForm.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAA2C,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,aAAa,EAAqB,MAAM,mBAAmB,CAAC;AA8DrE,eAAO,MAAM,yBAAyB,cAAe,cAAc,aAAa,CAAC;;;;;;;;;;;;;;oDAQhF,CAAC"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { RefObject } from 'react';
|
2
|
-
export declare const createEvent: (ref: RefObject<HTMLSelectElement>) => import("react").ChangeEvent<HTMLSelectElement> | null;
|
3
|
-
export declare const createSyntheticEvent: <T extends Element, E extends Event>(event: E) => import("react").SyntheticEvent<T, E>;
|
4
|
-
//# sourceMappingURL=syntheticEvent.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"syntheticEvent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/syntheticEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,WAAW,QAAS,UAAU,iBAAiB,CAAC,0DAS5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,wFA4BhC,CAAC"}
|