File tree Expand file tree Collapse file tree 14 files changed +89
-19
lines changed
Expand file tree Collapse file tree 14 files changed +89
-19
lines changed Original file line number Diff line number Diff line change 88 "build" : " build-storybook -s ./public"
99 },
1010 "dependencies" : {
11- "@titicaca/triple-author" : " ^1.0.0-alpha.1 " ,
11+ "@titicaca/triple-author" : " ^1.0.0-alpha.2 " ,
1212 "@titicaca/triple-design-system" : " ^1.0.0-alpha.0" ,
1313 "@titicaca/triple-document" : " ^1.0.0-alpha.0" ,
1414 "@titicaca/triple-poi" : " ^1.0.0-alpha.0"
Original file line number Diff line number Diff line change 44 " docs" ,
55 " tests"
66 ],
7- "version" : " 1.0.0-alpha.1 "
7+ "version" : " 1.0.0-alpha.2 "
88}
Original file line number Diff line number Diff line change 11{
22 "name" : " @titicaca/triple-author" ,
3- "version" : " 1.0.0-alpha.1 " ,
3+ "version" : " 1.0.0-alpha.2 " ,
44 "description" : " Triple Author UI elements" ,
55 "homepage" : " https://github.com/titicacadev/triple-frontend#readme" ,
66 "main" : " lib/index.js" ,
1515 "url" : " https://github.com/titicacadev/triple-frontend/issues"
1616 },
1717 "dependencies" : {
18- "@titicaca/triple-design-system" : " ^1.0.0-alpha.1 "
18+ "@titicaca/triple-design-system" : " ^1.0.0-alpha.2 "
1919 }
2020}
Original file line number Diff line number Diff line change 11{
22 "name" : " @titicaca/triple-design-system" ,
3- "version" : " 1.0.0-alpha.1 " ,
3+ "version" : " 1.0.0-alpha.2 " ,
44 "description" : " Triple Design System Library" ,
55 "main" : " lib/index.js" ,
66 "types" : " lib/index.d.ts" ,
2323 },
2424 "homepage" : " https://github.com/titicacadev/triple-design-system#readme" ,
2525 "dependencies" : {
26- "@titicaca/triple-view-utilities" : " ^1.0.0-alpha.1 " ,
26+ "@titicaca/triple-view-utilities" : " ^1.0.0-alpha.2 " ,
2727 "nuka-carousel" : " 4.4.1" ,
2828 "react-addons-css-transition-group" : " ^15.6.2" ,
2929 "react-input-mask" : " ^2.0.4"
Original file line number Diff line number Diff line change 11{
22 "name" : " @titicaca/triple-document" ,
3- "version" : " 1.0.0-alpha.1 " ,
3+ "version" : " 1.0.0-alpha.2 " ,
44 "description" : " TripleDocument: Formatted Content System" ,
55 "main" : " lib/index.js" ,
66 "files" : [
1515 },
1616 "homepage" : " https://github.com/titicacadev/triple-frontend#readme" ,
1717 "dependencies" : {
18- "@titicaca/triple-design-system" : " ^1.0.0-alpha.1 " ,
19- "@titicaca/triple-poi" : " ^1.0.0-alpha.1 "
18+ "@titicaca/triple-design-system" : " ^1.0.0-alpha.2 " ,
19+ "@titicaca/triple-poi" : " ^1.0.0-alpha.2 "
2020 }
2121}
Original file line number Diff line number Diff line change 1+ # ` triple-image-carousel `
2+
3+ [ nuka-carousel] ( https://github.com/FormidableLabs/nuka-carousel ) 을 기반으로 제작된 이미지 캐러셀입니다.
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @titicaca/triple-image-carousel" ,
3+ "version" : " 1.0.0-alpha.2" ,
4+ "description" : " Triple Image Carousel" ,
5+ "main" : " lib/index.js" ,
6+ "files" : [
7+ " lib/"
8+ ],
9+ "repository" : {
10+ "type" : " git" ,
11+ "url" : " git+https://github.com/titicacadev/triple-frontend.git"
12+ },
13+ "bugs" : {
14+ "url" : " https://github.com/titicacadev/triple-frontend/issues"
15+ },
16+ "homepage" : " https://github.com/titicacadev/triple-frontend#readme" ,
17+ "dependencies" : {
18+ "@titicaca/triple-design-system" : " ^1.0.0-alpha.2" ,
19+ "nuka-carousel" : " 4.4.1"
20+ }
21+ }
Original file line number Diff line number Diff line change 11import * as React from 'react'
22import styled from 'styled-components'
3+ import Pager from './pager'
34import {
4- Pager ,
55 Image ,
66 MarginPadding ,
77 GlobalSizes ,
Original file line number Diff line number Diff line change 1+ import * as React from 'react'
2+ import PagerCarousel from 'nuka-carousel'
3+ import { Container , MarginPadding } from '@titicaca/triple-design-system'
4+
5+ const Pager = ( {
6+ margin,
7+ borderRadius,
8+ currentPage,
9+ onPageChange,
10+ pageLabelComponent,
11+ children,
12+ } : {
13+ margin ?: MarginPadding
14+ borderRadius ?: number
15+ currentPage ?: number
16+ onPageChange ?: ( e ?: React . SyntheticEvent ) => any
17+ pageLabelComponent ?: React . ReactNode
18+ children ?: React . ReactNode
19+ } ) => (
20+ < Container margin = { margin } borderRadius = { borderRadius } >
21+ < PagerCarousel
22+ slideIndex = { currentPage }
23+ afterSlide = { onPageChange }
24+ speed = { 100 }
25+ renderTopRightControls = { pageLabelComponent }
26+ renderBottomCenterControls = { null }
27+ renderCenterLeftControls = { null }
28+ renderCenterRightControls = { null }
29+ >
30+ { children }
31+ </ PagerCarousel >
32+ </ Container >
33+ )
34+
35+ export default Pager
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ../../tsconfig.base.json" ,
3+ "compilerOptions" : {
4+ "outDir" : " ./lib" ,
5+ "baseUrl" : " ." ,
6+ "rootDir" : " src" ,
7+ "emitDeclarationOnly" : true ,
8+ },
9+ "include" : [" ./src" ],
10+ "exclude" : [" node_modules" , " lib" ]
11+ }
You can’t perform that action at this time.
0 commit comments