@punch-in/buffet-modern-core 3.3.11 → 3.3.13

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 (61) hide show
  1. package/README.md +2 -2
  2. package/build/bundle.development.js +41 -41
  3. package/build/bundle.production.js +1 -1
  4. package/build/esm/components/Button/index.js +1 -1
  5. package/build/esm/components/Checkbox/index.js +1 -1
  6. package/build/esm/components/DatePicker/index.js +1 -1
  7. package/build/esm/components/Enumeration/index.js +1 -1
  8. package/build/esm/components/HeaderActions/index.js +1 -1
  9. package/build/esm/components/HeaderTitle/index.js +1 -1
  10. package/build/esm/components/Icon/index.js +1 -1
  11. package/build/esm/components/IconLinks/index.js +1 -1
  12. package/build/esm/components/InputNumber/index.js +1 -1
  13. package/build/esm/components/InputText/PrefixIcon.js +1 -1
  14. package/build/esm/components/InputText/index.js +1 -1
  15. package/build/esm/components/Label/index.js +1 -1
  16. package/build/esm/components/List/index.js +1 -1
  17. package/build/esm/components/ListHeader/index.js +1 -1
  18. package/build/esm/components/ListRow/index.js +1 -1
  19. package/build/esm/components/NavTabs/index.js +1 -1
  20. package/build/esm/components/Option/index.js +1 -1
  21. package/build/esm/components/Paging/index.js +1 -1
  22. package/build/esm/components/PrefixIcon/index.js +1 -1
  23. package/build/esm/components/Select/index.js +1 -1
  24. package/build/esm/components/Table/index.js +1 -1
  25. package/build/esm/components/Table/tests/index.js +1 -1
  26. package/build/esm/components/TableHeader/index.js +1 -1
  27. package/build/esm/components/TableRow/index.js +1 -1
  28. package/build/esm/components/Textarea/index.js +1 -1
  29. package/build/esm/components/TimePicker/index.js +1 -1
  30. package/build/esm/components/Toggle/index.js +1 -1
  31. package/package.json +6 -6
  32. package/src/components/Button/index.js +1 -1
  33. package/src/components/Checkbox/index.js +1 -1
  34. package/src/components/DatePicker/index.js +1 -1
  35. package/src/components/Enumeration/index.js +1 -1
  36. package/src/components/HeaderActions/index.js +1 -1
  37. package/src/components/HeaderTitle/index.js +1 -1
  38. package/src/components/Icon/index.js +1 -1
  39. package/src/components/IconLinks/index.js +1 -1
  40. package/src/components/InputNumber/index.js +1 -1
  41. package/src/components/InputText/PrefixIcon.js +1 -1
  42. package/src/components/InputText/index.js +1 -1
  43. package/src/components/Label/index.js +1 -1
  44. package/src/components/List/index.js +1 -1
  45. package/src/components/ListHeader/index.js +1 -1
  46. package/src/components/ListRow/index.js +1 -1
  47. package/src/components/NavTabs/index.js +1 -1
  48. package/src/components/Option/index.js +1 -1
  49. package/src/components/Paging/index.js +1 -1
  50. package/src/components/PrefixIcon/index.js +1 -1
  51. package/src/components/Select/index.js +1 -1
  52. package/src/components/Table/index.js +1 -1
  53. package/src/components/Table/tests/index.js +1 -1
  54. package/src/components/TableHeader/index.js +1 -1
  55. package/src/components/TableHeader/tests/index.test.js +1 -1
  56. package/src/components/TableRow/index.js +1 -1
  57. package/src/components/TableRow/tests/index.test.js +1 -1
  58. package/src/components/Textarea/index.js +1 -1
  59. package/src/components/TimePicker/index.js +1 -1
  60. package/src/components/TimePicker/tests/index.test.js +1 -1
  61. package/src/components/Toggle/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punch-in/buffet-modern-core",
3
- "version": "3.3.11",
3
+ "version": "3.3.13",
4
4
  "description": "Buffetjs Core Components",
