@veeqo/ui 13.0.0 → 13.1.0

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 (63) hide show
  1. package/dist/components/PhoneInput/PhoneInput.cjs +50 -0
  2. package/dist/components/PhoneInput/PhoneInput.cjs.map +1 -0
  3. package/dist/components/PhoneInput/PhoneInput.d.ts +3 -0
  4. package/dist/components/PhoneInput/PhoneInput.js +44 -0
  5. package/dist/components/PhoneInput/PhoneInput.js.map +1 -0
  6. package/dist/components/PhoneInput/PhoneInput.module.scss.cjs +9 -0
  7. package/dist/components/PhoneInput/PhoneInput.module.scss.cjs.map +1 -0
  8. package/dist/components/PhoneInput/PhoneInput.module.scss.js +7 -0
  9. package/dist/components/PhoneInput/PhoneInput.module.scss.js.map +1 -0
  10. package/dist/components/PhoneInput/components/SelectedCountry.cjs +18 -0
  11. package/dist/components/PhoneInput/components/SelectedCountry.cjs.map +1 -0
  12. package/dist/components/PhoneInput/components/SelectedCountry.d.ts +5 -0
  13. package/dist/components/PhoneInput/components/SelectedCountry.js +12 -0
  14. package/dist/components/PhoneInput/components/SelectedCountry.js.map +1 -0
  15. package/dist/components/PhoneInput/constants.cjs +1243 -0
  16. package/dist/components/PhoneInput/constants.cjs.map +1 -0
  17. package/dist/components/PhoneInput/constants.d.ts +4 -0
  18. package/dist/components/PhoneInput/constants.js +1239 -0
  19. package/dist/components/PhoneInput/constants.js.map +1 -0
  20. package/dist/components/PhoneInput/hooks/useApplyCountryCode.cjs +48 -0
  21. package/dist/components/PhoneInput/hooks/useApplyCountryCode.cjs.map +1 -0
  22. package/dist/components/PhoneInput/hooks/useApplyCountryCode.d.ts +11 -0
  23. package/dist/components/PhoneInput/hooks/useApplyCountryCode.js +46 -0
  24. package/dist/components/PhoneInput/hooks/useApplyCountryCode.js.map +1 -0
  25. package/dist/components/PhoneInput/index.cjs +11 -0
  26. package/dist/components/PhoneInput/index.cjs.map +1 -0
  27. package/dist/components/PhoneInput/index.d.ts +308 -0
  28. package/dist/components/PhoneInput/index.js +9 -0
  29. package/dist/components/PhoneInput/index.js.map +1 -0
  30. package/dist/components/PhoneInput/types.d.ts +25 -0
  31. package/dist/components/PhoneInput/utils/utils.cjs +69 -0
  32. package/dist/components/PhoneInput/utils/utils.cjs.map +1 -0
  33. package/dist/components/PhoneInput/utils/utils.d.ts +14 -0
  34. package/dist/components/PhoneInput/utils/utils.js +60 -0
  35. package/dist/components/PhoneInput/utils/utils.js.map +1 -0
  36. package/dist/components/SelectDropdown/SelectDropdown.cjs +2 -3
  37. package/dist/components/SelectDropdown/SelectDropdown.cjs.map +1 -1
  38. package/dist/components/SelectDropdown/SelectDropdown.d.ts +1 -1
  39. package/dist/components/SelectDropdown/SelectDropdown.js +2 -3
  40. package/dist/components/SelectDropdown/SelectDropdown.js.map +1 -1
  41. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.cjs +2 -2
  42. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.cjs.map +1 -1
  43. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.d.ts +1 -1
  44. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.js +2 -2
  45. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.js.map +1 -1
  46. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.cjs +5 -3
  47. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.cjs.map +1 -1
  48. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.d.ts +2 -1
  49. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.js +5 -3
  50. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.js.map +1 -1
  51. package/dist/components/SelectDropdown/components/ListItem/ListItem.cjs +2 -2
  52. package/dist/components/SelectDropdown/components/ListItem/ListItem.cjs.map +1 -1
  53. package/dist/components/SelectDropdown/components/ListItem/ListItem.d.ts +1 -1
  54. package/dist/components/SelectDropdown/components/ListItem/ListItem.js +2 -2
  55. package/dist/components/SelectDropdown/components/ListItem/ListItem.js.map +1 -1
  56. package/dist/components/SelectDropdown/components/types.d.ts +1 -0
  57. package/dist/components/SelectDropdown/types.d.ts +2 -1
  58. package/dist/components/index.d.ts +1 -0
  59. package/dist/index.cjs +4 -2
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.js +1 -0
  62. package/dist/index.js.map +1 -1
  63. package/package.json +1 -1
