@xaypay/tui 0.0.119 → 0.0.121

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 (180) hide show
  1. package/dist/index.es.js +3983 -4344
  2. package/dist/index.js +3982 -4345
  3. package/package.json +1 -1
  4. package/tui.config.js +1 -1
  5. package/.eslintrc.js +0 -30
  6. package/.husky/pre-commit +0 -4
  7. package/.prettierrc +0 -10
  8. package/.storybook/main.js +0 -48
  9. package/.storybook/preview.js +0 -9
  10. package/rollup.config.js +0 -37
  11. package/src/assets/attach.svg +0 -4
  12. package/src/assets/delete.svg +0 -4
  13. package/src/assets/down-arrow.svg +0 -4
  14. package/src/assets/figma-image.png +0 -0
  15. package/src/assets/heart-filled.svg +0 -17
  16. package/src/assets/heart-outline.svg +0 -14
  17. package/src/assets/like-filled.svg +0 -21
  18. package/src/assets/like-outline.svg +0 -21
  19. package/src/assets/minus.svg +0 -4
  20. package/src/assets/pdf.svg +0 -3
  21. package/src/assets/plus.svg +0 -4
  22. package/src/assets/range-arrow-default.svg +0 -19
  23. package/src/assets/range-arrow-error.svg +0 -19
  24. package/src/assets/range-arrow-success.svg +0 -19
  25. package/src/assets/star-filled.svg +0 -21
  26. package/src/assets/star-outline.svg +0 -5
  27. package/src/assets/table-settings-icon.svg +0 -3
  28. package/src/assets/up-arrow.svg +0 -4
  29. package/src/assets_old/icons/Read Me.txt +0 -7
  30. package/src/assets_old/icons/demo-files/demo.css +0 -152
  31. package/src/assets_old/icons/demo-files/demo.js +0 -28
  32. package/src/assets_old/icons/demo.html +0 -192
  33. package/src/assets_old/icons/fonts/icomoon.eot +0 -0
  34. package/src/assets_old/icons/fonts/icomoon.svg +0 -21
  35. package/src/assets_old/icons/fonts/icomoon.ttf +0 -0
  36. package/src/assets_old/icons/fonts/icomoon.woff +0 -0
  37. package/src/assets_old/icons/selection.json +0 -1
  38. package/src/assets_old/icons/style.css +0 -58
  39. package/src/components/autocomplate/autocomplate.module.css +0 -95
  40. package/src/components/autocomplate/autocomplate.stories.js +0 -35
  41. package/src/components/autocomplate/index.js +0 -164
  42. package/src/components/button/button.stories.js +0 -13
  43. package/src/components/button/index.js +0 -187
  44. package/src/components/captcha/captcha.module.css +0 -74
  45. package/src/components/captcha/captcha.stories.js +0 -21
  46. package/src/components/captcha/index.js +0 -158
  47. package/src/components/checkbox/checkbox.module.css +0 -0
  48. package/src/components/checkbox/checkbox.stories.js +0 -76
  49. package/src/components/checkbox/index.js +0 -120
  50. package/src/components/file/file.module.css +0 -114
  51. package/src/components/file/file.stories.js +0 -20
  52. package/src/components/file/index.js +0 -138
  53. package/src/components/icon/Active.js +0 -20
  54. package/src/components/icon/Arrow.js +0 -19
  55. package/src/components/icon/Cancel.js +0 -19
  56. package/src/components/icon/CaptchaArrowDown.js +0 -19
  57. package/src/components/icon/CaptchaArrowUp.js +0 -19
  58. package/src/components/icon/CheckboxChecked.js +0 -21
  59. package/src/components/icon/CheckboxUnchecked.js +0 -21
  60. package/src/components/icon/Close.js +0 -19
  61. package/src/components/icon/CloseIcon.js +0 -19
  62. package/src/components/icon/CloseSlide.js +0 -19
  63. package/src/components/icon/DeActive.js +0 -20
  64. package/src/components/icon/DeleteComponent.js +0 -20
  65. package/src/components/icon/Done.js +0 -19
  66. package/src/components/icon/Dots.js +0 -19
  67. package/src/components/icon/DownArrow.js +0 -20
  68. package/src/components/icon/HeartFilled.js +0 -25
  69. package/src/components/icon/HeartOutline.js +0 -25
  70. package/src/components/icon/Heic.js +0 -21
  71. package/src/components/icon/Icon.js +0 -11
  72. package/src/components/icon/ListItemDelete.js +0 -19
  73. package/src/components/icon/ListItemJpeg.js +0 -21
  74. package/src/components/icon/ListItemJpg.js +0 -21
  75. package/src/components/icon/ListItemPdf.js +0 -21
  76. package/src/components/icon/ListItemPng.js +0 -21
  77. package/src/components/icon/Next.js +0 -20
  78. package/src/components/icon/Nextarrow.js +0 -19
  79. package/src/components/icon/PDF.js +0 -19
  80. package/src/components/icon/Prev.js +0 -20
  81. package/src/components/icon/RangeArrowDefault.js +0 -43
  82. package/src/components/icon/RangeArrowError.js +0 -43
  83. package/src/components/icon/RangeArrowSuccess.js +0 -43
  84. package/src/components/icon/Reject.js +0 -19
  85. package/src/components/icon/RemoveFile.js +0 -20
  86. package/src/components/icon/Required.js +0 -19
  87. package/src/components/icon/ToasterClose.js +0 -19
  88. package/src/components/icon/ToasterError.js +0 -19
  89. package/src/components/icon/ToasterInfo.js +0 -19
  90. package/src/components/icon/ToasterSuccess.js +0 -19
  91. package/src/components/icon/ToasterWarning.js +0 -19
  92. package/src/components/icon/Tooltip.js +0 -19
  93. package/src/components/icon/UpArrow.js +0 -20
  94. package/src/components/icon/Upload.js +0 -25
  95. package/src/components/icon/Wrong.js +0 -21
  96. package/src/components/icon/Zoom.js +0 -21
  97. package/src/components/icon/index.js +0 -0
  98. package/src/components/input/index.js +0 -688
  99. package/src/components/input/input.module.css +0 -51
  100. package/src/components/input/input.stories.js +0 -26
  101. package/src/components/modal/index.js +0 -436
  102. package/src/components/modal/modal.module.css +0 -22
  103. package/src/components/modal/modal.stories.js +0 -88
  104. package/src/components/newAutocomplete/NewAutocomplete.stories.js +0 -102
  105. package/src/components/newAutocomplete/autocomplete.module.css +0 -4
  106. package/src/components/newAutocomplete/index.js +0 -592
  107. package/src/components/newFile/fileItem.js +0 -281
  108. package/src/components/newFile/index.js +0 -731
  109. package/src/components/newFile/newFile.stories.js +0 -93
  110. package/src/components/pagination/index.js +0 -234
  111. package/src/components/pagination/pagination.module.css +0 -93
  112. package/src/components/pagination/pagination.stories.js +0 -371
  113. package/src/components/pagination/paginationRange.js +0 -45
  114. package/src/components/radio/index.js +0 -236
  115. package/src/components/radio/radio.module.css +0 -59
  116. package/src/components/radio/radio.stories.js +0 -59
  117. package/src/components/select/index.js +0 -534
  118. package/src/components/select/select.module.css +0 -93
  119. package/src/components/select/select.stories.js +0 -39
  120. package/src/components/singleCheckbox/Checkbox.js +0 -84
  121. package/src/components/singleCheckbox/index.js +0 -65
  122. package/src/components/singleCheckbox/singleCheckbox.stories.js +0 -24
  123. package/src/components/stepper/index.js +0 -45
  124. package/src/components/stepper/stepper.module.css +0 -57
  125. package/src/components/stepper/stepper.stories.js +0 -17
  126. package/src/components/table/index.js +0 -789
  127. package/src/components/table/table.module.css +0 -63
  128. package/src/components/table/table.stories.js +0 -497
  129. package/src/components/table/td.js +0 -429
  130. package/src/components/table/th.js +0 -103
  131. package/src/components/textarea/index.js +0 -285
  132. package/src/components/textarea/textarea.module.css +0 -25
  133. package/src/components/textarea/textarea.stories.js +0 -56
  134. package/src/components/toaster/Toast.js +0 -203
  135. package/src/components/toaster/index.js +0 -131
  136. package/src/components/toaster/toaster.module.css +0 -201
  137. package/src/components/toaster/toaster.stories.js +0 -593
  138. package/src/components/tooltip/index.js +0 -156
  139. package/src/components/tooltip/tooltip.module.css +0 -46
  140. package/src/components/tooltip/tooltip.stories.js +0 -30
  141. package/src/components/typography/index.js +0 -124
  142. package/src/components/typography/typography.module.css +0 -57
  143. package/src/components/typography/typography.stories.js +0 -22
  144. package/src/index.js +0 -19
  145. package/src/stories/Introduction.stories.mdx +0 -210
  146. package/src/stories/assets/code-brackets.svg +0 -1
  147. package/src/stories/assets/colors.svg +0 -1
  148. package/src/stories/assets/comments.svg +0 -1
  149. package/src/stories/assets/direction.svg +0 -1
  150. package/src/stories/assets/flow.svg +0 -1
  151. package/src/stories/assets/plugin.svg +0 -1
  152. package/src/stories/assets/repo.svg +0 -1
  153. package/src/stories/assets/stackalt.svg +0 -1
  154. package/src/stories/changelog.stories.mdx +0 -172
  155. package/src/stories/configuration.stories.mdx +0 -715
  156. package/src/stories/documentation.stories.mdx +0 -118
  157. package/src/stories/static/autocomplete-usage.png +0 -0
  158. package/src/stories/static/button-usage-icon.png +0 -0
  159. package/src/stories/static/button-usage.png +0 -0
  160. package/src/stories/static/captcha-usage.png +0 -0
  161. package/src/stories/static/checkbox-group-usage-2.png +0 -0
  162. package/src/stories/static/checkbox-group-usage.png +0 -0
  163. package/src/stories/static/file-single-usage.png +0 -0
  164. package/src/stories/static/file-usage.png +0 -0
  165. package/src/stories/static/input-usage.png +0 -0
  166. package/src/stories/static/modal-usage.png +0 -0
  167. package/src/stories/static/radio-usage.png +0 -0
  168. package/src/stories/static/select-usage.png +0 -0
  169. package/src/stories/static/table-body-data-structure-first-part-usage.png +0 -0
  170. package/src/stories/static/table-body-data-structure-second-part-usage.png +0 -0
  171. package/src/stories/static/table-body-data-structure-third-part-usage.png +0 -0
  172. package/src/stories/static/table-component-usage.png +0 -0
  173. package/src/stories/static/table-header-data-structure-usage.png +0 -0
  174. package/src/stories/static/table-new-data-structure-usage.png +0 -0
  175. package/src/stories/static/textarea-usage.png +0 -0
  176. package/src/stories/static/toaster-container-usage.png +0 -0
  177. package/src/stories/static/toaster-usage.png +0 -0
  178. package/src/stories/static/tooltip-usage.png +0 -0
  179. package/src/stories/usage.stories.mdx +0 -201
  180. package/src/utils/index.js +0 -29