5
5
  "main": "build",
6
6
  "module": "build/esm/index.js",
@@ -35,10 +35,10 @@
35
35
  "@fortawesome/free-regular-svg-icons": "^5.11.2",
36
36
  "@fortawesome/free-solid-svg-icons": "^5.11.2",
37
37
  "@fortawesome/react-fontawesome": "^0.1.4",
38
- "@punch-in/buffet-modern": "^3.3.11",
39
- "@punch-in/buffet-modern-hooks": "^3.3.11",
40
- "@punch-in/buffet-modern-icons": "^3.3.11",
41
- "@punch-in/buffet-modern-utils": "^3.3.11",
38
+ "@punch-in/buffet-modern-hooks": "^3.3.13",
39
+ "@punch-in/buffet-modern-icons": "^3.3.13",
40
+ "@punch-in/buffet-modern-styles": "^3.3.13",
41
+ "@punch-in/buffet-modern-utils": "^3.3.13",
42
42
  "invariant": "^2.2.4",
43
43
  "lodash": "4.17.21",
44
44
  "moment": "^2.24.0",
@@ -119,5 +119,5 @@
119
119
  "type": "git",
120
120
  "url": "https://github.com/strapi/buffet"
121
121
  },
122
- "gitHead": "63c6c13e0fd7feed8e0ea89f751b68b02ef767ea"
122
+ "gitHead": "36e2286e53c1c5ef4cb6c377a41da4bfb335cec5"
123
123
  }
@@ -10,7 +10,7 @@ import {
10
10
  LoadingIndicator,
11
11
  Button as StyledButton,
12
12
  colors,
13
- } from '@punch-in/buffet-modern';
13
+ } from '@punch-in/buffet-modern-styles';
14
14
  import { Plus } from '@punch-in/buffet-modern-icons';
15
15
  import Flex from '../Flex';
16
16
  import PrefixIcon from '../PrefixIcon';
@@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
10
10
  import {
11
11
  Checkbox as StyledCheckbox,
12
12
  CheckboxWrapper,
13
- } from '@punch-in/buffet-modern';
13
+ } from '@punch-in/buffet-modern-styles';
14
14
  import Label from '../Label';
15
15
 