@@ -8,9 +8,9 @@ import { buildClassnames } from '../../../../utils/buildClassnames.js';
8
8
  import 'uid/secure';
9
9
  import itemStyles from '../item.module.scss.js';
10
10
 
11
- const ListItem = ({ id, label, href, appearance = 'primary', className, ...props }) => {
11
+ const ListItem = ({ id, label, href, appearance = 'primary', shouldDisableSelectionRender = false, className, ...props }) => {
12
12
  const idComputed = useId({ id, prefix: 'list-item' });
13
- return (React__default.createElement(ListBoxItem, { id: idComputed, textValue: label, href: href, className: buildClassnames([itemStyles.item, itemStyles[`appearance-${appearance}`], className]), ...props }, ({ selectionMode, allowsDragging, isSelected, isHovered }) => (React__default.createElement(ItemContent, { selectionMode: selectionMode, allowsDragging: allowsDragging, isSelected: isSelected, isHovered: isHovered, label: label, isLink: Boolean(href), appearance: appearance, itemType: "list", ...props }))));
13
+ return (React__default.createElement(ListBoxItem, { id: idComputed, textValue: label, href: href, className: buildClassnames([itemStyles.item, itemStyles[`appearance-${appearance}`], className]), ...props }, ({ selectionMode, allowsDragging, isSelected, isHovered }) => (React__default.createElement(ItemContent, { selectionMode: selectionMode, allowsDragging: allowsDragging, isSelected: isSelected, isHovered: isHovered, label: label, isLink: Boolean(href), appearance: appearance, itemType: "list", shouldDisableSelectionRender: shouldDisableSelectionRender, ...props }))));
14
14
  };
15
15
 
16
16
  export { ListItem };
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sources":["../../../../../src/components/SelectDropdown/components/ListItem/ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport { ListBoxItem, ListBoxItemRenderProps } from 'react-aria-components';\nimport { useId } from '../../../../hooks';\nimport { ListItemProps } from './types';\nimport { ItemContent } from '../ItemContent';\nimport { buildClassnames } from '../../../../utils';\n\nimport styles from '../item.module.scss';\n\nexport const ListItem = ({\n id,\n label,\n href,\n appearance = 'primary',\n className,\n ...props\n}: ListItemProps) => {\n const idComputed = useId({ id, prefix: 'list-item' });\n\n return (\n <ListBoxItem\n id={idComputed}\n textValue={label}\n href={href}\n className={buildClassnames([styles.item, styles[`appearance-${appearance}`], className])}\n {...props}\n >\n {/* use react aria's render props to add more such as isHovered */}\n {({ selectionMode, allowsDragging, isSelected, isHovered }: ListBoxItemRenderProps) => (\n <ItemContent\n selectionMode={selectionMode}\n allowsDragging={allowsDragging}\n isSelected={isSelected}\n isHovered={isHovered}\n label={label}\n isLink={Boolean(href)}\n appearance={appearance}\n itemType=\"list\"\n {...props}\n />\n )}\n </ListBoxItem>\n );\n};\n"],"names":["React","styles"],"mappings":";;;;;;;;;;MASa,QAAQ,GAAG,CAAC,EACvB,EAAE,EACF,KAAK,EACL,IAAI,EACJ,UAAU,GAAG,SAAS,EACtB,SAAS,EACT,GAAG,KAAK,EACM,KAAI;AAClB,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAErD,QACEA,6BAAC,WAAW,EAAA,EACV,EAAE,EAAE,UAAU,EACd,SAAS,EAAE,KAAK,EAChB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,eAAe,CAAC,CAACC,UAAM,CAAC,IAAI,EAAEA,UAAM,CAAC,CAAA,WAAA,EAAc,UAAU,CAAE,CAAA,CAAC,EAAE,SAAS,CAAC,CAAC,EACpF,GAAA,KAAK,IAGR,CAAC,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAA0B,MAChFD,cAAA,CAAA,aAAA,CAAC,WAAW,EACV,EAAA,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EACrB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAC,MAAM,EAAA,GACX,KAAK,EACT,CAAA,CACH,CACW;AAElB;;;;"}
1
+ {"version":3,"file":"ListItem.js","sources":["../../../../../src/components/SelectDropdown/components/ListItem/ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport { ListBoxItem, ListBoxItemRenderProps } from 'react-aria-components';\nimport { useId } from '../../../../hooks';\nimport { ListItemProps } from './types';\nimport { ItemContent } from '../ItemContent';\nimport { buildClassnames } from '../../../../utils';\n\nimport styles from '../item.module.scss';\n\nexport const ListItem = ({\n id,\n label,\n href,\n appearance = 'primary',\n shouldDisableSelectionRender = false,\n className,\n ...props\n}: ListItemProps) => {\n const idComputed = useId({ id, prefix: 'list-item' });\n\n return (\n <ListBoxItem\n id={idComputed}\n textValue={label}\n href={href}\n className={buildClassnames([styles.item, styles[`appearance-${appearance}`], className])}\n {...props}\n >\n {/* use react aria's render props to add more such as isHovered */}\n {({ selectionMode, allowsDragging, isSelected, isHovered }: ListBoxItemRenderProps) => (\n <ItemContent\n selectionMode={selectionMode}\n allowsDragging={allowsDragging}\n isSelected={isSelected}\n isHovered={isHovered}\n label={label}\n isLink={Boolean(href)}\n appearance={appearance}\n itemType=\"list\"\n shouldDisableSelectionRender={shouldDisableSelectionRender}\n {...props}\n />\n )}\n </ListBoxItem>\n );\n};\n"],"names":["React","styles"],"mappings":";;;;;;;;;;AASa,MAAA,QAAQ,GAAG,CAAC,EACvB,EAAE,EACF,KAAK,EACL,IAAI,EACJ,UAAU,GAAG,SAAS,EACtB,4BAA4B,GAAG,KAAK,EACpC,SAAS,EACT,GAAG,KAAK,EACM,KAAI;AAClB,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAErD,QACEA,6BAAC,WAAW,EAAA,EACV,EAAE,EAAE,UAAU,EACd,SAAS,EAAE,KAAK,EAChB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,eAAe,CAAC,CAACC,UAAM,CAAC,IAAI,EAAEA,UAAM,CAAC,CAAc,WAAA,EAAA,UAAU,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,EAAA,GACpF,KAAK,EAGR,EAAA,CAAC,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAA0B,MAChFD,6BAAC,WAAW,EAAA,EACV,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EACrB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAC,MAAM,EACf,4BAA4B,EAAE,4BAA4B,EAAA,GACtD,KAAK,EACT,CAAA,CACH,CACW;AAElB;;;;"}
@@ -17,4 +17,5 @@ export type BaseItemProps = {
17
17
  };
18
18
  /** Used to differentiate between items */
19
19
  appearance?: 'primary' | 'secondary';
20
+ shouldDisableSelectionRender?: boolean;
20
21
  };
@@ -1,5 +1,5 @@
1
1
  import { Key, ListBoxProps } from 'react-aria-components';
2
- import { ReactElement } from 'react';
2
+ import { ReactNode, ReactElement } from 'react';
3
3
  import { ButtonProps } from '../Button/types';
4
4
  import { ListItemProps } from './components/ListItem/types';
5
5
  import { ListItemSectionProps } from './components/ListItemSection/ListItemSection';
@@ -34,6 +34,7 @@ export type SelectDropdownProps = (SelectDropdownSingleProps | SelectDropdownMul
34
34
  onSearchChange?: (value: string) => void;
35
35
  topAction?: CTAButtonProps;
36
36
  isSelectDropdownOpen?: boolean;
37
+ selectedSlot?: ReactNode;
37
38
  'aria-label'?: string;
38
39
  'aria-labelledby'?: string;
39
40
  'aria-describedby'?: string;
@@ -71,3 +71,4 @@ export { ThemeInjector } from './ThemeInjector';
71
71
  export { DataGrid } from './DataGrid';
72
72
  export { FlexCol } from './Flex/FlexCol';
73
73
  export { FlexRow } from './Flex/FlexRow';
74
+ export { PhoneInput } from './PhoneInput';
package/dist/index.cjs CHANGED
@@ -84,6 +84,7 @@ var ThemeInjector = require('./components/ThemeInjector/ThemeInjector.cjs');
84
84
  var DataGrid = require('./components/DataGrid/DataGrid.cjs');
85
85
  var FlexCol = require('./components/Flex/FlexCol/FlexCol.cjs');
86
86
  var FlexRow = require('./components/Flex/FlexRow/FlexRow.cjs');
87
+ var index$5 = require('./components/PhoneInput/index.cjs');
87
88
  var useClickOutside = require('./hooks/useClickOutside.cjs');
88
89
  var useDebounce = require('./hooks/useDebounce.cjs');
89
90
  var useDropdown = require('./hooks/useDropdown.cjs');
@@ -101,7 +102,7 @@ var buildClassnames = require('./utils/buildClassnames.cjs');
101
102
  var color = require('./utils/color.cjs');
102
103
  var generateId = require('./utils/generateId.cjs');
103
104
  var assignCssVars = require('./utils/assignCssVars.cjs');
104
- var index$5 = require('./theme/index.cjs');
105
+ var index$6 = require('./theme/index.cjs');
105
106
  var AccountsIcon = require('./icons/design-system/components/AccountsIcon.cjs');
106
107
  var AccountsOutlineIcon = require('./icons/design-system/components/AccountsOutlineIcon.cjs');
107
108
  var AddIcon = require('./icons/design-system/components/AddIcon.cjs');
@@ -412,6 +413,7 @@ exports.ThemeInjector = ThemeInjector.ThemeInjector;
412
413
  exports.DataGrid = DataGrid.DataGrid;
413
414
  exports.FlexCol = FlexCol.FlexCol;
414
415
  exports.FlexRow = FlexRow.FlexRow;
416
+ exports.PhoneInput = index$5.PhoneInput;
415
417
  exports.useClickOutside = useClickOutside.useClickOutside;
416
418
  exports.useDebounce = useDebounce.useDebounce;
417
419
  exports.useDropdown = useDropdown.useDropdown;
@@ -431,7 +433,7 @@ exports.getOpaqueHexColor = color.getOpaqueHexColor;
431
433
  exports.hexToRgb = color.hexToRgb;
432
434
  exports.generateId = generateId.generateId;
433
435
  exports.assignCssVars = assignCssVars.assignCssVars;
434
- exports.theme = index$5.theme;
436
+ exports.theme = index$6.theme;
435
437
  exports.AccountsIcon = AccountsIcon.ReactComponent;
436
438
  exports.AccountsOutlineIcon = AccountsOutlineIcon.ReactComponent;
437
439
  exports.AddIcon = AddIcon.ReactComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -82,6 +82,7 @@ export { ThemeInjector } from './components/ThemeInjector/ThemeInjector.js';
82
82
  export { DataGrid } from './components/DataGrid/DataGrid.js';
83
83
  export { FlexCol } from './components/Flex/FlexCol/FlexCol.js';
84
84
  export { FlexRow } from './components/Flex/FlexRow/FlexRow.js';
85
+ export { PhoneInput } from './components/PhoneInput/index.js';
85
86
  export { useClickOutside } from './hooks/useClickOutside.js';
86
87
  export { useDebounce } from './hooks/useDebounce.js';
87
88
  export { useDropdown } from './hooks/useDropdown.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/ui",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "New optimised component library for Veeqo.",
5
5
  "author": "Robert Wealthall",
6
6
  "license": "ISC",