@charcoal-ui/react-sandbox 3.0.0-beta.2 → 3.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/_lib/compat.d.ts +1 -1
  2. package/dist/_lib/compat.d.ts.map +1 -1
  3. package/dist/components/Carousel/index.d.ts +1 -1
  4. package/dist/components/Carousel/index.d.ts.map +1 -1
  5. package/dist/components/Carousel/index.story.d.ts.map +1 -1
  6. package/dist/components/CarouselButton/index.d.ts.map +1 -1
  7. package/dist/components/CarouselButton/index.story.d.ts.map +1 -1
  8. package/dist/components/Filter/index.d.ts +1 -1
  9. package/dist/components/Filter/index.d.ts.map +1 -1
  10. package/dist/components/Filter/index.story.d.ts.map +1 -1
  11. package/dist/components/HintText/index.d.ts +1 -1
  12. package/dist/components/HintText/index.d.ts.map +1 -1
  13. package/dist/components/HintText/index.story.d.ts.map +1 -1
  14. package/dist/components/Layout/index.d.ts +1 -1
  15. package/dist/components/Layout/index.d.ts.map +1 -1
  16. package/dist/components/LeftMenu/index.d.ts.map +1 -1
  17. package/dist/components/MenuListItem/index.d.ts +1 -1
  18. package/dist/components/MenuListItem/index.d.ts.map +1 -1
  19. package/dist/components/MenuListItem/index.story.d.ts.map +1 -1
  20. package/dist/components/Pager/index.d.ts +1 -2
  21. package/dist/components/Pager/index.d.ts.map +1 -1
  22. package/dist/components/Pager/index.story.d.ts +1 -2
  23. package/dist/components/Pager/index.story.d.ts.map +1 -1
  24. package/dist/components/SwitchCheckbox/index.d.ts +1 -1
  25. package/dist/components/SwitchCheckbox/index.d.ts.map +1 -1
  26. package/dist/components/SwitchCheckbox/index.story.d.ts +1 -2
  27. package/dist/components/SwitchCheckbox/index.story.d.ts.map +1 -1
  28. package/dist/components/TextEllipsis/index.story.d.ts.map +1 -1
  29. package/dist/components/WithIcon/index.d.ts +1 -1
  30. package/dist/components/WithIcon/index.d.ts.map +1 -1
  31. package/dist/components/WithIcon/index.story.d.ts +1 -1
  32. package/dist/components/WithIcon/index.story.d.ts.map +1 -1
  33. package/dist/components/icons/Base.d.ts +1 -1
  34. package/dist/components/icons/Base.d.ts.map +1 -1
  35. package/dist/components/icons/DotsIcon.d.ts.map +1 -1
  36. package/dist/components/icons/InfoIcon.d.ts.map +1 -1
  37. package/dist/components/icons/NextIcon.d.ts.map +1 -1
  38. package/dist/components/icons/WedgeIcon.d.ts.map +1 -1
  39. package/dist/hooks/index.d.ts +2 -2
  40. package/dist/hooks/index.d.ts.map +1 -1
  41. package/dist/index.cjs.js +309 -247
  42. package/dist/index.cjs.js.map +1 -1
  43. package/dist/index.esm.js +249 -187
  44. package/dist/index.esm.js.map +1 -1
  45. package/dist/styled.d.ts +9 -9
  46. package/package.json +8 -8
  47. package/src/_lib/compat.ts +1 -1
  48. package/src/components/Carousel/index.story.tsx +0 -1
  49. package/src/components/Carousel/index.tsx +2 -1
  50. package/src/components/CarouselButton/index.story.tsx +0 -1
  51. package/src/components/CarouselButton/index.tsx +0 -1
  52. package/src/components/Filter/index.story.tsx +0 -1
  53. package/src/components/Filter/index.tsx +1 -1
  54. package/src/components/HintText/index.story.tsx +0 -1
  55. package/src/components/HintText/index.tsx +1 -1
  56. package/src/components/Layout/index.story.tsx +1 -1
  57. package/src/components/Layout/index.tsx +2 -1
  58. package/src/components/LeftMenu/index.tsx +0 -1
  59. package/src/components/MenuListItem/index.story.tsx +0 -1
  60. package/src/components/MenuListItem/index.tsx +2 -1
  61. package/src/components/Pager/index.story.tsx +1 -1
  62. package/src/components/Pager/index.tsx +2 -6
  63. package/src/components/SwitchCheckbox/index.story.tsx +0 -1
  64. package/src/components/SwitchCheckbox/index.tsx +1 -1
  65. package/src/components/TextEllipsis/index.story.tsx +0 -1
  66. package/src/components/WithIcon/index.story.tsx +1 -1
  67. package/src/components/WithIcon/index.tsx +2 -1
  68. package/src/components/icons/Base.tsx +1 -1
  69. package/src/components/icons/DotsIcon.tsx +0 -1
  70. package/src/components/icons/InfoIcon.tsx +0 -1
  71. package/src/components/icons/NextIcon.tsx +0 -1
  72. package/src/components/icons/WedgeIcon.tsx +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charcoal-ui/react-sandbox",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -46,17 +46,17 @@