@@ -1,156 +0,0 @@
1
- import React, { useState, useEffect, createRef } from 'react'
2
- import PropTypes from 'prop-types'
3
- import classnames from 'classnames'
4
- import { compereConfigs } from './../../utils'
5
-
6
- import ReactInfoIcon from './../icon/Tooltip'
7
-
8
- import styles from './tooltip.module.css'
9
-
10
- export const Tooltip = ({
11
- type,
12
- text,
13
- width,
14
- color,
15
- height,
16
- radius,
17
- fontSize,
18
- className,
19
- fontFamily,
20
- tooltipIcon,
21
- tooltipWidth,
22
- tooltipRadius,
23
- backgroundColor,
24
- tooltipBackgroundColor,
25
- }) => {
26
- const tooltipRef = createRef(null)
27
- const [checkTooltipWidth, setCheckTooltipWidth] = useState(0)
28
- const [checkTooltipHeight, setCheckTooltipHeight] = useState(0)
29
- const [showTooltip, setShowTooltip] = useState(false)
30
-
31
- const configStyles = compereConfigs()
32
- const classProps = classnames(styles['tooltip-block'], className ? className : configStyles.TOOLTIP.className)
33
-
34
- const handleShow = () => {
35
- setShowTooltip(!showTooltip)
36
- }
37
-
38
- useEffect(() => {
39
- if (!text) {
40
- alert('Add text on tooltip')
41
- }
42
- tooltipRef.current &&
43
- tooltipRef.current.clientWidth &&
44
- tooltipRef.current.clientWidth > 0 &&
45
- setCheckTooltipWidth(tooltipRef.current.clientWidth)
46
- tooltipRef.current &&
47
- tooltipRef.current.clientHeight &&
48
- tooltipRef.current.clientHeight > 0 &&
49
- setCheckTooltipHeight(tooltipRef.current.clientHeight)
50
- }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight])
51
-
52
- return (
53
- <div
54
- className={classProps}
55
- style={{
56
- width: width ? width : configStyles.TOOLTIP.width,
57
- height: height ? height : configStyles.TOOLTIP.height,
58
- borderRadius: radius ? radius : configStyles.TOOLTIP.radius,
59
- backgroundColor: backgroundColor ? backgroundColor : configStyles.TOOLTIP.backgroundColor,
60
- }}
61
- >
62
- {showTooltip ? (
63
- <div
64
- ref={tooltipRef}
65
- className={`${styles['tooltip']}`}
66
- style={{
67
- width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
68
- borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
69
- backgroundColor: tooltipBackgroundColor
70
- ? tooltipBackgroundColor
71
- : configStyles.TOOLTIP.tooltipBackgroundColor,
72
- top:
73
- type === 'top'
74
- ? `calc(-${checkTooltipHeight + 7}px)`
75
- : type === 'bottom'
76
- ? 'calc(100% + 7px)'
77
- : type === 'left' || type === 'right'
78
- ? `calc(50% - ${checkTooltipHeight / 2}px)`
79
- : '0px',
80
- left:
81
- type === 'top' || type === 'bottom'
82
- ? `calc(50% - ${checkTooltipWidth / 2}px)`
83
- : type === 'left'
84
- ? `-${checkTooltipWidth + 7}px`
85
- : type === 'right'
86
- ? 'calc(100% + 7px)'
87
- : '0px',
88
- }}
89
- >
90
- <div className={`${styles['tooltip-rel']}`}>
91
- <div
92
- className={`${styles['tooltip-decor']}`}
93
- style={{
94
- backgroundColor: tooltipBackgroundColor
95
- ? tooltipBackgroundColor
96
- : configStyles.TOOLTIP.tooltipBackgroundColor,
97
- left:
98
- type === 'top' || type === 'bottom'
99
- ? 'calc(50% - 5px)'
100
- : type === 'right'
101
- ? '-15px'
102
- : type === 'left'
103
- ? 'calc(100% + 5px)'
104
- : '0px',
105
- top:
106
- type === 'top'
107
- ? 'calc(100% + 5px)'
108
- : type === 'bottom'
109
- ? '-15px'
110
- : type === 'right' || type === 'left'
111
- ? 'calc(50% - 5px)'
112
- : '0px',
113
- }}
114
- ></div>
115
- <p
116
- style={{
117
- color: color ? color : configStyles.TOOLTIP.color,
118
- fontSize: fontSize ? fontSize : configStyles.TOOLTIP.fontSize,
119
- fontFamily: fontFamily ? fontFamily : configStyles.TOOLTIP.fontFamily,
120
- }}
121
- >
122
- {text}
123
- </p>
124
- </div>
125
- </div>
126
- ) : (
127
- ''
128
- )}
129
-
130
- <div style={{ cursor: 'pointer' }} onClick={handleShow}>
131
- {tooltipIcon ? tooltipIcon : <ReactInfoIcon />}
132
- </div>
133
- </div>
134
- )
135
- }
136
-
137
- Tooltip.propTypes = {
138
- type: PropTypes.string,
139
- width: PropTypes.string,
140
- color: PropTypes.string,
141
- height: PropTypes.string,
142
- radius: PropTypes.string,
143
- fontSize: PropTypes.string,
144
- className: PropTypes.string,
145
- fontFamily: PropTypes.string,
146
- tooltipWidth: PropTypes.string,
147
- tooltipIcon: PropTypes.element,
148
- tooltipRadius: PropTypes.string,
149
- text: PropTypes.string.isRequired,
150
- backgroundColor: PropTypes.string,
151
- tooltipBackgroundColor: PropTypes.string,
152
- }
153
-
154
- Tooltip.defaultProps = {
155
- type: 'top',
156
- }
@@ -1,46 +0,0 @@
1
- .tooltip-block {
2
- position: relative;
3
- display: flex;
4
- align-items: center;
5
- justify-content: center;
6
- }
7
-
8
- .tooltip {
9
- position: absolute;
10
- z-index: 1;
11
- padding: 10px;
12
- }
13
-
14
- .tooltip-rel {
15
- position: relative;
16
- display: flex;
17
- width: auto;
18
- height: auto;
19
- min-width: 30px;
20
- min-height: 10px;
21
- align-items: center;
22
- justify-content: center;
23
- border-radius: 5px;
24
- -webkit-border-radius: 5px;
25
- -moz-border-radius: 5px;
26
- -ms-border-radius: 5px;
27
- -o-border-radius: 5px;
28
- }
29
-
30
- .tooltip-decor {
31
- position: absolute;
32
- width: 10px;
33
- height: 10px;
34
- z-index: -1;
35
- border-radius: 2px;
36
- -webkit-border-radius: 2px;
37
- -moz-border-radius: 2px;
38
- -ms-border-radius: 2px;
39
- -o-border-radius: 2px;
40
- transform: rotate(45deg);
41
- -webkit-transform: rotate(45deg);
42
- -moz-transform: rotate(45deg);
43
- -ms-transform: rotate(45deg);
44
- -o-transform: rotate(45deg);
45
- }
46
-
@@ -1,30 +0,0 @@
1
- import React from 'react'
2
-
3
- import { Tooltip } from './index'
4
-
5
- export default {
6
- component: Tooltip,
7
- title: 'Components/Tooltip',
8
- }
9
-
10
- const Template = (args) => {
11
- return (
12
- <div
13
- style={{
14
- display: 'flex',
15
- alignItems: 'center',
16
- justifyContent: 'center',
17
- height: 'calc(100vh - 32px)',
18
- }}
19
- >
20
- <Tooltip {...args} />
21
- </div>
22
- )
23
- }
24
-
25
- export const Default = Template.bind({})
26
- Default.args = {
27
- type: 'top',
28
- text: 'new tooltip',
29
- tooltipWidth: '300px',
30
- }
@@ -1,124 +0,0 @@
1
- import React, { useState, useEffect } from 'react'
2
- import PropTypes from 'prop-types'
3
- import classnames from 'classnames'
4
-
5
- import { compereConfigs } from './../../utils'
6
-
7
- export const TypographyType = {
8
- p: 'p',
9
- h1: 'h1',
10
- h2: 'h2',
11
- h3: 'h3',
12
- h4: 'h4',
13
- h5: 'h5',
14
- h6: 'h6',
15
- span: 'span',
16
- }
17
-
18
- export const Typography = ({
19
- size,
20
- color,
21
- weight,
22
- radius,
23
- border,
24
- cursor,
25
- variant,
26
- onClick,
27
- children,
28
- textAlign,
29
- fontStyle,
30
- className,
31
- textShadow,
32
- lineHeight,
33
- colorHover,
34
- fontFamily,
35
- textTransform,
36
- textDecoration,
37
- backgroundColor,
38
- ...props
39
- }) => {
40
- const configStyles = compereConfigs()
41
- const classProps = classnames(className ? className : configStyles.TYPOGRAPHY.className)
42
-
43
- const [isHover, setIsHover] = useState(false)
44
- const [validVariant, setValidVariant] = useState(false)
45
-
46
- useEffect(() => {
47
- if (!Object.values(TypographyType).includes(variant)) {
48
- setValidVariant(true)
49
- }
50
- }, [variant])
51
-
52
- const handleMouseEnter = () => {
53
- setIsHover(true)
54
- }
55
-
56
- const handleMouseLeave = () => {
57
- setIsHover(false)
58
- }
59
-
60
- const tagT = React.createElement(
61
- variant,
62
- {
63
- style: {
64
- border: border ? border : configStyles.TYPOGRAPHY.border,
65
- cursor: cursor ? cursor : configStyles.TYPOGRAPHY.cursor,
66
- borderRadius: radius ? radius : configStyles.TYPOGRAPHY.radius,
67
- fontSize: size ? size : configStyles.TYPOGRAPHY['size' + variant],
68
- fontWeight: weight ? weight : configStyles.TYPOGRAPHY['weight' + variant],
69
- textShadow: textShadow ? textShadow : configStyles.TYPOGRAPHY.textShadow,
70
- textAlign: textAlign ? textAlign : configStyles.TYPOGRAPHY['textAlign' + variant],
71
- fontStyle: fontStyle ? fontStyle : configStyles.TYPOGRAPHY['fontStyle' + variant],
72
- lineHeight: lineHeight ? lineHeight : configStyles.TYPOGRAPHY['lineHeight' + variant],
73
- fontFamily: fontFamily ? fontFamily : configStyles.TYPOGRAPHY['fontFamily' + variant],
74
- textTransform: textTransform ? textTransform : configStyles.TYPOGRAPHY['textTransform' + variant],
75
- textDecoration: textDecoration ? textDecoration : configStyles.TYPOGRAPHY['textDecoration' + variant],
76
- backgroundColor: backgroundColor
77
- ? backgroundColor
78
- : configStyles.TYPOGRAPHY['backgroundColor' + variant],
79
- color: isHover
80
- ? colorHover
81
- ? colorHover
82
- : color
83
- ? color
84
- : configStyles.TYPOGRAPHY['color' + variant]
85
- : color
86
- ? color
87
- : configStyles.TYPOGRAPHY['color' + variant],
88
- },
89
- ...props,
90
- className: classProps,
91
- onClick: onClick ? onClick : (_) => _,
92
- onMouseEnter: handleMouseEnter,
93
- onMouseLeave: handleMouseLeave,
94
- },
95
- [children]
96
- )
97
-
98
- return validVariant ? 'Please set Typography valid variant' : tagT
99
- }
100
-
101
- Typography.propTypes = {
102
- color: PropTypes.string,
103
- onClick: PropTypes.func,
104
- weight: PropTypes.string,
105
- border: PropTypes.string,
106
- cursor: PropTypes.string,
107
- radius: PropTypes.string,
108
- textAlign: PropTypes.string,
109
- className: PropTypes.string,
110
- fontStyle: PropTypes.string,
111
- lineHeight: PropTypes.string,
112
- textShadow: PropTypes.string,
113
- fontFamily: PropTypes.string,
114
- colorHover: PropTypes.string,
115
- textTransform: PropTypes.string,
116
- textDecoration: PropTypes.string,
117
- backgroundColor: PropTypes.string,
118
- variant: PropTypes.oneOf(Object.values(TypographyType)),
119
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
120
- }
121
-
122
- Typography.defaultProps = {
123
- variant: 'p',
124
- }
@@ -1,57 +0,0 @@
1
- /* h1 {
2
- text-transform: uppercase;
3
- font-size: 70px;
4
- line-height: 78px;
5
- font-weight: 400;
6
- }
7
-
8
- h2 {
9
- text-transform: uppercase;
10
- font-size: 50px;
11
- line-height: 56px;
12
- font-weight: 400;
13
- }
14
-
15
- h3 {
16
- text-transform: uppercase;
17
- font-size: 38px;
18
- line-height: 44px;
19
- font-weight: 400;
20
- }
21
-
22
- h4 {
23
- text-transform: uppercase;
24
- font-size: 24px;
25
- line-height: 28px;
26
- font-weight: 600;
27
- }
28
-
29
- h5 {
30
- text-transform: uppercase;
31
- font-size: 20px;
32
- line-height: 26px;
33
- font-weight: 600;
34
- }
35
-
36
- h6 {
37
- text-transform: none;
38
- font-size: 14px;
39
- line-height: 20px;
40
- font-weight: 600;
41
- }
42
-
43
- p {
44
- text-transform: none;
45
- font-size: 13px;
46
- line-height: 18px;
47
- font-weight: 500;
48
- color: #3C393E;
49
- }
50
-
51
- span {
52
- text-transform: none;
53
- font-size: 12px;
54
- line-height: 16px;
55
- font-weight: 500;
56
- color: #3C393E;
57
- } */
@@ -1,22 +0,0 @@
1
- import React from 'react'
2
- import { Typography } from './index'
3
-
4
- export default {
5
- component: Typography,
6
- title: 'Components/Typography',
7
- }
8
-
9
- const staticTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span', 'p']
10
-
11
- export const Template = (args) => (
12
- <>
13
- <Typography {...args}>Dynamic Typography</Typography>
14
- {staticTag.map((tag, key) => {
15
- return (
16
- <Typography {...args} key={key} variant={tag} color="#a3d177">
17
- {tag}
18
- </Typography>
19
- )
20
- })}
21
- </>
22
- )
package/src/index.js DELETED
@@ -1,19 +0,0 @@
1
- export * from './components/file'
2
- export * from './components/table'
3
- export * from './components/modal'
4
- export * from './components/input'
5
- export * from './components/radio'
6
- export * from './components/button'
7
- export * from './components/select'
8
- export * from './components/toaster'
9
- export * from './components/tooltip'
10
- export * from './components/captcha'
11
- export * from './components/stepper'
12
- export * from './components/newFile'
13
- export * from './components/checkbox'
14
- export * from './components/textarea'
15
- export * from './components/icon/Icon'
16
- export * from './components/typography'
17
- export * from './components/pagination'
18
- export * from './components/autocomplate'
19
- export * from './components/newAutocomplete'
@@ -1,210 +0,0 @@
1
- import { Meta } from "@storybook/addon-docs";
2
- import Code from "./assets/code-brackets.svg";
3
- import Colors from "./assets/colors.svg";
4
- import Comments from "./assets/comments.svg";
5
- import Direction from "./assets/direction.svg";
6
- import Flow from "./assets/flow.svg";
7
- import Plugin from "./assets/plugin.svg";
8
- import Repo from "./assets/repo.svg";
9
- import StackAlt from "./assets/stackalt.svg";
10
-
11
- <Meta title="Intro/Introduction" />
12
-
13
- <style>
14
- {`
15
- .subheading {
16
- --mediumdark: '#999999';
17
- font-weight: 900;
18
- font-size: 13px;
19
- color: #999;
20
- letter-spacing: 6px;
21
- line-height: 24px;
22
- text-transform: uppercase;
23
- margin-bottom: 12px;
24
- margin-top: 40px;
25
- }
26
-
27
- .link-list {
28
- display: grid;
29
- grid-template-columns: 1fr;
30
- grid-template-rows: 1fr 0fr;
31
- row-gap: 10px;
32
- }
33
-
34
- @media (min-width: 620px) {
35
- .link-list {
36
- row-gap: 20px;
37
- column-gap: 20px;
38
- grid-template-columns: 1fr 1fr;
39
- }
40
- }
41
-
42
- @media all and (-ms-high-contrast:none) {
43
- .link-list {
44
- display: -ms-grid;
45
- -ms-grid-columns: 1fr 0fr;
46
- -ms-grid-rows: 1fr 0fr;
47
- }
48
- }
49
-
50
- .link-item {
51
- display: block;
52
- padding: 20px 30px 20px 15px;
53
- border: 1px solid #00000010;
54
- border-radius: 5px;
55
- transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
56
- color: #333333;
57
- display: flex;
58
- align-items: flex-start;
59
- }
60
-
61
- .link-item:hover {
62
- border-color: #1EA7FD50;
63
- transform: translate3d(0, -3px, 0);
64
- box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
65
- }
66
-
67
- .link-item:active {
68
- border-color: #1EA7FD;
69
- transform: translate3d(0, 0, 0);
70
- }
71
-
72
- .link-item strong {
73
- font-weight: 700;
74
- display: block;
75
- margin-bottom: 2px;
76
- }
77
-
78
- .link-item img {
79
- height: 40px;
80
- width: 40px;
81
- margin-right: 15px;
82
- flex: none;
83
- }
84
-
85
- .link-item span {
86
- font-size: 14px;
87
- line-height: 20px;
88
- }
89
-
90
- .tip {
91
- display: inline-block;
92
- border-radius: 1em;
93
- font-size: 11px;
94
- line-height: 12px;
95
- font-weight: 700;
96
- background: #E7FDD8;
97
- color: #66BF3C;
98
- padding: 4px 12px;
99
- margin-right: 10px;
100
- vertical-align: top;
101
- }
102
-
103
- .tip-wrapper {
104
- font-size: 13px;
105
- line-height: 20px;
106
- margin-top: 40px;
107
- margin-bottom: 40px;
108
- }
109
-
110
- .tip-wrapper code {
111
- font-size: 12px;
112
- display: inline-block;
113
- }
114
- `}
115
- </style>
116
-
117
- # Welcome to TUI
118
-
119
- TUI provides a lot of UI components to enrich your web applications, and we will improve components experience consistently
120
-
121
- TUI is fully configurable. You can change color, size, border and etc... Yes. You can configurable what you want. box-shadow on hover as well ))))
122
-
123
- <div className="subheading">Configure</div>
124
-
125
- <div className="link-list">
126
- <a className="link-item" href="https://storybook.js.org/docs/react/addons/addon-types" target="_blank">
127
- <img src={Plugin} alt="plugin" />
128
- <span>
129
- <strong>Presets for popular tools</strong>
130
- Easy setup for TypeScript, SCSS and more.
131
- </span>
132
- </a>
133
- <a className="link-item" href="../?path=/story/intro-configuration--page">
134
- <img src={StackAlt} alt="Build" />
135
- <span>
136
- <strong>Build configuration</strong>
137
- How to customize TUI
138
- </span>
139
- </a>
140
-
141
- </div>
142
-
143
- <div className="subheading">Learn</div>
144
-
145
- <div className="link-list">
146
- <a className="link-item" href="../?path=/docs/intro-documentation--page">
147
- <img src={Repo} alt="repo" />
148
- <span>
149
- <strong>TUI documentation</strong>
150
- Configure, customize, and extend
151
- </span>
152
- </a>
153
- <a className="link-item" href="http://gitlab.yerevan.am/rubo/tui" target="_blank">
154
- <img src={Code} alt="code" />
155
- <span>
156
- <strong>GitHub project</strong>
157
- View the source and add issues
158
- </span>
159
- </a>
160
- </div>
161
-
162
- <div className="link-list">
163
- <a className="link-item" href="../?path=/docs/intro-usage--page">
164
- <img src={Code} alt="code" />
165
- <span>
166
- <strong>TUI usage</strong>
167
- Configure, customize, and extend
168
- </span>
169
- </a>
170
- </div>
171
-
172
- <!--
173
- <a className="link-item" href="https://storybook.js.org/tutorials/" target="_blank">
174
- <img src={Direction} alt="direction" />
175
- <span>
176
- <strong>In-depth guides</strong>
177
- Best practices from leading teams
178
- </span>
179
- </a>
180
- <a className="link-item" href="https://discord.gg/storybook" target="_blank">
181
- <img src={Comments} alt="comments" />
182
- <span>
183
- <strong>Discord chat</strong>
184
- Chat with maintainers and the community
185
- </span>
186
- </a>
187
- <div className="tip-wrapper">
188
- <span className="tip">Tip</span>Edit the Markdown in{' '}
189
- <code>stories/Introduction.stories.mdx</code>
190
- </div>
191
-
192
- <a className="link-item" href="https://storybook.js.org/docs/react/configure/styling-and-css" target="_blank">
193
- <img src={Colors} alt="colors" />
194
- <span>
195
- <strong>Styling</strong>
196
- How to load and configure CSS libraries
197
- </span>
198
- </a>
199
- <a
200
- className="link-item"
201
- href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
202
- target="_blank"
203
- >
204
- <img src={Flow} alt="flow" />
205
- <span>
206
- <strong>Data</strong>
207
- Providers and mocking for data libraries
208
- </span>
209
- </a>
210
- -->
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/code-brackets</title><g id="illustration/code-brackets" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#87E6E5" d="M11.4139325,12 C11.7605938,12 12,12.5059743 12,13.3779712 L12,17.4951758 L6.43502246,23.3839989 C5.85499251,23.9978337 5.85499251,25.0021663 6.43502246,25.6160011 L12,31.5048242 L12,35.6220288 C12,36.4939606 11.7605228,37 11.4139325,37 C11.2725831,37 11.1134406,36.9158987 10.9453839,36.7379973 L0.435022463,25.6160011 C-0.145007488,25.0021663 -0.145007488,23.9978337 0.435022463,23.3839989 L10.9453839,12.2620027 C11.1134051,12.0841663 11.2725831,12 11.4139325,12 Z M36.5860675,12 C36.7274169,12 36.8865594,12.0841013 37.0546161,12.2620027 L47.5649775,23.3839989 C48.1450075,23.9978337 48.1450075,25.0021663 47.5649775,25.6160011 L37.0546161,36.7379973 C36.8865949,36.9158337 36.7274169,37 36.5860675,37 C36.2394062,37 36,36.4940257 36,35.6220288 L36,31.5048242 L41.5649775,25.6160011 C42.1450075,25.0021663 42.1450075,23.9978337 41.5649775,23.3839989 L36,17.4951758 L36,13.3779712 C36,12.5060394 36.2394772,12 36.5860675,12 Z"/><rect id="Rectangle-7-Copy-5" width="35.57" height="4" x="5.009" y="22.662" fill="#A0DB77" rx="2" transform="translate(22.793959, 24.662305) rotate(-75.000000) translate(-22.793959, -24.662305)"/></g></svg>