@bookjane2/bookjane-design-library 9.0.19 → 9.0.21

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.
Files changed (64) hide show
  1. package/lib/components/BKJCheckbox/BKJCheckbox.types.d.ts +1 -0
  2. package/lib/components/BKJCheckbox/BKJCheckbox.types.d.ts.map +1 -1
  3. package/lib/components/BKJChip/BKJChip.d.ts.map +1 -1
  4. package/lib/components/BKJChip/BKJChip.js +2 -2
  5. package/lib/components/BKJChip/BKJChip.js.map +1 -1
  6. package/lib/components/BKJChip/BKJChip.styled.d.ts +1 -0
  7. package/lib/components/BKJChip/BKJChip.styled.d.ts.map +1 -1
  8. package/lib/components/BKJChip/BKJChip.styled.js +18 -0
  9. package/lib/components/BKJChip/BKJChip.styled.js.map +1 -1
  10. package/lib/components/BKJChip/BKJChip.types.d.ts +3 -1
  11. package/lib/components/BKJChip/BKJChip.types.d.ts.map +1 -1
  12. package/lib/components/BKJComboBox/BKJComboBox.d.ts +1 -2
  13. package/lib/components/BKJComboBox/BKJComboBox.d.ts.map +1 -1
  14. package/lib/components/BKJComboBox/BKJComboBox.js +5 -5
  15. package/lib/components/BKJComboBox/BKJComboBox.js.map +1 -1
  16. package/lib/components/BKJComboBox/BKJComboBox.stories.d.ts +1 -1
  17. package/lib/components/BKJComboBox/BKJComboBox.types.d.ts +1 -0
  18. package/lib/components/BKJComboBox/BKJComboBox.types.d.ts.map +1 -1
  19. package/lib/components/BKJComboBox/src/BKJComboBox.context.d.ts.map +1 -1
  20. package/lib/components/BKJComboBox/src/BKJComboBox.context.js +2 -0
  21. package/lib/components/BKJComboBox/src/BKJComboBox.context.js.map +1 -1
  22. package/lib/components/BKJComboBox/src/BKJComboBoxInput.d.ts +4 -1
  23. package/lib/components/BKJComboBox/src/BKJComboBoxInput.d.ts.map +1 -1
  24. package/lib/components/BKJComboBox/src/BKJComboBoxInput.js +5 -3
  25. package/lib/components/BKJComboBox/src/BKJComboBoxInput.js.map +1 -1
  26. package/lib/components/BKJComboBox/src/BKJComboBoxOptions.d.ts.map +1 -1
  27. package/lib/components/BKJComboBox/src/BKJComboBoxOptions.js +2 -1
  28. package/lib/components/BKJComboBox/src/BKJComboBoxOptions.js.map +1 -1
  29. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.d.ts.map +1 -1
  30. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.js +18 -4
  31. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.js.map +1 -1
  32. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.stories.d.ts +4 -0
  33. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.stories.d.ts.map +1 -1
  34. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.stories.js +35 -0
  35. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.stories.js.map +1 -1
  36. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.test.d.ts +2 -0
  37. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.test.d.ts.map +1 -0
  38. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.test.js +93 -0
  39. package/lib/components/BKJDollarTextInput/BKJDollarTextInput.test.js.map +1 -0
  40. package/lib/components/BKJListItem/BKJListItem.js +1 -1
  41. package/lib/components/BKJListItem/BKJListItem.js.map +1 -1
  42. package/lib/components/BKJPillDropdown/BKJPillDropdown.styled.d.ts +2 -4
  43. package/lib/components/BKJPillDropdown/BKJPillDropdown.styled.d.ts.map +1 -1
  44. package/lib/components/BKJPillSelect/BKJPillSelect.context.d.ts.map +1 -1
  45. package/lib/components/BKJPillSelect/BKJPillSelect.context.js +17 -20
  46. package/lib/components/BKJPillSelect/BKJPillSelect.context.js.map +1 -1
  47. package/lib/components/BKJPillSelect/BKJPillSelect.d.ts.map +1 -1
  48. package/lib/components/BKJPillSelect/BKJPillSelect.js +8 -11
  49. package/lib/components/BKJPillSelect/BKJPillSelect.js.map +1 -1
  50. package/lib/components/BKJPillSelect/BKJPillSelect.stories.d.ts +3 -0
  51. package/lib/components/BKJPillSelect/BKJPillSelect.stories.d.ts.map +1 -1
  52. package/lib/components/BKJPillSelect/BKJPillSelect.stories.js +55 -16
  53. package/lib/components/BKJPillSelect/BKJPillSelect.stories.js.map +1 -1
  54. package/lib/components/BKJPillSelect/BKJPillSelect.styled.d.ts +3 -5
  55. package/lib/components/BKJPillSelect/BKJPillSelect.styled.d.ts.map +1 -1
  56. package/lib/components/BKJPillSelect/BKJPillSelect.styled.js +1 -1
  57. package/lib/components/BKJPillSelect/BKJPillSelect.styled.js.map +1 -1
  58. package/lib/components/BKJPillSelect/BKJPillSelect.test.d.ts +2 -0
  59. package/lib/components/BKJPillSelect/BKJPillSelect.test.d.ts.map +1 -0
  60. package/lib/components/BKJPillSelect/BKJPillSelect.test.js +237 -0
  61. package/lib/components/BKJPillSelect/BKJPillSelect.test.js.map +1 -0
  62. package/lib/components/BKJPillSelect/BKJPillSelect.types.d.ts +1 -1
  63. package/lib/components/BKJPillSelect/BKJPillSelect.types.d.ts.map +1 -1
  64. package/package.json +1 -1