46
46
  "typescript": "^4.9.5"
47
47
  },
48
48
  "dependencies": {
49
- "@charcoal-ui/foundation": "^3.0.0-beta.2",
50
- "@charcoal-ui/react": "^3.0.0-beta.2",
51
- "@charcoal-ui/styled": "^3.0.0-beta.2",
52
- "@charcoal-ui/theme": "^3.0.0-beta.2",
53
- "@charcoal-ui/utils": "^3.0.0-beta.2",
49
+ "@charcoal-ui/foundation": "^3.0.0-beta.4",
50
+ "@charcoal-ui/react": "^3.0.0-beta.4",
51
+ "@charcoal-ui/styled": "^3.0.0-beta.4",
52
+ "@charcoal-ui/theme": "^3.0.0-beta.4",
53
+ "@charcoal-ui/utils": "^3.0.0-beta.4",
54
54
  "polished": "^4.1.4",
55
55
  "react-spring": "^9.0.0",
56
56
  "warning": "^4.0.3"
57
57
  },
58
58
  "peerDependencies": {
59
- "react": ">=16.13.1",
59
+ "react": ">=17.0.0",
60
60
  "react-dom": ">=16.13.1",
61
61
  "styled-components": ">=5.1.1"
62
62
  },
@@ -72,5 +72,5 @@
72
72
  "url": "https://github.com/pixiv/charcoal.git",
73
73
  "directory": "packages/react-sandbox"
74
74
  },
75
- "gitHead": "dbf33f97e67fc6eabc4283fa38ac9af0b89292f4"
75
+ "gitHead": "47ec80abac2b87e78417a06db4943b3cb0408b78"
76
76
  }
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import * as React from 'react'
2
2
 