16
16
  function Checkbox({
@@ -14,7 +14,7 @@ import { DayPickerSingleDateController } from 'react-dates';
14
14
  import { faCalendarAlt } from '@fortawesome/free-regular-svg-icons';
15
15
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
16
16
 
17
- import { DatePicker as StyledDatepicker } from '@punch-in/buffet-modern';
17
+ import { DatePicker as StyledDatepicker } from '@punch-in/buffet-modern-styles';
18
18
 
19
19
  import reducer, { initialState } from './reducer';
20
20
 
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
9
9
  import {
10
10
  Enumeration as StyledEnumeration,
11
11
  EnumerationWrapper,
12
- } from '@punch-in/buffet-modern';
12
+ } from '@punch-in/buffet-modern-styles';
13
13
 
14
14
  import Label from '../Label';
15
15
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { HeaderActions as Wrapper } from '@punch-in/buffet-modern';
9
+ import { HeaderActions as Wrapper } from '@punch-in/buffet-modern-styles';
10
10
 
11
11
  import Button from '../Button';
12
12
 
@@ -10,7 +10,7 @@ import { upperFirst } from 'lodash';
10
10
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
11
11
  import { faPencilAlt } from '@fortawesome/free-solid-svg-icons';
12
12
 
13
- import { HeaderTitle as Wrapper } from '@punch-in/buffet-modern';
13
+ import { HeaderTitle as Wrapper } from '@punch-in/buffet-modern-styles';
14
14
 
15
15
  function HeaderTitle({ title, children, cta }) {
16
16
  const content = upperFirst(title) || children;
@@ -12,7 +12,7 @@ import {
12
12
  faPlus,
13
13
  } from '@fortawesome/free-solid-svg-icons';
14
14
  import { faClock } from '@fortawesome/free-regular-svg-icons';
15
- import { Icon as StyledIcon } from '@punch-in/buffet-modern';
15
+ import { Icon as StyledIcon } from '@punch-in/buffet-modern-styles';
16
16
 
17
17
  const iconMap = new Map([
18
18
  ['time', faClock],
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
 
11
- import { Links as StyledLinks } from '@punch-in/buffet-modern';
11
+ import { Links as StyledLinks } from '@punch-in/buffet-modern-styles';
12
12
  import Icon from '../Icon';
13
13
 
14
14
  function IconLinks({ links }) {
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import RcInputNumber from 'rc-input-number';
9
9
  import PropTypes from 'prop-types';
10
- import { InputNumber as StyledInputNumber } from '@punch-in/buffet-modern';
10
+ import { InputNumber as StyledInputNumber } from '@punch-in/buffet-modern-styles';
11
11
 
12
12
  function InputNumber({
13
13
  autoFocus,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { IconText, IconWrapper } from '@punch-in/buffet-modern';
3
+ import { IconText, IconWrapper } from '@punch-in/buffet-modern-styles';
4
4
 
5
5
  import Icon from '../Icon';
6
6
 
@@ -10,7 +10,7 @@ import {
10
10
  IconWrapper,
11
11
  InputText as Input,
12
12
  InputWrapper,
13
- } from '@punch-in/buffet-modern';
13
+ } from '@punch-in/buffet-modern-styles';
14
14
  import Icon from '../Icon';
15
15
  import PrefixIcon from './PrefixIcon';
16
16
 
@@ -8,7 +8,7 @@ import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import { isFunction } from 'lodash';
10
10
 
11
- import { Label as StyledLabel } from '@punch-in/buffet-modern';
11
+ import { Label as StyledLabel } from '@punch-in/buffet-modern-styles';
12
12
 
13
13
  function Label(props) {
14
14
  const content = (() => {
@@ -6,7 +6,7 @@
6
6
 
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { List as StyledList, LoadingIndicator } from '@punch-in/buffet-modern';
9
+ import { List as StyledList, LoadingIndicator } from '@punch-in/buffet-modern-styles';
10
10
 
11
11
  import ListRow from '../ListRow';
12
12
  import Padded from '../Padded';
@@ -6,7 +6,7 @@
6
6
 
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { ListHeader as StyledListHeader } from '@punch-in/buffet-modern';
9
+ import { ListHeader as StyledListHeader } from '@punch-in/buffet-modern-styles';
10
10
  import Button from '../Button';
11
11
  import Flex from '../Flex';
12
12
  import Padded from '../Padded';
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
 
10
- import { ListRow as StyledListRow } from '@punch-in/buffet-modern';
10
+ import { ListRow as StyledListRow } from '@punch-in/buffet-modern-styles';
11
11
 
12
12
  function ListRow({ cells, onClick }) {
13
13
  return (
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import { NavLink } from 'react-router-dom';
9
9
  import PropTypes from 'prop-types';
10
- import { Tab as StyledTab, colors } from '@punch-in/buffet-modern';
10
+ import { Tab as StyledTab, colors } from '@punch-in/buffet-modern-styles';
11
11
  import { gradient } from '@punch-in/buffet-modern-utils';
12
12
 
13
13
  function NavTabs({ links }) {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Remove } from '@punch-in/buffet-modern-icons';
4
- import { Option as Wrapper } from '@punch-in/buffet-modern';
4
+ import { Option as Wrapper } from '@punch-in/buffet-modern-styles';
5
5
  import { upperFirst } from 'lodash';
6
6
  import RemoveButton from './RemoveButton';
7
7
 
@@ -8,7 +8,7 @@ import React from 'react';
8
8
  import { Pagination, PaginationItem, PaginationLink } from 'reactstrap';
9
9
  import PropTypes from 'prop-types';
10
10
 
11
- import { Paging as StyledPaging } from '@punch-in/buffet-modern';
11
+ import { Paging as StyledPaging } from '@punch-in/buffet-modern-styles';
12
12
  import Icon from '../Icon';
13
13
  /* eslint-disable react/no-array-index-key */
14
14
 
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- import { sizes } from '@punch-in/buffet-modern';
3
+ import { sizes } from '@punch-in/buffet-modern-styles';
4
4
  import Icon from '../Icon';
5
5
 
6
6
  const PrefixIcon = styled(Icon)`
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import invariant from 'invariant';
10
- import { Select as StyledSelect } from '@punch-in/buffet-modern';
10
+ import { Select as StyledSelect } from '@punch-in/buffet-modern-styles';
11
11
 
12
12
  function Select({
13
13
  autoFocus,
@@ -11,7 +11,7 @@ import {
11
11
  LoadingIndicator,
12
12
  Table as StyledTable,
13
13
  TableRowEmpty,
14
- } from '@punch-in/buffet-modern';
14
+ } from '@punch-in/buffet-modern-styles';
15
15
  import TableHeader from '../TableHeader';
16
16
  import TableRow from '../TableRow';
17
17
  import ActionCollapse from './ActionCollapse';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
3
 
4
- import { TableRowEmpty } from '@punch-in/buffet-modern';
4
+ import { TableRowEmpty } from '@punch-in/buffet-modern-styles';
5
5
  import TableRow from '../../TableRow';
6
6
  import Table from '../index';
7
7
  import ActionCollapse from '../ActionCollapse';
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import { get } from 'lodash';
10
- import { Checkbox } from '@punch-in/buffet-modern';
10
+ import { Checkbox } from '@punch-in/buffet-modern-styles';
11
11
  import Icon from '../Icon';
12
12
 
13
13
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import { Checkbox } from '@punch-in/buffet-modern';
3
+ import { Checkbox } from '@punch-in/buffet-modern-styles';
4
4
 
5
5
  import TableHeader from '../index';
6
6
 
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import { isFunction, isObject } from 'lodash';
10
- import { Checkbox, Links as StyledLinks } from '@punch-in/buffet-modern';
10
+ import { Checkbox, Links as StyledLinks } from '@punch-in/buffet-modern-styles';
11
11
  import Icon from '../Icon';
12
12
 
13
13
  function TableRow({
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import { Checkbox, Links as StyledLinks } from '@punch-in/buffet-modern';
3
+ import { Checkbox, Links as StyledLinks } from '@punch-in/buffet-modern-styles';
4
4
 
5
5
  import TableRow from '../index';
6
6
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { Textarea as StyledTextArea } from '@punch-in/buffet-modern';
9
+ import { Textarea as StyledTextArea } from '@punch-in/buffet-modern-styles';
10
10
 
11
11
  function Textarea(props) {
12
12
  return <StyledTextArea {...props} />;
@@ -19,7 +19,7 @@ import {
19
19
  TimePicker as StyledTimePicker,
20
20
  TimePickerWrapper,
21
21
  TimeList,
22
- } from '@punch-in/buffet-modern';
22
+ } from '@punch-in/buffet-modern-styles';
23
23
  import {
24
24
  useEventListener,
25
25
  useShortcutEffect,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
3
 
4
- import { TimePicker as StyledTimePicker } from '@punch-in/buffet-modern';
4
+ import { TimePicker as StyledTimePicker } from '@punch-in/buffet-modern-styles';
5
5
  import TimePicker, { timeFormatter } from '../index';
6
6
 
7
7
  const defaultProps = { name: 'time' };
@@ -7,7 +7,7 @@
7
7
  import React, { useCallback } from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
 
10
- import { Toggle as StyledToggle, ToggleWrapper } from '@punch-in/buffet-modern';
10
+ import { Toggle as StyledToggle, ToggleWrapper } from '@punch-in/buffet-modern-styles';
11
11
  import Label from '../Label';
12
12
 
13
13
  function Toggle({