@@ -0,0 +1,93 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { screen } from '@testing-library/react';
3
+ import { renderAndCheckA11y, renderWithTheme } from '../../test-utils/index.js';
4
+ import { BKJDollarTextInput } from './BKJDollarTextInput.js';
5
+ const noop = () => { };
6
+ describe('BKJDollarTextInput', () => {
7
+ describe('Accessibility', () => {
8
+ it('default (labelled) has no a11y violations', async () => {
9
+ const { axeResults } = await renderAndCheckA11y(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", onChange: noop, value: "" }));
10
+ expect(axeResults).toHaveNoViolations();
11
+ });
12
+ it('required has no a11y violations', async () => {
13
+ const { axeResults } = await renderAndCheckA11y(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", required: true, onChange: noop, value: "" }));
14
+ expect(axeResults).toHaveNoViolations();
15
+ });
16
+ it('with string error has no a11y violations', async () => {
17
+ const { axeResults } = await renderAndCheckA11y(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", error: "Amount must be greater than $0", onChange: noop, value: "" }));
18
+ expect(axeResults).toHaveNoViolations();
19
+ });
20
+ it('with array of errors has no a11y violations', async () => {
21
+ const { axeResults } = await renderAndCheckA11y(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", error: ['Amount must be greater than $0', 'Amount must be less than $1000'], onChange: noop, value: "" }));
22
+ expect(axeResults).toHaveNoViolations();
23
+ });
24
+ it('disabled has no a11y violations', async () => {
25
+ const { axeResults } = await renderAndCheckA11y(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", disabled: true, onChange: noop, value: "" }));
26
+ expect(axeResults).toHaveNoViolations();
27
+ });
28
+ });
29
+ describe('ARIA attributes', () => {
30
+ it('label htmlFor matches input id', () => {
31
+ renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", onChange: noop, value: "" }));
32
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
33
+ const inputId = input.getAttribute('id');
34
+ expect(inputId).toBeTruthy();
35
+ const label = document.querySelector(`label[for="${inputId}"]`);
36
+ expect(label).not.toBeNull();
37
+ expect(label?.textContent).toContain('Set Rate');
38
+ });
39
+ it('input has aria-invalid="true" when error is a string', () => {
40
+ renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", error: "Amount must be greater than $0", onChange: noop, value: "" }));
41
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
42
+ expect(input).toHaveAttribute('aria-invalid', 'true');
43
+ });
44
+ it('input has no aria-invalid when error is falsy', () => {
45
+ renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", onChange: noop, value: "" }));
46
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
47
+ expect(input).not.toHaveAttribute('aria-invalid');
48
+ });
49
+ it('aria-describedby references a single error element when error is a string', () => {
50
+ const { container } = renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", error: "Amount must be greater than $0", onChange: noop, value: "" }));
51
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
52
+ const describedBy = input.getAttribute('aria-describedby');
53
+ expect(describedBy).toBeTruthy();
54
+ const errorIds = (describedBy ?? '').split(/\s+/).filter(Boolean);
55
+ expect(errorIds.length).toBeGreaterThan(0);
56
+ for (const id of errorIds) {
57
+ const matches = container.querySelectorAll(`[id="${id}"]`);
58
+ expect(matches.length).toBe(1);
59
+ }
60
+ });
61
+ it('renders a single error element when error is an array of strings', () => {
62
+ const { container } = renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", error: ['Amount must be greater than $0', 'Amount must be less than $1000'], onChange: noop, value: "" }));
63
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
64
+ expect(input).toHaveAttribute('aria-invalid', 'true');
65
+ const describedBy = input.getAttribute('aria-describedby');
66
+ expect(describedBy).toBeTruthy();
67
+ const errorIds = (describedBy ?? '').split(/\s+/).filter(Boolean);
68
+ expect(errorIds.length).toBeGreaterThan(0);
69
+ for (const id of errorIds) {
70
+ const matches = container.querySelectorAll(`[id="${id}"]`);
71
+ expect(matches.length).toBe(1);
72
+ expect(matches[0].textContent?.trim().length ?? 0).toBeGreaterThan(0);
73
+ }
74
+ });
75
+ it('input has aria-required="true" when required is true', () => {
76
+ renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", required: true, onChange: noop, value: "" }));
77
+ // The visible "*" is part of the accessible name when required, so use a regex match.
78
+ const input = screen.getByRole('textbox', { name: /Set Rate/ });
79
+ expect(input).toHaveAttribute('aria-required', 'true');
80
+ });
81
+ it('input has no aria-required when required is absent', () => {
82
+ renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", onChange: noop, value: "" }));
83
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
84
+ expect(input).not.toHaveAttribute('aria-required');
85
+ });
86
+ it('input has inputmode="decimal"', () => {
87
+ renderWithTheme(_jsx(BKJDollarTextInput, { label: "Set Rate", name: "rate", onChange: noop, value: "" }));
88
+ const input = screen.getByRole('textbox', { name: 'Set Rate' });
89
+ expect(input).toHaveAttribute('inputmode', 'decimal');
90
+ });
91
+ });
92
+ });
93
+ //# sourceMappingURL=BKJDollarTextInput.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BKJDollarTextInput.test.js","sourceRoot":"","sources":["../../../src/components/BKJDollarTextInput/BKJDollarTextInput.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,IAAI,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;AAEtB,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;QAC7B,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;YACzD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,kBAAkB,CAC7C,KAAC,kBAAkB,IAAC,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,GAAG,CAC7E,CAAC;YACF,MAAM,CAAC,UAAU,CAAC,CAAC,kBAAkB,EAAE,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;YAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,kBAAkB,CAC7C,KAAC,kBAAkB,IAAC,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,QAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,GAAG,CACtF,CAAC;YACF,MAAM,CAAC,UAAU,CAAC,CAAC,kBAAkB,EAAE,C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;YACtF,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAChE,MAAM,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC5D,eAAe,CACb,KAAC,kBAAkB,IAAC,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,GAAG,CAC7E,CAAC;YACF,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAChE,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,eAAe,CACb,KAAC,kBAAkB,IAAC,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,GAAG,CAC7E,CAAC;YACF,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAChE,MAAM,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -12,6 +12,6 @@ export const BKJListItem = forwardRef((props, ref) => {
12
12
  if (onChange)
13
13
  onChange({ ...event, target: { checked, index, id, name, value, label } });
14
14
  }, [checked, id, index, label, name, onChange, onClick, value]);
15
- return (_jsxs(ListItemWrapper, { ...rest, id: id, role: "option", "aria-selected": !!checked, variant: variant, onClick: handleClick, className: className, checked: checked, disabled: disabled, isTargeted: isTargeted, ref: ref, type: type, children: [_jsx(ListItemText, { hasSubLabel: !!subLabel, children: label }), !!subLabel && (_jsx(ListItemSubLabelText, { position: subLabelPosition, children: subLabel })), _jsx(BKJCheckbox, { variant: checkBoxVariant, value: checked })] }));
15
+ return (_jsxs(ListItemWrapper, { ...rest, id: id, role: "option", "aria-selected": !!checked, variant: variant, onClick: handleClick, className: className, checked: checked, disabled: disabled, isTargeted: isTargeted, ref: ref, type: type, children: [_jsx(ListItemText, { hasSubLabel: !!subLabel, children: label }), !!subLabel && (_jsx(ListItemSubLabelText, { position: subLabelPosition, children: subLabel })), _jsx(BKJCheckbox, { variant: checkBoxVariant, value: checked, "aria-hidden": "true" })] }));
16
16
  });
17
17
  //# sourceMappingURL=BKJListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BKJListItem.js","sourceRoot":"","sources":["../../../src/components/BKJListItem/BKJListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAmC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACrF,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,gBAAgB,GAAG,OAAO,EAC1B,KAAK,EACL,SAAS,EACT,OAAO,GAAG,qCAAqC,EAC/C,eAAe,GAAG,eAAe,EACjC,QAAQ,GAAG,KAAK,EAChB,UAAU,GAAG,KAAK,EAClB,QAAQ,EACR,KAAK,EACL,OAAO,EACP,EAAE,EACF,KAAK,EACL,IAAI,GAAG,UAA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K,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACvF,IAAI,QAAQ;YAAE,QAAQ,CAAC,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IAC3F,CAAC,EACD,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAC5D,CAAC;IAEF,OAAO,CACL,MAAC,eAAe,OACV,IAAI,EACR,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,mBACE,CAAC,CAAC,OAAO,EACxB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,WAAkB,EAC3B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,aAEV,KAAC,YAAY,IAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,YAAG,KAAK,GAAgB,EAC5D,CAAC,CAAC,QAAQ,IAAI,CACb,KAAC,oBAAoB,IAAC,QAAQ,EAAE,gBAAgB,YAAG,QAAQ,GAAwB,CACpF,EACD,KAAC,WAAW,IAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,iBAAc,MAAM,GAAG,IAC5D,CACnB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -11,11 +11,9 @@ export declare const RequiredAsterisk: import("styled-components/dist/types").IS
11
11
  }, never>> & string;
