cosmic-ui-alpha
Advanced tools
Comparing version 0.0.16-alpha.10 to 0.0.16-alpha.11
@@ -65,13 +65,15 @@ const button$1 = "_button_qrqvh_1 cos-btn -v-bg-primary -v-text -v-h -v-px -v-border-none"; | ||
}; | ||
const select = "_select_1aw2t_1 -v-bg-inapparent"; | ||
const inherit = "_inherit_1aw2t_6"; | ||
const popover = "_popover_1aw2t_10"; | ||
const select = "_select_e8caw_1 -v-bg-inapparent"; | ||
const inherit = "_inherit_e8caw_6"; | ||
const border$1 = "_border_e8caw_10 -v-border-inapparent"; | ||
const popover = "_popover_e8caw_17"; | ||
var select_module = { | ||
select, | ||
inherit, | ||
border: border$1, | ||
popover | ||
}; | ||
const option = "_option_1h5vr_5"; | ||
const option = "_option_1drk9_6"; | ||
var selectOption_module = { | ||
"select-option": "_select-option_1h5vr_1 -v-bg-heavy -v-h -v-px", | ||
"select-option": "_select-option_1drk9_1 -v-bg-heavy -v-h -v-px", | ||
option | ||
@@ -78,0 +80,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
(function(e,t){typeof exports=="object"&&typeof module!="undefined"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["cosmic-ui"]={}))})(this,function(e){"use strict";var o={button:"_button_qrqvh_1 cos-btn -v-bg-primary -v-text -v-h -v-px -v-border-none",prefix:"_prefix_qrqvh_11 -v-mr",subfix:"_subfix_qrqvh_15 -v-ml"},_={button:"_button_6f6xe_1 cos-btn -v-color-dark -v-bg-inapparent -v-text -v-w -v-h -v-border-none",prefix:"_prefix_6f6xe_10 -v-w -v-h",subfix:"_subfix_6f6xe_13 -v-w -v-h"},n={root:"_root_qinxz_1 -v-bg-inapparent -v-h -v-px -v-text",input:"_input_qinxz_5",prefix:"_prefix_qinxz_11"},r={layout:"_layout_13bs8_1",content:"_content_13bs8_7",header:"_header_13bs8_12",hassider:"_hassider_13bs8_18",sider:"_sider_13bs8_21"},a={root:"_root_oj7p8_1",dropdown:"_dropdown_oj7p8_5",menu:"_menu_oj7p8_12"},s={root:"_root_18j61_1"},i={paragraph:"_paragraph_1cy7g_1",prefix:"_prefix_1cy7g_26",suffix:"_suffix_1cy7g_31"},c={root:"_root_bjz10_1"},d={root:"_root_ivjvl_1"},u={select:"_select_1aw2t_1 -v-bg-inapparent",inherit:"_inherit_1aw2t_6",popover:"_popover_1aw2t_10"},p={"select-option":"_select-option_1h5vr_1 -v-bg-heavy -v-h -v-px",option:"_option_1h5vr_5"},l={root:"_root_1bdkx_1"},v={wrapper:"_wrapper_10122_1",icon:"_icon_10122_18",border:"_border_10122_26",title:"_title_10122_30",description:"_description_10122_51"},f={steps:"_steps_ohx0o_1"},b={table:"_table_1iiqj_1"},h={card:"_card_v6avs_1",header:"_header_v6avs_6","header-title":"_header-title_v6avs_11","header-extra":"_header-extra_v6avs_15",content:"_content_v6avs_19",footer:"_footer_v6avs_23",action:"_action_v6avs_27"},m={tree:"_tree_1boqs_1"},x={treenode:"_treenode_1f4qu_1",header:"_header_1f4qu_6",title:"_title_1f4qu_16",toogle:"_toogle_1f4qu_21",status:"_status_1f4qu_28",icon:"_icon_1f4qu_31",content:"_content_1f4qu_35"},$={item:"_item_12dea_1",selected:"_selected_12dea_10",header:"_header_12dea_13",prefix:"_prefix_12dea_16",extra:"_extra_12dea_20"};e.button=o,e.buttonRounded=_,e.card=h,e.collapseItem=$,e.input=n,e.layout=r,e.menu=a,e.menuItem=s,e.paragraph=i,e.radioButton=c,e.radioGroup=d,e.select=u,e.selectOption=p,e.space=l,e.step=v,e.steps=f,e.table=b,e.tree=m,e.treeNode=x,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(e,t){typeof exports=="object"&&typeof module!="undefined"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["cosmic-ui"]={}))})(this,function(e){"use strict";var o={button:"_button_qrqvh_1 cos-btn -v-bg-primary -v-text -v-h -v-px -v-border-none",prefix:"_prefix_qrqvh_11 -v-mr",subfix:"_subfix_qrqvh_15 -v-ml"},_={button:"_button_6f6xe_1 cos-btn -v-color-dark -v-bg-inapparent -v-text -v-w -v-h -v-border-none",prefix:"_prefix_6f6xe_10 -v-w -v-h",subfix:"_subfix_6f6xe_13 -v-w -v-h"},r={root:"_root_qinxz_1 -v-bg-inapparent -v-h -v-px -v-text",input:"_input_qinxz_5",prefix:"_prefix_qinxz_11"},n={layout:"_layout_13bs8_1",content:"_content_13bs8_7",header:"_header_13bs8_12",hassider:"_hassider_13bs8_18",sider:"_sider_13bs8_21"},a={root:"_root_oj7p8_1",dropdown:"_dropdown_oj7p8_5",menu:"_menu_oj7p8_12"},s={root:"_root_18j61_1"},i={paragraph:"_paragraph_1cy7g_1",prefix:"_prefix_1cy7g_26",suffix:"_suffix_1cy7g_31"},c={root:"_root_bjz10_1"},d={root:"_root_ivjvl_1"},u={select:"_select_e8caw_1 -v-bg-inapparent",inherit:"_inherit_e8caw_6",border:"_border_e8caw_10 -v-border-inapparent",popover:"_popover_e8caw_17"},p={"select-option":"_select-option_1drk9_1 -v-bg-heavy -v-h -v-px",option:"_option_1drk9_6"},l={root:"_root_1bdkx_1"},v={wrapper:"_wrapper_10122_1",icon:"_icon_10122_18",border:"_border_10122_26",title:"_title_10122_30",description:"_description_10122_51"},f={steps:"_steps_ohx0o_1"},b={table:"_table_1iiqj_1"},h={card:"_card_v6avs_1",header:"_header_v6avs_6","header-title":"_header-title_v6avs_11","header-extra":"_header-extra_v6avs_15",content:"_content_v6avs_19",footer:"_footer_v6avs_23",action:"_action_v6avs_27"},m={tree:"_tree_1boqs_1"},$={treenode:"_treenode_1f4qu_1",header:"_header_1f4qu_6",title:"_title_1f4qu_16",toogle:"_toogle_1f4qu_21",status:"_status_1f4qu_28",icon:"_icon_1f4qu_31",content:"_content_1f4qu_35"},x={item:"_item_12dea_1",selected:"_selected_12dea_10",header:"_header_12dea_13",prefix:"_prefix_12dea_16",extra:"_extra_12dea_20"};e.button=o,e.buttonRounded=_,e.card=h,e.collapseItem=x,e.input=r,e.layout=n,e.menu=a,e.menuItem=s,e.paragraph=i,e.radioButton=c,e.radioGroup=d,e.select=u,e.selectOption=p,e.space=l,e.step=v,e.steps=f,e.table=b,e.tree=m,e.treeNode=$,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
{ | ||
"name": "cosmic-ui-alpha", | ||
"version": "0.0.16-alpha.10", | ||
"version": "0.0.16-alpha.11", | ||
"main": "./dist/index.umd.js", | ||
@@ -21,3 +21,3 @@ "module": "./dist/index.es.js", | ||
"build:dts": "tcm -p './**/**.module.css'", | ||
"build:css": "cosmic-util -u ./dist/static-utilities.css && node ./script/build-css.js" | ||
"build:css": "cosmic-util -u ./dist/utilities-unminify.css && node ./script/build-css.js" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
const { join } = require('path'); | ||
const { readFileSync, writeFileSync, unlinkSync } = require('fs'); | ||
const { readFileSync, writeFileSync } = require('fs'); | ||
const { minify } = require('csso'); | ||
const dynamicUtilies = readFileSync(join(__dirname, '../css', 'utilities.css')).toString(); | ||
const staticUtilities = readFileSync(join(__dirname, '..', 'dist', 'static-utilities.css')).toString(); | ||
const utilities = dynamicUtilies + '\n' + '\n' + staticUtilities; | ||
const utilities = readFileSync(join(__dirname, '..', 'dist', 'utilities-unminify.css')).toString(); | ||
const variables = readFileSync(join(__dirname, '../css', 'variables.css')).toString(); | ||
const variantClasses = readFileSync(join(__dirname, '../css', 'variant-classes.css')).toString(); | ||
const styleCSS = readFileSync(join(__dirname, '..', 'dist', 'style.css')).toString(); | ||
const variantClasses = readFileSync(join(__dirname, '../css', 'variant-classes.css')).toString(); | ||
const newCSS = variantClasses + styleCSS; | ||
writeFileSync(join(__dirname, '..', 'dist', 'utilities.css'), minify(utilities).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables.css'), minify(variables).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'ui.css'), minify(variables + '\n' + utilities + '\n' + newCSS).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'style.css'), minify(newCSS).css); | ||
unlinkSync(join(__dirname, '..', 'dist', 'static-utilities.css')); | ||
const darkVariables = readFileSync(join(__dirname, '../css', 'variables-dark.css')).toString(); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables-dark.css'), minify(darkVariables).css); | ||
writeFileSync(join(__dirname, '..', 'dist', 'variables-dark.css'), minify(darkVariables).css); |
declare const styles: { | ||
readonly "select": string; | ||
readonly "inherit": string; | ||
readonly "border": string; | ||
readonly "popover": string; | ||
@@ -5,0 +6,0 @@ }; |
@@ -0,1 +1,3 @@ | ||
/** this config can be replaced by windicss.config.js or tailwind.config.js */ | ||
const { defineConfig } = require('cosmic-util'); | ||
@@ -5,25 +7,52 @@ | ||
theme: { | ||
opacity: { | ||
0: '0', | ||
5: '.5', | ||
10: '.1', | ||
20: '.2', | ||
25: '.25', | ||
30: '.3', | ||
40: '.4', | ||
50: '.5', | ||
60: '.6', | ||
70: '.7', | ||
75: '.75', | ||
80: '.8', | ||
90: '.9', | ||
95: '.95', | ||
100: '1', | ||
}, | ||
spacing: { | ||
0: '0', | ||
1: 'var(--spacing-1)', | ||
2: 'var(--spacing-2)', | ||
4: 'var(--spacing-4)', | ||
6: 'var(--spacing-6)', | ||
8: 'var(--spacing-8)', | ||
10: 'var(--spacing-10)', | ||
12: 'var(--spacing-12)', | ||
14: 'var(--spacing-14)', | ||
16: 'var(--spacing-16)', | ||
18: 'var(--spacing-18)', | ||
20: 'var(--spacing-20)', | ||
26: 'var(--spacing-26)', | ||
32: 'var(--spacing-32)', | ||
40: 'var(--spacing-40)', | ||
50: 'var(--spacing-50)', | ||
60: 'var(--spacing-60)', | ||
80: 'var(--spacing-80)', | ||
90: 'var(--spacing-90)', | ||
}, | ||
extend: { | ||
spacing: { | ||
0: '0', | ||
1: 'var(--spacing-1)', | ||
2: 'var(--spacing-2)', | ||
4: 'var(--spacing-4)', | ||
6: 'var(--spacing-6)', | ||
8: 'var(--spacing-8)', | ||
10: 'var(--spacing-10)', | ||
12: 'var(--spacing-12)', | ||
14: 'var(--spacing-14)', | ||
16: 'var(--spacing-16)', | ||
18: 'var(--spacing-18)', | ||
20: 'var(--spacing-20)', | ||
26: 'var(--spacing-26)', | ||
32: 'var(--spacing-32)', | ||
40: 'var(--spacing-40)', | ||
50: 'var(--spacing-50)', | ||
60: 'var(--spacing-60)', | ||
80: 'var(--spacing-80)', | ||
fontSize: { | ||
'xs': ['var(--font-xs)', 'var(--leading-xs)'], | ||
'sm': ['var(--font-sm)', 'var(--leading-xs)'], | ||
'md': ['var(--font-md)', 'var(--leading-xs)'], | ||
'lg': ['var(--font-lg)', 'var(--leading-xs)'], | ||
'xl': ['var(--font-xl)', 'var(--leading-xs)'], | ||
'2xl': ['var(--font-2xl)', 'var(--leading-xs)'], | ||
}, | ||
// extends | ||
}, | ||
}, | ||
}); | ||
}); |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
142327
2982
0