cosmic-components
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
@@ -16,9 +16,16 @@ /** | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CLICK_IMAGE = exports.CLICK_PARAGRAPH = exports.CLICK_BUTTON = void 0; | ||
exports.CAROUSEL_DEACHED = exports.CAROUSEL_ATTACHED = exports.CLICK_LINK = exports.CLICK_IMAGE = exports.CLICK_PARAGRAPH = exports.CLICK_BUTTON = void 0; | ||
exports.CLICK_BUTTON = 'click:button'; | ||
exports.CLICK_PARAGRAPH = 'click:paragraph'; | ||
exports.CLICK_IMAGE = 'click:image'; | ||
exports.CLICK_LINK = 'click:link'; | ||
// carousel MessageEvent | ||
exports.CAROUSEL_ATTACHED = 'UI:carouselItemAttached'; | ||
exports.CAROUSEL_DEACHED = 'UI:carouselItemDetached'; | ||
; | ||
; | ||
; | ||
; | ||
; | ||
}); | ||
//# sourceMappingURL=action.js.map |
@@ -29,3 +29,3 @@ /** | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "../Base", "./helper", "./index.module.less"], factory); | ||
define(["require", "exports", "../Base", "./helper", "cosmic-ui"], factory); | ||
} | ||
@@ -37,3 +37,3 @@ })(function (require, exports) { | ||
var helper_1 = require("./helper"); | ||
var index_module_less_1 = __importDefault(require("./index.module.less")); | ||
var cosmic_ui_1 = require("cosmic-ui"); | ||
function transform(input, output) { | ||
@@ -65,3 +65,3 @@ var currentSize = input.size; | ||
// base props | ||
styles: index_module_less_1.default, | ||
styles: cosmic_ui_1.grid, | ||
// props & variants | ||
@@ -68,0 +68,0 @@ // TODO 暂时直接基于初始断点获得当前断点,后续支持动态检测容器宽度获得 |
@@ -10,3 +10,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./Button", "./Paragraph", "./Grid", "./Image", "./Tag/index"], factory); | ||
define(["require", "exports", "./Button", "./Paragraph", "./Grid", "./Carousel", "./Image", "./Input", "./Tabs/index", "./Tag/index", "./Rate/index", "./Divider"], factory); | ||
} | ||
@@ -16,3 +16,3 @@ })(function (require, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Tag = exports.Image = exports.Grid = exports.Paragraph = exports.Button = void 0; | ||
exports.Divider = exports.Rate = exports.Tag = exports.TabPane = exports.Tabs = exports.Input = exports.Image = exports.CarouselItem = exports.Carousel = exports.Grid = exports.Paragraph = exports.Button = void 0; | ||
var Button_1 = require("./Button"); | ||
@@ -24,7 +24,19 @@ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(Button_1).default; } }); | ||
Object.defineProperty(exports, "Grid", { enumerable: true, get: function () { return __importDefault(Grid_1).default; } }); | ||
var Carousel_1 = require("./Carousel"); | ||
Object.defineProperty(exports, "Carousel", { enumerable: true, get: function () { return __importDefault(Carousel_1).default; } }); | ||
Object.defineProperty(exports, "CarouselItem", { enumerable: true, get: function () { return Carousel_1.CarouselItem; } }); | ||
var Image_1 = require("./Image"); | ||
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(Image_1).default; } }); | ||
var index_1 = require("./Tag/index"); | ||
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return __importDefault(index_1).default; } }); | ||
var Input_1 = require("./Input"); | ||
Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return __importDefault(Input_1).default; } }); | ||
var index_1 = require("./Tabs/index"); | ||
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return __importDefault(index_1).default; } }); | ||
Object.defineProperty(exports, "TabPane", { enumerable: true, get: function () { return index_1.TabPane; } }); | ||
var index_2 = require("./Tag/index"); | ||
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return __importDefault(index_2).default; } }); | ||
var index_3 = require("./Rate/index"); | ||
Object.defineProperty(exports, "Rate", { enumerable: true, get: function () { return __importDefault(index_3).default; } }); | ||
var Divider_1 = require("./Divider"); | ||
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return __importDefault(Divider_1).default; } }); | ||
}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "cosmic-components", | ||
"version": "0.0.1-alpha.1", | ||
"scripts": { | ||
"build": "npm run clean && tsc", | ||
"test": "jest", | ||
"clean": "rimraf dist types", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"version": "0.0.1-alpha.2", | ||
"main": "./dist/index.js", | ||
@@ -19,3 +13,3 @@ "module": "./src/index.ts", | ||
"dependencies": { | ||
"cosmic-ui-alpha": "0.0.19", | ||
"cosmic-ui-alpha": "0.0.33", | ||
"prismjs": "~1.27.0", | ||
@@ -36,3 +30,8 @@ "san": "~3.11.1" | ||
"typescript": "~4.4.3" | ||
}, | ||
"scripts": { | ||
"build": "npm run clean && tsc", | ||
"test": "jest", | ||
"clean": "rimraf dist types" | ||
} | ||
} | ||
} |
@@ -9,2 +9,6 @@ /** | ||
export const CLICK_IMAGE = 'click:image'; | ||
export const CLICK_LINK = 'click:link'; | ||
// carousel MessageEvent | ||
export const CAROUSEL_ATTACHED = 'UI:carouselItemAttached'; | ||
export const CAROUSEL_DEACHED = 'UI:carouselItemDetached'; | ||
@@ -18,4 +22,13 @@ export interface CLICK_BUTTON_PAYLOAD { | ||
export interface CAROUSEL_ATTACHED_PAYLOAD { | ||
event: MessageEvent; | ||
}; | ||
export interface CAROUSEL_DEACHED_PAYLOAD { | ||
event: MessageEvent; | ||
}; | ||
export interface CLICK_IMAGE_PAYLOAD { | ||
event: Event; | ||
} | ||
export interface CLICK_LINK_PAYLOAD { | ||
event: Event; | ||
}; |
@@ -5,1 +5,2 @@ declare module '*.md'; | ||
declare module 'san-test-utils'; | ||
declare module '*.svg'; |
@@ -9,3 +9,3 @@ /** | ||
import {breakpoints} from './helper'; | ||
import styles from './index.module.less'; | ||
import {grid as styles} from 'cosmic-ui'; | ||
@@ -12,0 +12,0 @@ function transform(input: Partial<RowData>, output: Record<Responsive, SubRowProps>) { |
export {default as Button} from './Button'; | ||
export {default as Paragraph} from './Paragraph'; | ||
export {default as Grid} from './Grid'; | ||
export {default as Carousel, CarouselItem} from './Carousel'; | ||
export {default as Image} from './Image'; | ||
export {default as Input} from './Input'; | ||
export {default as Tabs, TabPane} from './Tabs/index'; | ||
export {default as Tag} from './Tag/index'; | ||
export {default as Rate} from './Rate/index'; | ||
export {default as Divider} from './Divider'; |
@@ -8,2 +8,5 @@ /** | ||
export declare const CLICK_IMAGE = "click:image"; | ||
export declare const CLICK_LINK = "click:link"; | ||
export declare const CAROUSEL_ATTACHED = "UI:carouselItemAttached"; | ||
export declare const CAROUSEL_DEACHED = "UI:carouselItemDetached"; | ||
export interface CLICK_BUTTON_PAYLOAD { | ||
@@ -15,4 +18,13 @@ event: Event; | ||
} | ||
export interface CAROUSEL_ATTACHED_PAYLOAD { | ||
event: MessageEvent; | ||
} | ||
export interface CAROUSEL_DEACHED_PAYLOAD { | ||
event: MessageEvent; | ||
} | ||
export interface CLICK_IMAGE_PAYLOAD { | ||
event: Event; | ||
} | ||
export interface CLICK_LINK_PAYLOAD { | ||
event: Event; | ||
} |
export { default as Button } from './Button'; | ||
export { default as Paragraph } from './Paragraph'; | ||
export { default as Grid } from './Grid'; | ||
export { default as Carousel, CarouselItem } from './Carousel'; | ||
export { default as Image } from './Image'; | ||
export { default as Input } from './Input'; | ||
export { default as Tabs, TabPane } from './Tabs/index'; | ||
export { default as Tag } from './Tag/index'; | ||
export { default as Rate } from './Rate/index'; | ||
export { default as Divider } from './Divider'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
250658
210
0
4297
2
+ Addedcosmic-ui-alpha@0.0.33(transitive)
- Removedcosmic-ui-alpha@0.0.19(transitive)
Updatedcosmic-ui-alpha@0.0.33