12
12
  export declare const BKJPillDropdownWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
13
13
  export declare const TextAreaWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TextAreaWrapperProps>> & string;
14
- export declare const BKJPillDropdownComboBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>> & {
15
- children?: import("react").ReactNode;
16
- }, {
14
+ export declare const BKJPillDropdownComboBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Pick<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>>, "target" | "name" | "value" | "label" | "checked" | "filter" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "onIsOpenChange" | "allowedAutoPlacements" | "showFullFocusBorder" | "$dropdownHeight"> & import("react").RefAttributes<HTMLInputElement>, {
17
15
  hasValue: boolean;
18
16
  $dropdownOffset: number;
19
- }>> & string & Omit<import("react").FC<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>>>, keyof import("react").Component<any, {}, any>>;
17
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<Pick<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>>, "target" | "name" | "value" | "label" | "checked" | "filter" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "onIsOpenChange" | "allowedAutoPlacements" | "showFullFocusBorder" | "$dropdownHeight"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
20
18
  export declare const ArrowIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
19
  //# sourceMappingURL=BKJPillDropdown.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillDropdown.styled.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillDropdown/BKJPillDropdown.styled.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGxF,eAAO,MAAM,UAAU;eAA6B,OAAO;YAE1D,CAAC;AAEF,eAAO,MAAM,YAAY,sOAExB,CAAC;AAEF,eAAO,MAAM,YAAY,wTAYxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;eAtBuB,OAAO;;;mBAwB1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,sOAMlC,CAAC;AAEF,eAAO,MAAM,eAAe,yPAyB3B,CAAC;AAQF,eAAO,MAAM,uBAAuB;;;cACxB,OAAO;qBACA,MAAM;6PAuBxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6NAK5B,CAAC"}
1
+ {"version":3,"file":"BKJPillDropdown.styled.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillDropdown/BKJPillDropdown.styled.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGxF,eAAO,MAAM,UAAU;eAA6B,OAAO;YAE1D,CAAC;AAEF,eAAO,MAAM,YAAY,sOAExB,CAAC;AAEF,eAAO,MAAM,YAAY,wTAYxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;eAtBuB,OAAO;;;mBAwB1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,sOAMlC,CAAC;AAEF,eAAO,MAAM,eAAe,yPAyB3B,CAAC;AAQF,eAAO,MAAM,uBAAuB;cACxB,OAAO;qBACA,MAAM;40MAuBxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6NAK5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.context.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EASH,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAItF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,sBAAsB,CAsG5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,6BAAyC,CAAC"}
1
+ {"version":3,"file":"BKJPillSelect.context.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EASH,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAItF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,sBAAsB,CAiG5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,6BAAyC,CAAC"}
@@ -14,29 +14,29 @@ export const BKJPillSelectProvider = ({ children, value = [], onChange, name, ma
14
14
  event.stopPropagation();
15
15
  inputRef.current?.focus();
16
16
  setFocus(true);
17
- inputRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' });
18
- return void 0;
19
17
  }, []);
18
+ const isMaxLimitReached = useMemo(() => value.length > max, [max, value.length]);
20
19
  const setNextValue = useCallback((nextValue) => {
21
- if (nextValue) {
22
- onChange({ target: { name, value: nextValue } });
23
- setInputValue('');
24
- }
25
- return void 0;
26
- }, [name, onChange]);
20
+ if (!nextValue)
21
+ return;
22
+ if (value.length >= max)
23
+ return;
24
+ onChange({ target: { name, value: nextValue } });
25
+ setInputValue('');
26
+ }, [max, name, onChange, value.length]);
27
27
  const onInputChange = useCallback((e) => {
28
28
  setNextValue(e.target.value);
29
29
  setFocus(false);
30
30
  }, [setNextValue]);