3
3
  /**
4
4
  * import { Story } from '@storybook/react/types-6-0'
@@ -1,5 +1,4 @@
1
1
  import { boolean, number, select, withKnobs } from '@storybook/addon-knobs'
2
- import React from 'react'
3
2
  import styled, { css } from 'styled-components'
4
3
  import Carousel from '.'
5
4
 
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useState, useCallback, useRef } from 'react'
1
+ import { useEffect, useState, useCallback, useRef } from 'react'
2
+ import * as React from 'react'
2
3
  import { animated, useSpring } from 'react-spring'
3
4
  import styled, { css } from 'styled-components'
4
5
  import { useDebounceAnimationState } from '../../foundation/hooks'
@@ -1,6 +1,5 @@
1
1
  import { action } from '@storybook/addon-actions'
2
2
  import { boolean, number, select, withKnobs } from '@storybook/addon-knobs'
3
- import React from 'react'
4
3
  import CarouselButton, { Direction, ScrollHintButton } from '.'
5
4
 
6
5
  export default {
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import styled, { css } from 'styled-components'
3
2
  import { unreachable } from '../../foundation/utils'
4
3
  import NextIcon, { WedgeDirection } from '../icons/NextIcon'
@@ -1,6 +1,5 @@
1
1
  import { action } from '@storybook/addon-actions'
2
2
  import { boolean } from '@storybook/addon-knobs'
3
- import React from 'react'
4
3
  import {
5
4
  Link as RouterLink,
6
5
  MemoryRouter as Router,
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import * as React from 'react'
2
2
  import styled, { css } from 'styled-components'
3
3
  import { useComponentAbstraction, LinkProps } from '@charcoal-ui/react'
4
4
  import { maxWidth } from '@charcoal-ui/utils'
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { Story } from '../../_lib/compat'
3
2
  import HintText from '.'
4
3
 
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import * as React from 'react'
2
2
  import styled, { css } from 'styled-components'
3
3
  import { theme } from '../../styled'
4
4
  import InfoIcon from '../icons/InfoIcon'
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import * as React from 'react'
2
2
  import styled from 'styled-components'
3
3
  import { dummyText } from '../../misc/storybook-helper'
4
4
  import { theme } from '../../styled'
@@ -1,4 +1,5 @@
1
- import React, { useContext } from 'react'
1
+ import { useContext } from 'react'
2
+ import * as React from 'react'
2
3
  import styled, { createGlobalStyle, css } from 'styled-components'
3
4
  import {
4
5
  MAIN_COLUMN_HORIZONTAL_MIN_MARGIN,
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import styled from 'styled-components'
3
2
  import { MenuListLinkItem } from '../MenuListItem'
4
3
  import { useComponentAbstraction } from '@charcoal-ui/react'
@@ -1,6 +1,5 @@
1
1
  import { action } from '@storybook/addon-actions'
2
2
  import { boolean, select, text } from '@storybook/addon-knobs'
3
- import React from 'react'
4
3
  import styled from 'styled-components'
5
4
  import SwitchCheckbox from '../SwitchCheckbox'
6
5
  import WithIcon from '../WithIcon'
@@ -1,4 +1,5 @@
1
- import React, { useContext } from 'react'
1
+ import { useContext } from 'react'
2
+ import * as React from 'react'
2
3
  import styled, { css } from 'styled-components'
3
4
  import { theme } from '../../styled'
4
5
  import { TextEllipsis } from '../TextEllipsis'
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react'
1
+ import { useState } from 'react'
2
2
  import {
3
3
  MemoryRouter as Router,
4
4
  Route,
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useDebugValue, useMemo } from 'react'
1
+ import { memo, useCallback, useDebugValue, useMemo } from 'react'
2
2
 
3
3
  import styled, { css } from 'styled-components'
4
4
  import warning from 'warning'
@@ -75,11 +75,7 @@ export interface PagerProps extends CommonProps {
75
75
  }
76
76
 
77
77
  // this pager is just regular buttons; for links use LinkPager
78
- export default React.memo(function Pager({
79
- page,
80
- pageCount,
81
- onChange,
82
- }: PagerProps) {
78
+ export default memo(function Pager({ page, pageCount, onChange }: PagerProps) {
83
79
  // TODO: refactor Pager and LinkPager to use a common parent component
84
80
  const window = usePagerWindow(page, pageCount)
85
81
  const makeClickHandler = useCallback(
@@ -1,6 +1,5 @@
1
1
  import { action } from '@storybook/addon-actions'
2
2
  import { boolean } from '@storybook/addon-knobs'
3
- import React from 'react'
4
3
  import SwitchCheckbox from '.'
5
4
 
6
5
  export default {
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import * as React from 'react'
2
2
 
3
3
  import styled, { css } from 'styled-components'
4
4
  import { applyEffect } from '@charcoal-ui/utils'
@@ -1,5 +1,4 @@
1
1
  import { number, text } from '@storybook/addon-knobs'
2
- import React from 'react'
3
2
  import styled from 'styled-components'
4
3
  import { TextEllipsis } from '.'
5
4
 
@@ -1,5 +1,5 @@
1
1
  import { boolean } from '@storybook/addon-knobs'
2
- import React from 'react'
2
+ import * as React from 'react'
3
3
  import styled, { css } from 'styled-components'
4
4
  import { theme } from '../../styled'
5
5
  import WithIcon from '.'
@@ -1,4 +1,5 @@
1
- import React, { useRef } from 'react'
1
+ import { useRef } from 'react'
2
+ import * as React from 'react'
2
3
  import styled, { css } from 'styled-components'
3
4
  import { useElementSize } from '../../foundation/hooks'
4
5
 
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import * as React from 'react'
2
2
  import styled from 'styled-components'
3
3
 
4
4
  export type IconSizes = 16 | 24 | 32
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import styled from 'styled-components'
3
2
 
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import styled from 'styled-components'
3
2
  import IconBase from './Base'
4
3
 
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { unreachable } from '../../foundation/utils'
3
2
  import IconBase from './Base'
4
3
 
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import styled from 'styled-components'
3
2
 
4
3
  import { unreachable } from '../../foundation/utils'