31
- const onChipRemove = useCallback((__VALUE__) => {
32
- return (event) => {
33
- event.preventDefault();
34
- event.stopPropagation();
35
- const index = value.indexOf(__VALUE__);
36
- const nextValue = Array.from(value);
37
- nextValue.splice(index, 1);
38
- onChange({ target: { name, value: nextValue } });
39
- };
31
+ const onChipRemove = useCallback((__VALUE__) => (event) => {
32
+ event.preventDefault();
33
+ event.stopPropagation();
34
+ inputRef.current?.focus();
35
+ setFocus(true);
36
+ const index = value.indexOf(__VALUE__);
37
+ const nextValue = Array.from(value);
38
+ nextValue.splice(index, 1);
39
+ onChange({ target: { name, value: nextValue } });
40
40
  }, [name, onChange, value]);
41
41
  const onInputBlur = useCallback((event) => {
42
42
  const containsTarget = event.currentTarget.contains(mouseDownTargetRef.current);
@@ -48,9 +48,6 @@ export const BKJPillSelectProvider = ({ children, value = [], onChange, name, ma
48
48
  setFocus(false);
49
49
  }
50
50
  }, [isFocused]);
51
- const isMaxLimitReached = useMemo(() => {
52
- return value.length > max;
53
- }, [max, value.length]);
54
51
  const onIsOpenChange = useCallback(({ isOpen }) => {
55
52
  if (!isOpen)
56
53
  setFocus(false);
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.context.js","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.context.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,aAAa,EAKb,WAAW,EACX,UAAU,EACV,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAKpC,MAAM,oBAAoB,GAAG,aAAa,CAAwB,IAAK,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,qBAAqB,GAA+B,CAAC,EAChE,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,IAAI,EACJ,GAAG,GACJ,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAkC,MAAM,CAAC,IAA8B,CAAC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AE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,oBAAoB,CAAC,QAAQ,IAC5B,KAAK,EAAE;YACL,UAAU;YACV,QAAQ;YACR,KAAK;YACL,UAAU;YACV,cAAc;YACd,aAAa;YACb,WAAW;YACX,YAAY;YACZ,SAAS;YACT,aAAa;YACb,IAAI;YACJ,iBAAiB;YACjB,cAAc;SACf,YAEA,QAAQ,GACqB,CACjC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"BKJPillSelect.context.js","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.context.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,aAAa,EAKb,WAAW,EACX,UAAU,EACV,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAKpC,MAAM,oBAAoB,GAAG,aAAa,CAAwB,IAAK,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,qBAAqB,GAA+B,CAAC,EAChE,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,IAAI,EACJ,GAAG,GACJ,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAkC,MAAM,CAAC,IAA8B,CAAC,CAAC;IACjG,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAS,MAAM,EAAE,CAAC,CAAC;IAC1C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC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AAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AAajD,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAoI9E,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,cAAc,CAmB5C,CAAC"}
1
+ {"version":3,"file":"BKJPillSelect.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AAajD,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AA2I9E,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,cAAc,CAoB5C,CAAC"}
@@ -6,26 +6,23 @@ import { BKJTextInputErrorMessage } from '../BKJTextInput/BKJTextInput.styled.js
6
6
  import { Flex } from '../Flex/index.js';
7
7
  import { BKJPillSelectProvider, useBKJPillSelectContext } from './BKJPillSelect.context.js';
8
8
  import { BKJPillSelectComboBox, BKJPillSelectWrapper, InputLabel, InputMessage, RequiredAsterisk, TextAreaWrapper, } from './BKJPillSelect.styled.js';
9
- const InputComponent = forwardRef(({ onInputChange, value, isFocused, onIsOpenChange, options = [], ...rest }, ref) => {
10
- return (_jsx(BKJPillSelectComboBox, { ...rest, overrides: ['HIDE_VALUE_LABEL'], ref: ref, action: "OpenToggle", name: "BKJPillSelect_InputValue", options: options,
11
- // onBlur={onBlur}
12
- type: "Multiple", onIsOpenChange: onIsOpenChange, onChange: onInputChange, value: value, hasValue: value.length > 0, isFocused: isFocused, showFullFocusBorder: false }));
13
- });
9
+ const InputComponent = forwardRef(({ onInputChange, value, isFocused, onIsOpenChange, options = [], ariaLabelledBy, autoFocus, ...rest }, ref) => (_jsx(BKJPillSelectComboBox, { ...rest, overrides: ['HIDE_VALUE_LABEL'], ref: ref, action: "OpenToggle", name: "BKJPillSelect_InputValue", options: options, type: "Multiple", onIsOpenChange: onIsOpenChange, onChange: onInputChange, value: value, hasValue: value.length > 0, isFocused: isFocused, showFullFocusBorder: false, "aria-labelledby": ariaLabelledBy, autoFocus: autoFocus })));
14
10
  const BKJPillSelectComponent = (props) => {
15
11
  const { value, label, required, disabled, description, name, placeholder, error, max, options, ...rest } = props;
16
12
  const { wrapperRef, inputRef, uuid, onChipRemove, onInputFocused, onInputChange, onInputBlur, isMaxLimitReached, onIsOpenChange, isFocused, } = useBKJPillSelectContext();
17
- return (_jsxs(BKJPillSelectWrapper, { children: [label && (_jsxs(InputLabel, { disabled: disabled, children: [label, required && _jsx(RequiredAsterisk, { children: "\u00A0*" })] })), value.length !== 0 && (_createElement(TextAreaWrapper, { ...rest, key: `BKJPillSelect_${uuid}`, id: `BKJPillSelect_${uuid}_TextAreaWrapper`, ref: wrapperRef, error: !!error || isMaxLimitReached, disabled: disabled, onMouseDown: onInputFocused, hasValue: value.length > 0, isFocused: isFocused },
13
+ const inputLabelId = `BKJPillSelect_${uuid}_Label`;
14
+ return (_jsxs(BKJPillSelectWrapper, { children: [label && (_jsxs(InputLabel, { id: inputLabelId, disabled: disabled, children: [label, required && _jsx(RequiredAsterisk, { children: "\u00A0*" })] })), value.length !== 0 && (_createElement(TextAreaWrapper, { ...rest, key: `BKJPillSelect_${uuid}`, id: `BKJPillSelect_${uuid}_TextAreaWrapper`, ref: wrapperRef, error: !!error || isMaxLimitReached, disabled: disabled, onMouseDown: onInputFocused, hasValue: value.length > 0, isFocused: isFocused },
18
15
  _jsx(Flex, { flexWrap: "wrap", gap: "4px", padding: value.length > 0 ? '8px 8px 0' : '8px 8px', children: value.map((strValue) => {
19
16
  const MATCHED = options.find(({ value }) => value === strValue);
20
17
  if (!MATCHED)
21
- return _jsx(Fragment, {});
22
- return (_jsx(BKJChip, { onClose: onChipRemove(MATCHED.value), variant: "Purple", children: MATCHED.label }, MATCHED.value));
23
- }) }))), value.length === 0 ? (_jsx(InputComponent, { ref: inputRef, options: options, isFocused: isFocused, value: value, onInputChange: onInputChange, onBlur: onInputBlur, onIsOpenChange: onIsOpenChange })) : isFocused ? (_jsx(InputComponent, { ref: inputRef, options: options, isFocused: isFocused, value: value, onInputChange: onInputChange, onBlur: onInputBlur, onIsOpenChange: onIsOpenChange })) : (_jsx(Fragment, {})), description && _jsx(InputMessage, { children: description }), _jsx(InputMessage, { isMaxLimitReached: isMaxLimitReached, children: isMaxLimitReached
18
+ return _jsx(Fragment, {}, `missing-${strValue}`);
19
+ return (_jsx(BKJChip, { onClose: onChipRemove(MATCHED.value), variant: "Purple", closeAriaLabel: `Remove ${MATCHED.label}`, closeButtonDisabled: disabled, children: MATCHED.label }, MATCHED.value));
20
+ }) }))), value.length === 0 || isFocused ? (_jsx(InputComponent, { ref: inputRef, options: options, isFocused: isFocused, value: value, onInputChange: onInputChange, onBlur: onInputBlur, onIsOpenChange: onIsOpenChange, ariaLabelledBy: label ? inputLabelId : undefined, autoFocus: isFocused })) : (_jsx(Fragment, {})), description && _jsx(InputMessage, { children: description }), _jsx(InputMessage, { isMaxLimitReached: isMaxLimitReached, children: isMaxLimitReached
24
21
  ? `You've reached the max of ${max} options (${value.length}/${max})`
25
22
  : `${value.length}/${max}` }), error && (_jsx(Fragment, { children: error && Array.isArray(error) ? (error.length &&
26
23
  error.map((err) => _jsx(BKJTextInputErrorMessage, { children: err }, err))) : (_jsx(BKJTextInputErrorMessage, { children: error })) }))] }));
27
24
  };
28
- export const BKJPillSelect = ({ value = [], onChange, name, validations, max = 10, ...rest }) => {
29
- return (_jsx(BKJPillSelectProvider, { value: value, onChange: onChange, name: name, validations: validations, max: max, children: _jsx(BKJPillSelectComponent, { name: name, value: value, max: max, ...rest }) }));
25
+ export const BKJPillSelect = ({ value = [], onChange, name, validations, max = 10, options, ...rest }) => {
26
+ return (_jsx(BKJPillSelectProvider, { value: value, onChange: onChange, name: name, validations: validations, max: max, children: _jsx(BKJPillSelectComponent, { name: name, value: value, max: max, options: options, ...rest }) }));
30
27
  };
31
28
  //# sourceMappingURL=BKJPillSelect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.js","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAM,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAGhC,MAAM,cAAc,GAAG,UAAU,CAM/B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IACpF,OAAO,CACL,KAAC,qBAAqB,OAChB,IAAI,EACR,SAAS,EAAE,CAAC,kBAAkB,CAAC,EAC/B,GAAG,EAAE,GAAG,EACR,MAAM,EAAC,YAAY,EACnB,IAAI,EAAC,0BAA0B,EAC/B,OAAO,EAAE,OAAO;QAChB,kBAAkB;QAClB,IAAI,EAAC,UAAU,EACf,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,EAC1B,SAAS,EAAE,SAAS,EACpB,mBAAmB,EAAE,KAAK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EAAE,OAAO,EAAE,OAAO,KAAM,IAAI,GAAI,GACpE,CACzB,CAAC;AACJ,CAAC,CAAC"}
@@ -30,5 +30,8 @@ declare const setup: {
30
30
  };
31
31
  };
32
32
  export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJPillSelect>;
33
+ export declare const WithChips: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJPillSelect>;
34
+ export declare const ErrorState: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJPillSelect>;
35
+ export declare const MaxReached: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJPillSelect>;
33
36
  export default setup;
34
37
  //# sourceMappingURL=BKJPillSelect.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAQvD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BV,CAAC;AAoDF,eAAO,MAAM,OAAO,0GAAoB,CAAC;AAQzC,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"BKJPillSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AASvD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BV,CAAC;AAgDF,eAAO,MAAM,OAAO,0GAAoB,CAAC;AA8BzC,eAAO,MAAM,SAAS,0GAA6B,CAAC;AA4BpD,eAAO,MAAM,UAAU,0GAA8B,CAAC;AA8BtD,eAAO,MAAM,UAAU,0GAA8B,CAAC;AAOtD,eAAe,KAAK,CAAC"}
@@ -4,6 +4,7 @@ import { useFormBehaviors } from '../../hooks/index.js';
4
4
  import uniq from 'lodash/uniq';
5
5
  import filter from 'lodash/filter';
6
6
  import includes from 'lodash/includes';
7
+ import { Flex } from '../index.js';
7
8
  const setup = {
8
9
  title: 'Input Elements/BKJPillSelect',
9
10
  component: BKJPillSelect,
@@ -37,22 +38,17 @@ const setup = {
37
38
  const initialState = {
38
39
  data: ['1'],
39
40
  };
40
- // const initialState = {
41
- // data: [...Array(201)].map((_, i) => {
42
- // return `Field ${i + 1}`;
43
- // }) as string[],
44
- // };
45
- function VALIDATION_unique(data) {
46
- let errs = [];
41
+ function VALIDATION_no_duplicates(data) {
47
42
  const hasDuplicates = uniq(data).length !== data.length;
43
+ if (!hasDuplicates)
44
+ return '';
48
45
  const duplicates = uniq(filter(data, (val, i, iteratee) => includes(iteratee, val, i + 1)));
46
+ return [`Remove duplicate values`, ...duplicates.map((str) => `\t• ${str}`)];
47
+ }
48
+ function VALIDATION_required_no_duplicates(data) {
49
49
  if (data.length === 0)
50
- errs.push('At least 1 option is required');
51
- if (hasDuplicates)
52
- [`Remove duplicate values`, ...duplicates.map((str) => `\t• ${str}`)].forEach((item) => errs.push(item));
53
- if (errs.length)
54
- return errs;
55
- return '';
50
+ return ['At least 1 option is required'];
51
+ return VALIDATION_no_duplicates(data);
56
52
  }
57
53
  const opts = [...Array(300)].map((_, i) => {
58
54
  return { id: String(i + 1), label: `Item Number #${i + 1}`, value: String(i + 1) };
@@ -62,16 +58,59 @@ const Template = (props) => {
62
58
  initialState,
63
59
  onSubmit: console.log,
64
60
  validations: {
65
- data: VALIDATION_unique,
61
+ data: VALIDATION_no_duplicates,
66
62
  },
67
63
  });
68
- return (_jsx(BKJPillSelect, { ...props, options: opts, max: 200, onChange: onChange, name: "data", value: data, error: fieldErrors['data'] }));
64
+ return (_jsx(Flex, { width: "600px", children: _jsx(BKJPillSelect, { ...props, options: opts, max: 200, onChange: onChange, name: "data", value: data, error: fieldErrors['data'] }) }));
69
65
  };
70
66
  export const Default = Template.bind({});
71
67
  Default.args = {
72
68
  label: 'Industries',
73
- required: true,
69
+ required: false,
74
70
  placeholder: "Type or paste a list of dropdown values, so that there's one value per line.",
75
71
  };
72
+ const WithChipsTemplate = (props) => {
73
+ const { values: { data }, onChange, fieldErrors, } = useFormBehaviors({
74
+ initialState: { data: ['1', '5', '10'] },
75
+ onSubmit: console.log,
76
+ validations: { data: VALIDATION_required_no_duplicates },
77
+ });
78
+ return (_jsx(BKJPillSelect, { ...props, options: opts, max: 200, onChange: onChange, name: "data", value: data, error: fieldErrors['data'] }));
79
+ };
80
+ export const WithChips = WithChipsTemplate.bind({});
81
+ WithChips.args = {
82
+ label: 'Industries',
83
+ required: true,
84
+ placeholder: 'Type to add another industry…',
85
+ };
86
+ const ErrorStateTemplate = (props) => {
87
+ const { values: { data }, onChange, } = useFormBehaviors({
88
+ initialState: { data: [] },
89
+ onSubmit: console.log,
90
+ validations: { data: VALIDATION_required_no_duplicates },
91
+ });
92
+ return (_jsx(BKJPillSelect, { ...props, options: opts, max: 200, onChange: onChange, name: "data", value: data, error: "At least 1 option is required" }));
93
+ };
94
+ export const ErrorState = ErrorStateTemplate.bind({});
95
+ ErrorState.args = {
96
+ label: 'Industries',
97
+ required: true,
98
+ placeholder: 'Type or paste a list of dropdown values, so there is one value per line.',
99
+ };
100
+ const MAX_REACHED_INITIAL = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
101
+ const MaxReachedTemplate = (props) => {
102
+ const { values: { data }, onChange, fieldErrors, } = useFormBehaviors({
103
+ initialState: { data: MAX_REACHED_INITIAL },
104
+ onSubmit: console.log,
105
+ validations: { data: VALIDATION_required_no_duplicates },
106
+ });
107
+ return (_jsx(BKJPillSelect, { ...props, options: opts, max: 10, onChange: onChange, name: "data", value: data, error: fieldErrors['data'] }));
108
+ };
109
+ export const MaxReached = MaxReachedTemplate.bind({});
110
+ MaxReached.args = {
111
+ label: 'Industries',
112
+ required: true,
113
+ placeholder: 'Type to add another industry…',
114
+ };
76
115
  export default setup;
77
116
  //# sourceMappingURL=BKJPillSelect.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.stories.js","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,MAAM,MAAM,eAAe,CAAC;AACnC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,MAAM,KAAK,GAAG;IACZ,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,YAAY;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,gBAAgB;SACvB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;SACpB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;SACjB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,aAAa;SACpB;KACF;CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,CAAC,GAAG,CAAC;CACZ,CAAC;AACF,yBAAyB;AACzB,0CAA0C;AAC1C,+BAA+B;AAC/B,oBAAoB;AACpB,KAAK;AAEL,SAAS,iBAAiB,CAAC,IAAc;IACvC,IAAI,IAAI,GAAa,EAAE,CAAC;IACxB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,CAAC;IACxD,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAA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G,EACR,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAC1B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEzC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,8EAA8E;CAC5F,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"BKJPillSelect.stories.js","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,MAAM,MAAM,eAAe,CAAC;AACnC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,KAAK,GAAG;IACZ,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,YAAY;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,gBAAgB;SACvB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;SACpB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;SACjB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,aAAa;SACpB;KACF;CACF,CAAC;AAEF,MAAM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AAW,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE;KACzD,CAAC,CAAC;IACH,OAAO,CACL,KAAC,aAAa,OACR,KAAK,EACT,OAAO,EAAE,IAAI,EACb,GAAG,EAAE,EAAE,EACP,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAC1B,CACH,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,UAAU,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,+BAA+B;CAC7C,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -9,12 +9,10 @@ export declare const RequiredAsterisk: import("styled-components/dist/types").IS
9
9
  }, "disabled" | "key" | keyof import("react").LabelHTMLAttributes<HTMLLabelElement>> & {
10
10
  ref?: import("react").Ref<HTMLLabelElement>;
11
11
  }, never>> & string;
12
- export declare const BKJPillSelectWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
12
+ export declare const BKJPillSelectWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
13
  export declare const TextAreaWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TextAreaWrapperProps>> & string;
14
- export declare const BKJPillSelectComboBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>> & {
15
- children?: import("react").ReactNode;
16
- }, {
14
+ export declare const BKJPillSelectComboBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Pick<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>>, "target" | "name" | "value" | "label" | "checked" | "filter" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "onIsOpenChange" | "allowedAutoPlacements" | "showFullFocusBorder" | "$dropdownHeight"> & import("react").RefAttributes<HTMLInputElement>, {
17
15
  hasValue: boolean;
18
16
  isFocused: boolean;
19
- }>> & string & Omit<import("react").FC<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>>>, keyof import("react").Component<any, {}, any>>;
17
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<Pick<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxProps<import("../BKJComboBox/BKJComboBox.types.js").IBKJComboBoxOption<string | number, string, string | number>>, "target" | "name" | "value" | "label" | "checked" | "filter" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "onIsOpenChange" | "allowedAutoPlacements" | "showFullFocusBorder" | "$dropdownHeight"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
20
18
  //# sourceMappingURL=BKJPillSelect.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.styled.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.styled.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,eAAO,MAAM,UAAU;eAA6B,OAAO;YAE1D,CAAC;AAEF,eAAO,MAAM,YAAY,sOAExB,CAAC;AAEF,eAAO,MAAM,YAAY,uSAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;eApBuB,OAAO;;;mBAsB1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,sOAIhC,CAAC;AAEF,eAAO,MAAM,eAAe,yPAgD3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;cAAmC,OAAO;eAAa,OAAO;6PAY/F,CAAC"}
1
+ {"version":3,"file":"BKJPillSelect.styled.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.styled.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,eAAO,MAAM,UAAU;eAA6B,OAAO;YAE1D,CAAC;AAEF,eAAO,MAAM,YAAY,sOAExB,CAAC;AAEF,eAAO,MAAM,YAAY,uSAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;eApBuB,OAAO;;;mBAsB1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,6NAIhC,CAAC;AAEF,eAAO,MAAM,eAAe,yPAgD3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;cAAmC,OAAO;eAAa,OAAO;40MAY/F,CAAC"}
@@ -21,7 +21,7 @@ export const InputMessage = styled.label `
21
21
  export const RequiredAsterisk = styled(InputLabel) `
22
22
  ${InputRequiredAsteriskCSS}
23
23
  `;
24
- export const BKJPillSelectWrapper = styled.label `
24
+ export const BKJPillSelectWrapper = styled.div `
25
25
  ${InputWrapperCSS};
26
26
  display: flex;
27
27
  flex-direction: column;
@@ -1 +1 @@
1
- {"version":3,"file":"BKJPillSelect.styled.js","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,eAAe,EACf,YAAY,GACb,MAAM,WAAW,CAAC;AAGnB,MAAM,CAAC,MAAM,UAAU,GAA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,CACjB,QAAQ;IACR,GAAG,CAAA;;;;;;KAMF;;IAED,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAA,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA,EAAE,CAAC;CACjD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BKJPillSelect.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BKJPillSelect.test.d.ts","sourceRoot":"","sources":["../../../src/components/BKJPillSelect/BKJPillSelect.test.tsx"],"names":[],"mappings":""}