@shell-shock/plugin-theme 0.4.21 → 0.4.24
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.
- package/dist/_virtual/_rolldown/runtime.cjs +29 -1
- package/dist/_virtual/_rolldown/runtime.mjs +8 -1
- package/dist/contexts/index.cjs +5 -1
- package/dist/contexts/index.mjs +3 -1
- package/dist/contexts/theme.cjs +28 -1
- package/dist/contexts/theme.d.cts.map +1 -1
- package/dist/contexts/theme.d.mts.map +1 -1
- package/dist/contexts/theme.mjs +26 -1
- package/dist/contexts/theme.mjs.map +1 -1
- package/dist/core/dist/config.d.cts +1 -0
- package/dist/core/dist/config.d.mts +9 -0
- package/dist/core/dist/config.d.mts.map +1 -0
- package/dist/core/dist/index.d.cts +1 -1
- package/dist/{packages/core → core}/dist/index.d.mts +2 -2
- package/dist/core/dist/index.d.mts.map +1 -0
- package/dist/core/dist/types/command.d.cts +60 -69
- package/dist/core/dist/types/command.d.cts.map +1 -1
- package/dist/core/dist/types/command.d.mts +8 -0
- package/dist/core/dist/types/command.d.mts.map +1 -0
- package/dist/core/dist/types/config.d.cts +14 -14
- package/dist/core/dist/types/config.d.cts.map +1 -1
- package/dist/{packages/core → core}/dist/types/config.d.mts +1 -1
- package/dist/core/dist/types/config.d.mts.map +1 -0
- package/dist/core/dist/types/context.d.cts.map +1 -1
- package/dist/{packages/core → core}/dist/types/context.d.mts +1 -1
- package/dist/core/dist/types/context.d.mts.map +1 -0
- package/dist/{packages/core → core}/dist/types/options.d.mts +1 -1
- package/dist/core/dist/types/options.d.mts.map +1 -0
- package/dist/helpers/ansi-utils.cjs +1294 -1
- package/dist/helpers/ansi-utils.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.d.mts.map +1 -1
- package/dist/helpers/ansi-utils.mjs +1287 -1
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/border-styles.cjs +201 -1
- package/dist/helpers/border-styles.d.cts.map +1 -1
- package/dist/helpers/border-styles.d.mts.map +1 -1
- package/dist/helpers/border-styles.mjs +199 -1
- package/dist/helpers/border-styles.mjs.map +1 -1
- package/dist/helpers/constants.cjs +39 -1
- package/dist/helpers/constants.d.mts.map +1 -1
- package/dist/helpers/constants.mjs +33 -1
- package/dist/helpers/constants.mjs.map +1 -1
- package/dist/helpers/index.cjs +107 -1
- package/dist/helpers/index.mjs +6 -1
- package/dist/helpers/merge.cjs +18 -1
- package/dist/helpers/merge.d.cts.map +1 -1
- package/dist/helpers/merge.d.mts.map +1 -1
- package/dist/helpers/merge.mjs +17 -1
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/helpers/spinners.cjs +1852 -1
- package/dist/helpers/spinners.d.cts.map +1 -1
- package/dist/helpers/spinners.d.mts.map +1 -1
- package/dist/helpers/spinners.mjs +1758 -1
- package/dist/helpers/spinners.mjs.map +1 -1
- package/dist/index.cjs +70 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +65 -1
- package/dist/index.mjs.map +1 -1
- package/dist/style-dictionary/border-styles.cjs +284 -1
- package/dist/style-dictionary/border-styles.mjs +284 -1
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.cjs +1390 -1
- package/dist/style-dictionary/colors.mjs +1390 -1
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.cjs +168 -1
- package/dist/style-dictionary/icons.mjs +168 -1
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.cjs +150 -1
- package/dist/style-dictionary/labels.mjs +150 -1
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.cjs +37 -1
- package/dist/style-dictionary/padding.mjs +37 -1
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.cjs +25 -1
- package/dist/style-dictionary/settings.mjs +25 -1
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.cjs +30 -1
- package/dist/style-dictionary/spinners.mjs +30 -1
- package/dist/style-dictionary/spinners.mjs.map +1 -1
- package/dist/themes/default.cjs +156 -1
- package/dist/themes/default.mjs +155 -1
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/theme.d.cts.map +1 -1
- package/dist/types/theme.d.mts.map +1 -1
- package/dist/types/theme.mjs +1 -1
- package/package.json +15 -19
- package/dist/core/dist/api.d.cts +0 -1
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +0 -8
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.mts +0 -11
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.d.mts +0 -10
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.d.mts +0 -14
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/enumUtil.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/enumUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.mts +0 -10
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/partialUtil.d.mts +0 -9
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/partialUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.d.mts +0 -9
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.d.mts +0 -9
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.mts +0 -16
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.mts.map +0 -1
- package/dist/packages/core/dist/api.d.mts +0 -8
- package/dist/packages/core/dist/api.d.mts.map +0 -1
- package/dist/packages/core/dist/index.d.mts.map +0 -1
- package/dist/packages/core/dist/types/command.d.mts +0 -10
- package/dist/packages/core/dist/types/command.d.mts.map +0 -1
- package/dist/packages/core/dist/types/config.d.mts.map +0 -1
- package/dist/packages/core/dist/types/context.d.mts.map +0 -1
- package/dist/packages/core/dist/types/options.d.mts.map +0 -1
|
@@ -1 +1,1390 @@
|
|
|
1
|
-
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../helpers/merge.cjs`);let t=require(`@stryke/type-checks/is-set-object`),n=require(`@stryke/type-checks/is-set-string`),r=require(`@stryke/string-format/camel-case`);const i=i=>({name:`shell-shock/colors`,preprocessor:(a,o)=>{let s={};s.name=a.$theme??i.config.name,s.colors??={text:{banner:{},heading:{},body:{},message:{link:{},header:{},footer:{},description:{}},tags:{$default:`#FFFFFF`}},border:{banner:{outline:{},divider:{}},app:{table:{},divider:{},blockquote:{}},message:{outline:{},divider:{}}}};let c=a.colors;if((0,n.isSetString)(c))s.colors={text:{banner:{title:{primary:c,secondary:c,tertiary:c},header:{primary:c,secondary:c,tertiary:c},footer:{primary:c,secondary:c,tertiary:c},command:{primary:c,secondary:c,tertiary:c},description:{primary:c,secondary:c,tertiary:c},link:{primary:c,secondary:c,tertiary:c}},heading:{primary:c,secondary:c,tertiary:c},body:{primary:c,secondary:c,tertiary:c,link:c},message:{link:{help:c,success:c,info:c,debug:c,warning:c,danger:c,error:c},header:{help:c,success:c,info:c,debug:c,warning:c,danger:c,error:c},footer:{help:c,success:c,info:c,debug:c,warning:c,danger:c,error:c},description:{help:c,success:c,info:c,debug:c,warning:c,danger:c,error:c}},usage:{bin:c,command:c,dynamic:c,options:c,args:c,description:c},prompt:{icon:{active:c,cancelled:c,warning:c,error:c,submitted:c,disabled:c},message:{active:c,cancelled:c,warning:c,error:c,submitted:c,disabled:c},input:{active:c,inactive:c,cancelled:c,warning:c,error:c,submitted:c,placeholder:c,disabled:c},description:{active:c,inactive:c,cancelled:c,warning:c,error:c,submitted:c,disabled:c}},spinner:{icon:{active:c,error:c,success:c,help:c,info:c,warning:c},message:{active:c,error:c,success:c,help:c,info:c,warning:c}},tags:{$default:c}},border:{banner:{outline:{primary:c,secondary:c,tertiary:c},divider:{primary:c,secondary:c,tertiary:c}},app:{table:{primary:c,secondary:c,tertiary:c},divider:{primary:c,secondary:c,tertiary:c},blockquote:{primary:c,secondary:c,tertiary:c}},message:{outline:{help:c,success:c,info:c,debug:c,warning:c,danger:c,error:c},divider:{help:c,success:c,info:c,debug:c,warning:c,danger:c,error:c}}}};else if((0,t.isSetObject)(c)){s.colors.text??={banner:{},heading:{},body:{},message:{link:{},header:{},footer:{},description:{}}};let e=c.text;if((0,n.isSetString)(e))s.colors.text={banner:{title:{primary:e,secondary:e,tertiary:e},header:{primary:e,secondary:e,tertiary:e},footer:{primary:e,secondary:e,tertiary:e},command:{primary:e,secondary:e,tertiary:e},description:{primary:e,secondary:e,tertiary:e},link:{primary:e,secondary:e,tertiary:e}},heading:{primary:e,secondary:e,tertiary:e},body:{primary:e,secondary:e,tertiary:e,link:e},message:{link:{help:e,success:e,info:e,debug:e,warning:e,danger:e,error:e},header:{help:e,success:e,info:e,debug:e,warning:e,danger:e,error:e},footer:{help:e,success:e,info:e,debug:e,warning:e,danger:e,error:e},description:{help:e,success:e,info:e,debug:e,warning:e,danger:e,error:e}},usage:{bin:e,command:e,dynamic:e,options:e,args:e,description:e},prompt:{icon:{active:e,cancelled:e,warning:e,error:e,submitted:e,disabled:e},message:{active:e,cancelled:e,warning:e,error:e,submitted:e,disabled:e},input:{active:e,inactive:e,cancelled:e,warning:e,error:e,submitted:e,placeholder:e,disabled:e},description:{active:e,inactive:e,cancelled:e,warning:e,error:e,submitted:e,disabled:e}},spinner:{icon:{active:e,error:e,success:e,help:e,info:e,warning:e},message:{active:e,error:e,success:e,help:e,info:e,warning:e}},tags:{$default:e}};else if((0,t.isSetObject)(e)){s.colors.text.banner??={};let i=e.banner;if((0,n.isSetString)(i))s.colors.text.banner={title:{primary:i,secondary:i,tertiary:i},header:{primary:i,secondary:i,tertiary:i},footer:{primary:i,secondary:i,tertiary:i},command:{primary:i,secondary:i,tertiary:i},description:{primary:i,secondary:i,tertiary:i},link:{primary:i,secondary:i,tertiary:i}};else if((0,t.isSetObject)(e.banner)){s.colors.text.banner.title??={};let r=e.banner.title;(0,n.isSetString)(e.banner.title)?s.colors.text.banner.title={primary:e.banner.title,secondary:e.banner.title,tertiary:e.banner.title}:(0,t.isSetObject)(r)&&((0,n.isSetString)(r.primary)&&(s.colors.text.banner.title.primary=r.primary),(0,n.isSetString)(r.secondary)&&(s.colors.text.banner.title.secondary=r.secondary),(0,n.isSetString)(r.tertiary)&&(s.colors.text.banner.title.tertiary=r.tertiary)),s.colors.text.banner.header??={};let i=e.banner.header;(0,n.isSetString)(e.banner.header)?s.colors.text.banner.header={primary:e.banner.header,secondary:e.banner.header,tertiary:e.banner.header}:(0,t.isSetObject)(i)&&((0,n.isSetString)(i.primary)&&(s.colors.text.banner.header.primary=i.primary),(0,n.isSetString)(i.secondary)&&(s.colors.text.banner.header.secondary=i.secondary),(0,n.isSetString)(i.tertiary)&&(s.colors.text.banner.header.tertiary=i.tertiary)),s.colors.text.banner.footer??={};let a=e.banner.footer;(0,n.isSetString)(e.banner.footer)?s.colors.text.banner.footer={primary:e.banner.footer,secondary:e.banner.footer,tertiary:e.banner.footer}:(0,t.isSetObject)(a)&&((0,n.isSetString)(a.primary)&&(s.colors.text.banner.footer.primary=a.primary),(0,n.isSetString)(a.secondary)&&(s.colors.text.banner.footer.secondary=a.secondary),(0,n.isSetString)(a.tertiary)&&(s.colors.text.banner.footer.tertiary=a.tertiary)),s.colors.text.banner.command??={};let o=e.banner.command;(0,n.isSetString)(e.banner.command)?s.colors.text.banner.command={primary:e.banner.command,secondary:e.banner.command,tertiary:e.banner.command}:(0,t.isSetObject)(o)&&((0,n.isSetString)(o.primary)&&(s.colors.text.banner.command.primary=o.primary),(0,n.isSetString)(o.secondary)&&(s.colors.text.banner.command.secondary=o.secondary),(0,n.isSetString)(o.tertiary)&&(s.colors.text.banner.command.tertiary=o.tertiary)),s.colors.text.banner.description??={};let c=e.banner.description;(0,n.isSetString)(e.banner.description)?s.colors.text.banner.description={primary:e.banner.description,secondary:e.banner.description,tertiary:e.banner.description}:(0,t.isSetObject)(c)&&((0,n.isSetString)(c.primary)&&(s.colors.text.banner.description.primary=c.primary),(0,n.isSetString)(c.secondary)&&(s.colors.text.banner.description.secondary=c.secondary),(0,n.isSetString)(c.tertiary)&&(s.colors.text.banner.description.tertiary=c.tertiary)),s.colors.text.banner.link??={};let l=e.banner.link;(0,n.isSetString)(e.banner.link)?s.colors.text.banner.link={primary:e.banner.link,secondary:e.banner.link,tertiary:e.banner.link}:(0,t.isSetObject)(l)&&((0,n.isSetString)(l.primary)&&(s.colors.text.banner.link.primary=l.primary),(0,n.isSetString)(l.secondary)&&(s.colors.text.banner.link.secondary=l.secondary),(0,n.isSetString)(l.tertiary)&&(s.colors.text.banner.link.tertiary=l.tertiary))}if(s.colors.text.body??={},(0,n.isSetString)(e.body)){let t=e.body;s.colors.text.body={primary:t,secondary:t,tertiary:t,link:t}}else (0,t.isSetObject)(e.body)&&((0,n.isSetString)(e.body.primary)&&(s.colors.text.body.primary=e.body.primary),(0,n.isSetString)(e.body.secondary)&&(s.colors.text.body.secondary=e.body.secondary),(0,n.isSetString)(e.body.tertiary)&&(s.colors.text.body.tertiary=e.body.tertiary),(0,n.isSetString)(e.body.link)&&(s.colors.text.body.link=e.body.link));if(s.colors.text.heading??={},(0,n.isSetString)(e.heading)){let t=e.heading;s.colors.text.heading={primary:t,secondary:t,tertiary:t}}else (0,t.isSetObject)(e.heading)&&((0,n.isSetString)(e.heading.primary)&&(s.colors.text.heading.primary=e.heading.primary),(0,n.isSetString)(e.heading.secondary)&&(s.colors.text.heading.secondary=e.heading.secondary),(0,n.isSetString)(e.heading.tertiary)&&(s.colors.text.heading.tertiary=e.heading.tertiary));s.colors.text.usage??={},(0,n.isSetString)(e.usage)?s.colors.text.usage={bin:e.usage,command:e.usage,dynamic:e.usage,options:e.usage,args:e.usage,description:e.usage}:(0,t.isSetObject)(e.usage)&&((0,n.isSetString)(e.usage.bin)&&(s.colors.text.usage.bin=e.usage.bin),(0,n.isSetString)(e.usage.command)&&(s.colors.text.usage.command=e.usage.command),(0,n.isSetString)(e.usage.dynamic)&&(s.colors.text.usage.dynamic=e.usage.dynamic),(0,n.isSetString)(e.usage.options)&&(s.colors.text.usage.options=e.usage.options),(0,n.isSetString)(e.usage.args)&&(s.colors.text.usage.args=e.usage.args),(0,n.isSetString)(e.usage.description)&&(s.colors.text.usage.description=e.usage.description)),s.colors.text.message??={link:{},header:{},footer:{},description:{}};let a=e.message;if((0,n.isSetString)(a))s.colors.text.message={link:{help:a,success:a,info:a,debug:a,warning:a,danger:a,error:a},header:{help:a,success:a,info:a,debug:a,warning:a,danger:a,error:a},footer:{help:a,success:a,info:a,debug:a,warning:a,danger:a,error:a},description:{help:a,success:a,info:a,debug:a,warning:a,danger:a,error:a}};else if((0,t.isSetObject)(a)){s.colors.text.message.link??={};let e=a.link;(0,n.isSetString)(e)?s.colors.text.message.link={help:e,success:e,info:e,debug:e,warning:e,danger:e,error:e}:(0,t.isSetObject)(e)&&((0,n.isSetString)(e.help)&&(s.colors.text.message.link.help=e.help),(0,n.isSetString)(e.success)&&(s.colors.text.message.link.success=e.success),(0,n.isSetString)(e.info)&&(s.colors.text.message.link.info=e.info),(0,n.isSetString)(e.debug)&&(s.colors.text.message.link.debug=e.debug),(0,n.isSetString)(e.warning)&&(s.colors.text.message.link.warning=e.warning),(0,n.isSetString)(e.danger)&&(s.colors.text.message.link.danger=e.danger),(0,n.isSetString)(e.error)&&(s.colors.text.message.link.error=e.error)),s.colors.text.message.description??={};let r=a.description;(0,n.isSetString)(r)?s.colors.text.message.description={help:r,success:r,info:r,debug:r,warning:r,danger:r,error:r}:(0,t.isSetObject)(r)&&((0,n.isSetString)(r.help)&&(s.colors.text.message.description.help=r.help),(0,n.isSetString)(r.success)&&(s.colors.text.message.description.success=r.success),(0,n.isSetString)(r.info)&&(s.colors.text.message.description.info=r.info),(0,n.isSetString)(r.debug)&&(s.colors.text.message.description.debug=r.debug),(0,n.isSetString)(r.warning)&&(s.colors.text.message.description.warning=r.warning),(0,n.isSetString)(r.danger)&&(s.colors.text.message.description.danger=r.danger),(0,n.isSetString)(r.error)&&(s.colors.text.message.description.error=r.error)),s.colors.text.message.header??={};let i=a.header;(0,n.isSetString)(i)?s.colors.text.message.header={help:i,success:i,info:i,debug:i,warning:i,danger:i,error:i}:(0,t.isSetObject)(i)&&((0,n.isSetString)(i.help)&&(s.colors.text.message.header.help=i.help),(0,n.isSetString)(i.success)&&(s.colors.text.message.header.success=i.success),(0,n.isSetString)(i.info)&&(s.colors.text.message.header.info=i.info),(0,n.isSetString)(i.debug)&&(s.colors.text.message.header.debug=i.debug),(0,n.isSetString)(i.warning)&&(s.colors.text.message.header.warning=i.warning),(0,n.isSetString)(i.danger)&&(s.colors.text.message.header.danger=i.danger),(0,n.isSetString)(i.error)&&(s.colors.text.message.header.error=i.error)),s.colors.text.message.footer??={};let o=a.footer;(0,n.isSetString)(o)?s.colors.text.message.footer={help:o,success:o,info:o,debug:o,warning:o,danger:o,error:o}:(0,t.isSetObject)(o)&&((0,n.isSetString)(o.help)&&(s.colors.text.message.footer.help=o.help),(0,n.isSetString)(o.success)&&(s.colors.text.message.footer.success=o.success),(0,n.isSetString)(o.info)&&(s.colors.text.message.footer.info=o.info),(0,n.isSetString)(o.debug)&&(s.colors.text.message.footer.debug=o.debug),(0,n.isSetString)(o.warning)&&(s.colors.text.message.footer.warning=o.warning),(0,n.isSetString)(o.danger)&&(s.colors.text.message.footer.danger=o.danger),(0,n.isSetString)(o.error)&&(s.colors.text.message.footer.error=o.error))}s.colors.text.prompt??={icon:{},message:{},input:{},description:{}};let o=e.prompt;if((0,n.isSetString)(o))s.colors.text.prompt={icon:{active:o,cancelled:o,warning:o,error:o,submitted:o,disabled:o},message:{active:o,cancelled:o,warning:o,error:o,submitted:o,disabled:o},input:{active:o,inactive:o,cancelled:o,warning:o,error:o,submitted:o,placeholder:o,disabled:o},description:{active:o,inactive:o,cancelled:o,warning:o,error:o,submitted:o,disabled:o}};else if((0,t.isSetObject)(o)){if((0,n.isSetString)(o.icon)){let e=o.icon;s.colors.text.prompt.icon={active:e,cancelled:e,warning:e,error:e,submitted:e,disabled:e}}else (0,t.isSetObject)(o.icon)&&((0,n.isSetString)(o.icon.active)&&(s.colors.text.prompt.icon.active=o.icon.active),(0,n.isSetString)(o.icon.cancelled)&&(s.colors.text.prompt.icon.cancelled=o.icon.cancelled),(0,n.isSetString)(o.icon.warning)&&(s.colors.text.prompt.icon.warning=o.icon.warning),(0,n.isSetString)(o.icon.error)&&(s.colors.text.prompt.icon.error=o.icon.error),(0,n.isSetString)(o.icon.submitted)&&(s.colors.text.prompt.icon.submitted=o.icon.submitted),(0,n.isSetString)(o.icon.disabled)&&(s.colors.text.prompt.icon.disabled=o.icon.disabled));if((0,n.isSetString)(o.message)){let e=o.message;s.colors.text.prompt.message={active:e,cancelled:e,warning:e,error:e,submitted:e,disabled:e}}else (0,t.isSetObject)(o.message)&&((0,n.isSetString)(o.message.active)&&(s.colors.text.prompt.message.active=o.message.active),(0,n.isSetString)(o.message.cancelled)&&(s.colors.text.prompt.message.cancelled=o.message.cancelled),(0,n.isSetString)(o.message.warning)&&(s.colors.text.prompt.message.warning=o.message.warning),(0,n.isSetString)(o.message.error)&&(s.colors.text.prompt.message.error=o.message.error),(0,n.isSetString)(o.message.submitted)&&(s.colors.text.prompt.message.submitted=o.message.submitted),(0,n.isSetString)(o.message.disabled)&&(s.colors.text.prompt.message.disabled=o.message.disabled));if((0,n.isSetString)(o.input)){let e=o.input;s.colors.text.prompt.input={active:e,inactive:e,cancelled:e,warning:e,error:e,submitted:e,placeholder:e,disabled:e}}else (0,t.isSetObject)(o.input)&&((0,n.isSetString)(o.input.active)&&(s.colors.text.prompt.input.active=o.input.active),(0,n.isSetString)(o.input.inactive)&&(s.colors.text.prompt.input.inactive=o.input.inactive),(0,n.isSetString)(o.input.cancelled)&&(s.colors.text.prompt.input.cancelled=o.input.cancelled),(0,n.isSetString)(o.input.warning)&&(s.colors.text.prompt.input.warning=o.input.warning),(0,n.isSetString)(o.input.error)&&(s.colors.text.prompt.input.error=o.input.error),(0,n.isSetString)(o.input.submitted)&&(s.colors.text.prompt.input.submitted=o.input.submitted),(0,n.isSetString)(o.input.placeholder)&&(s.colors.text.prompt.input.placeholder=o.input.placeholder),(0,n.isSetString)(o.input.disabled)&&(s.colors.text.prompt.input.disabled=o.input.disabled));if((0,n.isSetString)(o.description)){let e=o.description;s.colors.text.prompt.description={active:e,inactive:e,cancelled:e,warning:e,error:e,submitted:e,disabled:e}}else (0,t.isSetObject)(o.description)&&((0,n.isSetString)(o.description.active)&&(s.colors.text.prompt.description.active=o.description.active),(0,n.isSetString)(o.description.inactive)&&(s.colors.text.prompt.description.inactive=o.description.inactive),(0,n.isSetString)(o.description.cancelled)&&(s.colors.text.prompt.description.cancelled=o.description.cancelled),(0,n.isSetString)(o.description.warning)&&(s.colors.text.prompt.description.warning=o.description.warning),(0,n.isSetString)(o.description.error)&&(s.colors.text.prompt.description.error=o.description.error),(0,n.isSetString)(o.description.submitted)&&(s.colors.text.prompt.description.submitted=o.description.submitted),(0,n.isSetString)(o.description.disabled)&&(s.colors.text.prompt.description.disabled=o.description.disabled))}s.colors.text.spinner??={icon:{},message:{}};let c=e.spinner;if((0,n.isSetString)(c))s.colors.text.spinner={icon:{active:c,error:c,success:c,help:c,info:c,warning:c},message:{active:c,error:c,success:c,help:c,info:c,warning:c}};else if((0,t.isSetObject)(c)){if((0,n.isSetString)(c.icon)){let e=c.icon;s.colors.text.spinner.icon={active:e,error:e,success:e,help:e,info:e,warning:e}}else (0,t.isSetObject)(c.icon)&&((0,n.isSetString)(c.icon.active)&&(s.colors.text.spinner.icon.active=c.icon.active),(0,n.isSetString)(c.icon.error)&&(s.colors.text.spinner.icon.error=c.icon.error),(0,n.isSetString)(c.icon.success)&&(s.colors.text.spinner.icon.success=c.icon.success),(0,n.isSetString)(c.icon.help)&&(s.colors.text.spinner.icon.help=c.icon.help),(0,n.isSetString)(c.icon.info)&&(s.colors.text.spinner.icon.info=c.icon.info),(0,n.isSetString)(c.icon.warning)&&(s.colors.text.spinner.icon.warning=c.icon.warning));if((0,n.isSetString)(c.message)){let e=c.message;s.colors.text.spinner.message={active:e,error:e,success:e,help:e,info:e,warning:e}}else (0,t.isSetObject)(c.message)&&((0,n.isSetString)(c.message.active)&&(s.colors.text.spinner.message.active=c.message.active),(0,n.isSetString)(c.message.error)&&(s.colors.text.spinner.message.error=c.message.error),(0,n.isSetString)(c.message.success)&&(s.colors.text.spinner.message.success=c.message.success),(0,n.isSetString)(c.message.help)&&(s.colors.text.spinner.message.help=c.message.help),(0,n.isSetString)(c.message.info)&&(s.colors.text.spinner.message.info=c.message.info),(0,n.isSetString)(c.message.warning)&&(s.colors.text.spinner.message.warning=c.message.warning))}s.colors.text.tags??={$default:`#FFFFFF`};let l=e.tags;if((0,n.isSetString)(l))s.colors.text.tags={$default:l};else if((0,t.isSetObject)(l))for(let[e,t]of Object.entries(l))(0,n.isSetString)(t)&&(s.colors.text.tags[e===`$default`?`$default`:(0,r.camelCase)(e)]=t)}s.colors.border??={banner:{outline:{},divider:{}},app:{table:{},divider:{},blockquote:{}},message:{outline:{},divider:{}}};let i=c.border;if((0,n.isSetString)(i))s.colors.border={banner:{outline:{primary:i,secondary:i,tertiary:i},divider:{primary:i,secondary:i,tertiary:i}},app:{table:{primary:i,secondary:i,tertiary:i},divider:{primary:i,secondary:i,tertiary:i},blockquote:{primary:i,secondary:i,tertiary:i}},message:{outline:{help:i,success:i,info:i,debug:i,warning:i,danger:i,error:i},divider:{help:i,success:i,info:i,debug:i,warning:i,danger:i,error:i}}};else if((0,t.isSetObject)(i)){s.colors.border.banner??={outline:{},divider:{}};let e=i.banner;if((0,n.isSetString)(e))s.colors.border.banner={outline:{primary:e,secondary:e,tertiary:e},divider:{primary:e,secondary:e,tertiary:e}};else if((0,t.isSetObject)(e))if(`outline`in e||`divider`in e){s.colors.border.banner.outline={};let r=e.outline;(0,n.isSetString)(r)?s.colors.border.banner.outline={primary:r,secondary:r,tertiary:r}:(0,t.isSetObject)(r)&&((0,n.isSetString)(r.primary)&&(s.colors.border.banner.outline.primary=r.primary),(0,n.isSetString)(r.secondary)&&(s.colors.border.banner.outline.secondary=r.secondary),(0,n.isSetString)(r.tertiary)&&(s.colors.border.banner.outline.tertiary=r.tertiary)),s.colors.border.banner.divider??={};let i=e.divider;(0,n.isSetString)(i)?s.colors.border.banner.divider={primary:i,secondary:i,tertiary:i}:(0,t.isSetObject)(i)&&((0,n.isSetString)(i.primary)&&(s.colors.border.banner.divider.primary=i.primary),(0,n.isSetString)(i.secondary)&&(s.colors.border.banner.divider.secondary=i.secondary),(0,n.isSetString)(i.tertiary)&&(s.colors.border.banner.divider.tertiary=i.tertiary))}else{s.colors.border.banner.outline??={},s.colors.border.banner.divider??={};let e=i.banner;(0,n.isSetString)(e.primary)&&(s.colors.border.banner.outline.primary=e.primary,s.colors.border.banner.divider.primary=e.primary),(0,n.isSetString)(e.secondary)&&(s.colors.border.banner.outline.secondary=e.secondary,s.colors.border.banner.divider.secondary=e.secondary),(0,n.isSetString)(e.tertiary)&&(s.colors.border.banner.outline.tertiary=e.tertiary,s.colors.border.banner.divider.tertiary=e.tertiary)}s.colors.border.app??={table:{},divider:{}};let r=i.app;if((0,n.isSetString)(r))s.colors.border.app={table:{primary:r,secondary:r,tertiary:r},divider:{primary:r,secondary:r,tertiary:r},blockquote:{primary:r,secondary:r,tertiary:r}};else if((0,t.isSetObject)(r))if(s.colors.border.app??={},`table`in r||`divider`in r||`blockquote`in r){if((0,n.isSetString)(r.table))s.colors.border.app.table={primary:r.table,secondary:r.table,tertiary:r.table};else if((0,t.isSetObject)(r.table)){s.colors.border.app.table={};let e=r.table;(0,n.isSetString)(e.primary)&&(s.colors.border.app.table.primary=e.primary),(0,n.isSetString)(e.secondary)&&(s.colors.border.app.table.secondary=e.secondary),(0,n.isSetString)(e.tertiary)&&(s.colors.border.app.table.tertiary=e.tertiary)}if((0,n.isSetString)(r.divider))s.colors.border.app.divider={primary:r.divider,secondary:r.divider,tertiary:r.divider};else if((0,t.isSetObject)(r.divider)){s.colors.border.app.divider={};let e=r.divider;(0,n.isSetString)(e.primary)&&(s.colors.border.app.divider.primary=e.primary),(0,n.isSetString)(e.secondary)&&(s.colors.border.app.divider.secondary=e.secondary),(0,n.isSetString)(e.tertiary)&&(s.colors.border.app.divider.tertiary=e.tertiary)}if((0,n.isSetString)(r.blockquote))s.colors.border.app.blockquote={primary:r.blockquote,secondary:r.blockquote,tertiary:r.blockquote};else if((0,t.isSetObject)(r.blockquote)){s.colors.border.app.blockquote={};let e=r.blockquote;(0,n.isSetString)(e.primary)&&(s.colors.border.app.blockquote.primary=e.primary),(0,n.isSetString)(e.secondary)&&(s.colors.border.app.blockquote.secondary=e.secondary),(0,n.isSetString)(e.tertiary)&&(s.colors.border.app.blockquote.tertiary=e.tertiary)}}else{s.colors.border.app.table??={},s.colors.border.app.divider??={},s.colors.border.app.blockquote??={};let e=i.app;(0,n.isSetString)(e.primary)&&(s.colors.border.app.table.primary=e.primary,s.colors.border.app.divider.primary=e.primary,s.colors.border.app.blockquote.primary=e.primary),(0,n.isSetString)(e.secondary)&&(s.colors.border.app.table.secondary=e.secondary,s.colors.border.app.divider.secondary=e.secondary,s.colors.border.app.blockquote.secondary=e.secondary),(0,n.isSetString)(e.tertiary)&&(s.colors.border.app.table.tertiary=e.tertiary,s.colors.border.app.divider.tertiary=e.tertiary,s.colors.border.app.blockquote.tertiary=e.tertiary)}s.colors.border.message??={outline:{},divider:{}};let a=i.message;if((0,n.isSetString)(a))s.colors.border.message={outline:{help:a,success:a,info:a,debug:a,warning:a,danger:a,error:a},divider:{help:a,success:a,info:a,debug:a,warning:a,danger:a,error:a}};else if((0,t.isSetObject)(a))if(s.colors.border.message??={},`outline`in a||`divider`in a){if((0,n.isSetString)(a.outline))s.colors.border.message.outline={help:a.outline,success:a.outline,info:a.outline,debug:a.outline,warning:a.outline,danger:a.outline,error:a.outline};else if((0,t.isSetObject)(a.outline)){s.colors.border.message.outline??={};let e=a.outline;(0,n.isSetString)(e.help)&&(s.colors.border.message.outline.help=e.help),(0,n.isSetString)(e.success)&&(s.colors.border.message.outline.success=e.success),(0,n.isSetString)(e.info)&&(s.colors.border.message.outline.info=e.info),(0,n.isSetString)(e.debug)&&(s.colors.border.message.outline.debug=e.debug),(0,n.isSetString)(e.warning)&&(s.colors.border.message.outline.warning=e.warning),(0,n.isSetString)(e.danger)&&(s.colors.border.message.outline.danger=e.danger),(0,n.isSetString)(e.error)&&(s.colors.border.message.outline.error=e.error)}if((0,n.isSetString)(a.divider))s.colors.border.message.divider={help:a.divider,success:a.divider,info:a.divider,debug:a.divider,warning:a.divider,danger:a.divider,error:a.divider};else if((0,t.isSetObject)(a.divider)){s.colors.border.message.divider??={};let e=a.divider;(0,n.isSetString)(e.help)&&(s.colors.border.message.divider.help=e.help),(0,n.isSetString)(e.success)&&(s.colors.border.message.divider.success=e.success),(0,n.isSetString)(e.info)&&(s.colors.border.message.divider.info=e.info),(0,n.isSetString)(e.debug)&&(s.colors.border.message.divider.debug=e.debug),(0,n.isSetString)(e.warning)&&(s.colors.border.message.divider.warning=e.warning),(0,n.isSetString)(e.danger)&&(s.colors.border.message.divider.danger=e.danger),(0,n.isSetString)(e.error)&&(s.colors.border.message.divider.error=e.error)}}else{s.colors.border.message.outline??={},s.colors.border.message.divider??={};let e=i.message;(0,n.isSetString)(e.help)&&(s.colors.border.message.outline.help=e.help,s.colors.border.message.divider.help=e.help),(0,n.isSetString)(e.success)&&(s.colors.border.message.outline.success=e.success,s.colors.border.message.divider.success=e.success),(0,n.isSetString)(e.info)&&(s.colors.border.message.outline.info=e.info,s.colors.border.message.divider.info=e.info),(0,n.isSetString)(e.debug)&&(s.colors.border.message.outline.debug=e.debug,s.colors.border.message.divider.debug=e.debug),(0,n.isSetString)(e.warning)&&(s.colors.border.message.outline.warning=e.warning,s.colors.border.message.divider.warning=e.warning),(0,n.isSetString)(e.danger)&&(s.colors.border.message.outline.danger=e.danger,s.colors.border.message.divider.danger=e.danger),(0,n.isSetString)(e.error)&&(s.colors.border.message.outline.error=e.error,s.colors.border.message.divider.error=e.error)}}}return!s.colors.text?.body?.tertiary&&s.colors.text?.body?.secondary&&(s.colors.text.body.tertiary=s.colors.text.body.secondary),!s.colors.text?.body?.secondary&&s.colors.text?.body?.tertiary&&(s.colors.text.body.secondary=s.colors.text.body.tertiary),!s.colors.text?.heading?.tertiary&&s.colors.text?.heading?.secondary&&(s.colors.text.heading.tertiary=s.colors.text.heading.secondary),!s.colors.text?.heading?.secondary&&s.colors.text?.heading?.tertiary&&(s.colors.text.heading.secondary=s.colors.text.heading.tertiary),!s.colors.text?.heading?.primary&&s.colors.text?.banner?.title?.primary&&(s.colors.text.heading.primary=s.colors.text.banner.title.primary),!s.colors.text?.heading?.tertiary&&s.colors.text?.body?.secondary&&(s.colors.text.heading.tertiary=s.colors.text.body.secondary),!s.colors.text?.heading?.secondary&&s.colors.text?.body?.primary&&(s.colors.text.heading.secondary=s.colors.text.body.primary),!s.colors.text?.usage?.bin&&s.colors.text?.body?.primary&&(s.colors.text.usage.bin=s.colors.text.body.primary),!s.colors.text?.usage?.command&&s.colors.text?.body?.secondary&&(s.colors.text.usage.command=s.colors.text.body.secondary),!s.colors.text?.usage?.dynamic&&s.colors.text?.body?.tertiary&&(s.colors.text.usage.dynamic=s.colors.text.body.tertiary),!s.colors.text?.usage?.options&&s.colors.text?.body?.tertiary&&(s.colors.text.usage.options=s.colors.text.body.tertiary),!s.colors.text?.usage?.args&&s.colors.text?.body?.tertiary&&(s.colors.text.usage.args=s.colors.text.body.tertiary),!s.colors.text?.usage?.description&&s.colors.text?.body?.secondary&&(s.colors.text.usage.description=s.colors.text.body.secondary),!s.colors.text?.banner?.title?.primary&&s.colors.text?.heading?.primary&&(s.colors.text.banner.title??={},s.colors.text.banner.title.primary=s.colors.text.heading.primary),!s.colors.text?.banner?.command?.primary&&(s.colors.text?.heading?.secondary||s.colors.text?.heading?.primary)&&(s.colors.text.banner.command??={},s.colors.text.banner.command.primary=s.colors.text.heading.secondary||s.colors.text.heading.primary),!s.colors.text?.banner?.description?.primary&&s.colors.text?.body?.primary&&(s.colors.text.banner.description??={},s.colors.text.banner.description.primary=s.colors.text.body.primary),!s.colors.text?.banner?.link?.primary&&s.colors.text?.body?.link&&(s.colors.text.banner.link??={},s.colors.text.banner.link.primary=s.colors.text.body.link),!s.colors.text?.banner?.title?.secondary&&s.colors.text?.banner?.title?.primary&&(s.colors.text.banner.title??={},s.colors.text.banner.title.secondary=s.colors.text.banner.title.primary),!s.colors.text?.banner?.command?.secondary&&s.colors.text?.banner?.command?.primary&&(s.colors.text.banner.command??={},s.colors.text.banner.command.secondary=s.colors.text.banner.command.primary),!s.colors.text?.banner?.description?.secondary&&s.colors.text?.banner?.description?.primary&&(s.colors.text.banner.description??={},s.colors.text.banner.description.secondary=s.colors.text.banner.description.primary),!s.colors.text?.banner?.link?.secondary&&s.colors.text?.banner?.link?.primary&&(s.colors.text.banner.link??={},s.colors.text.banner.link.secondary=s.colors.text.banner.link.primary),!s.colors.text?.banner?.title?.tertiary&&s.colors.text?.banner?.title?.secondary&&(s.colors.text.banner.title??={},s.colors.text.banner.title.tertiary=s.colors.text.banner.title.secondary),!s.colors.text?.banner?.command?.tertiary&&s.colors.text?.banner?.command?.secondary&&(s.colors.text.banner.command??={},s.colors.text.banner.command.tertiary=s.colors.text.banner.command.secondary),!s.colors.text?.banner?.description?.tertiary&&s.colors.text?.banner?.description?.secondary&&(s.colors.text.banner.description??={},s.colors.text.banner.description.tertiary=s.colors.text.banner.description.secondary),!s.colors.text?.banner?.link?.tertiary&&s.colors.text?.banner?.link?.secondary&&(s.colors.text.banner.link??={},s.colors.text.banner.link.tertiary=s.colors.text.banner.link.secondary),!s.colors.border?.banner?.outline?.primary&&(s.colors.border?.banner?.outline?.secondary||s.colors.border?.banner?.outline?.tertiary)&&(s.colors.border.banner.outline.primary=s.colors.border.banner.outline.secondary||s.colors.border.banner.outline.tertiary),!s.colors.border?.banner?.outline?.secondary&&(s.colors.border?.banner?.outline?.primary||s.colors.border?.banner?.outline?.tertiary)&&(s.colors.border.banner.outline.secondary=s.colors.border.banner.outline.primary||s.colors.border.banner.outline.tertiary),!s.colors.border?.banner?.outline?.tertiary&&(s.colors.border?.banner?.outline?.primary||s.colors.border?.banner?.outline?.secondary)&&(s.colors.border.banner.outline.tertiary=s.colors.border.banner.outline.primary||s.colors.border.banner.outline.secondary),!s.colors.text?.banner?.header?.primary&&s.colors.border?.banner?.outline?.primary&&(s.colors.text.banner.header??={},s.colors.text.banner.header.primary=s.colors.border.banner.outline.primary),!s.colors.text?.banner?.footer?.primary&&s.colors.border?.banner?.outline?.primary&&(s.colors.text.banner.footer??={},s.colors.text.banner.footer.primary=s.colors.border.banner.outline.primary),!s.colors.text?.banner?.header?.secondary&&s.colors.border?.banner?.outline?.secondary&&(s.colors.text.banner.header??={},s.colors.text.banner.header.secondary=s.colors.border.banner.outline.secondary),!s.colors.text?.banner?.footer?.secondary&&s.colors.border?.banner?.outline?.secondary&&(s.colors.text.banner.footer??={},s.colors.text.banner.footer.secondary=s.colors.border.banner.outline.secondary),!s.colors.text?.banner?.header?.tertiary&&s.colors.border?.banner?.outline?.tertiary&&(s.colors.text.banner.header??={},s.colors.text.banner.header.tertiary=s.colors.border.banner.outline.tertiary),!s.colors.text?.banner?.footer?.tertiary&&s.colors.border?.banner?.outline?.tertiary&&(s.colors.text.banner.footer??={},s.colors.text.banner.footer.tertiary=s.colors.border.banner.outline.tertiary),!s.colors.border?.banner?.outline?.primary&&s.colors.text?.banner?.title?.primary&&(s.colors.border.banner.outline.primary=s.colors.text.banner.title.primary),!s.colors.border?.app?.divider?.primary&&s.colors.border?.app?.blockquote?.primary&&(s.colors.border.app.divider.primary=s.colors.border.app.blockquote.primary),!s.colors.border?.app?.divider?.secondary&&s.colors.border?.app?.blockquote?.secondary&&(s.colors.border.app.divider.secondary=s.colors.border.app.blockquote.secondary),!s.colors.border?.app?.divider?.tertiary&&s.colors.border?.app?.blockquote?.tertiary&&(s.colors.border.app.divider.tertiary=s.colors.border.app.blockquote.tertiary),!s.colors.border?.app?.blockquote?.primary&&s.colors.border?.app?.divider?.primary&&(s.colors.border.app.blockquote.primary=s.colors.border.app.divider.primary),!s.colors.border?.app?.blockquote?.secondary&&s.colors.border?.app?.divider?.secondary&&(s.colors.border.app.blockquote.secondary=s.colors.border.app.divider.secondary),!s.colors.border?.app?.blockquote?.tertiary&&s.colors.border?.app?.divider?.tertiary&&(s.colors.border.app.blockquote.tertiary=s.colors.border.app.divider.tertiary),!s.colors.border?.app?.divider?.primary&&(s.colors.border?.app?.divider?.secondary||s.colors.border?.app?.divider?.tertiary)&&(s.colors.border.app.divider.primary=s.colors.border.app.divider.secondary||s.colors.border.app.divider.tertiary),!s.colors.border?.app?.divider?.secondary&&(s.colors.border?.app?.divider?.primary||s.colors.border?.app?.divider?.tertiary)&&(s.colors.border.app.divider.secondary=s.colors.border.app.divider.primary||s.colors.border.app.divider.tertiary),!s.colors.border?.app?.divider?.tertiary&&(s.colors.border?.app?.divider?.primary||s.colors.border?.app?.divider?.secondary)&&(s.colors.border.app.divider.tertiary=s.colors.border.app.divider.primary||s.colors.border.app.divider.secondary),!s.colors.border?.app?.blockquote?.primary&&(s.colors.border?.app?.blockquote?.secondary||s.colors.border?.app?.blockquote?.tertiary)&&(s.colors.border.app.blockquote.primary=s.colors.border.app.blockquote.secondary||s.colors.border.app.blockquote.tertiary),!s.colors.border?.app?.blockquote?.secondary&&(s.colors.border?.app?.blockquote?.primary||s.colors.border?.app?.blockquote?.tertiary)&&(s.colors.border.app.blockquote.secondary=s.colors.border.app.blockquote.primary||s.colors.border.app.blockquote.tertiary),!s.colors.border?.app?.blockquote?.tertiary&&(s.colors.border?.app?.blockquote?.primary||s.colors.border?.app?.blockquote?.secondary)&&(s.colors.border.app.blockquote.tertiary=s.colors.border.app.blockquote.primary||s.colors.border.app.blockquote.secondary),!s.colors.border?.app?.table?.primary&&(s.colors.border?.app?.table?.secondary||s.colors.border?.app?.table?.tertiary)&&(s.colors.border.app.table.primary=s.colors.border.app.table.secondary||s.colors.border.app.table.tertiary),!s.colors.border?.app?.table?.secondary&&(s.colors.border?.app?.table?.primary||s.colors.border?.app?.table?.tertiary)&&(s.colors.border.app.table.secondary=s.colors.border.app.table.primary||s.colors.border.app.table.tertiary),!s.colors.border?.app?.table?.tertiary&&(s.colors.border?.app?.table?.primary||s.colors.border?.app?.table?.secondary)&&(s.colors.border.app.table.tertiary=s.colors.border.app.table.primary||s.colors.border.app.table.secondary),!s.colors.border?.message?.divider?.info&&s.colors.border?.message?.divider?.debug&&(s.colors.border.message.divider.info=s.colors.border.message.divider.debug),!s.colors.border?.message?.divider?.debug&&s.colors.border?.message?.divider?.info&&(s.colors.border.message.divider.debug=s.colors.border.message.divider.info),!s.colors.border?.message?.outline?.info&&s.colors.border?.message?.outline?.debug&&(s.colors.border.message.outline.info=s.colors.border.message.outline.debug),!s.colors.border?.message?.outline?.debug&&s.colors.border?.message?.outline?.info&&(s.colors.border.message.outline.debug=s.colors.border.message.outline.info),!s.colors.border?.message?.divider?.error&&s.colors.border?.message?.divider?.danger&&(s.colors.border.message.divider.error=s.colors.border.message.divider.danger),!s.colors.border?.message?.divider?.danger&&s.colors.border?.message?.divider?.error&&(s.colors.border.message.divider.danger=s.colors.border.message.divider.error),!s.colors.border?.message?.outline?.error&&s.colors.border?.message?.outline?.danger&&(s.colors.border.message.outline.error=s.colors.border.message.outline.danger),!s.colors.border?.message?.outline?.danger&&s.colors.border?.message?.outline?.error&&(s.colors.border.message.outline.danger=s.colors.border.message.outline.error),!s.colors.border?.message?.divider?.help&&s.colors.border?.message?.outline?.help&&(s.colors.border.message.divider.help=s.colors.border.message.outline.help),!s.colors.border?.message?.divider?.success&&s.colors.border?.message?.outline?.success&&(s.colors.border.message.divider.success=s.colors.border.message.outline.success),!s.colors.border?.message?.divider?.info&&s.colors.border?.message?.outline?.info&&(s.colors.border.message.divider.info=s.colors.border.message.outline.info),!s.colors.border?.message?.divider?.debug&&s.colors.border?.message?.outline?.debug&&(s.colors.border.message.divider.debug=s.colors.border.message.outline.debug),!s.colors.border?.message?.divider?.warning&&s.colors.border?.message?.outline?.warning&&(s.colors.border.message.divider.warning=s.colors.border.message.outline.warning),!s.colors.border?.message?.divider?.danger&&s.colors.border?.message?.outline?.danger&&(s.colors.border.message.divider.danger=s.colors.border.message.outline.danger),!s.colors.border?.message?.divider?.error&&s.colors.border?.message?.outline?.error&&(s.colors.border.message.divider.error=s.colors.border.message.outline.error),!s.colors.text.message?.header?.help&&s.colors.border?.message?.outline?.help&&(s.colors.text.message.header.help=s.colors.border.message.outline.help),!s.colors.text.message?.footer?.help&&s.colors.border?.message?.outline?.help&&(s.colors.text.message.footer.help=s.colors.border.message.outline.help),!s.colors.text.message?.header?.success&&s.colors.border?.message?.outline?.success&&(s.colors.text.message.header.success=s.colors.border.message.outline.success),!s.colors.text.message.footer.success&&s.colors.border?.message?.outline?.success&&(s.colors.text.message.footer.success=s.colors.border.message.outline.success),!s.colors.text.message?.header?.info&&s.colors.border?.message?.outline?.info&&(s.colors.text.message.header.info=s.colors.border.message.outline.info),!s.colors.text.message?.footer?.info&&s.colors.border?.message?.outline?.info&&(s.colors.text.message.footer.info=s.colors.border.message.outline.info),!s.colors.text.message?.header?.debug&&s.colors.border?.message?.outline?.debug&&(s.colors.text.message.header.debug=s.colors.border.message.outline.debug),!s.colors.text.message?.footer?.debug&&s.colors.border?.message?.outline?.debug&&(s.colors.text.message.footer.debug=s.colors.border.message.outline.debug),!s.colors.text.message?.header?.warning&&s.colors.border?.message?.outline?.warning&&(s.colors.text.message.header.warning=s.colors.border.message.outline.warning),!s.colors.text.message?.footer?.warning&&s.colors.border?.message?.outline?.warning&&(s.colors.text.message.footer.warning=s.colors.border.message.outline.warning),!s.colors.text.message?.header?.danger&&s.colors.border?.message?.outline?.danger&&(s.colors.text.message.header.danger=s.colors.border.message.outline.danger),!s.colors.text.message?.footer?.danger&&s.colors.border?.message?.outline?.danger&&(s.colors.text.message.footer.danger=s.colors.border.message.outline.danger),!s.colors.text.message?.header?.error&&s.colors.border?.message?.outline?.error&&(s.colors.text.message.header.error=s.colors.border.message.outline.error),!s.colors.text.message?.footer?.error&&s.colors.border?.message?.outline?.error&&(s.colors.text.message.footer.error=s.colors.border.message.outline.error),!s.colors.text.message?.header?.debug&&s.colors.text.message?.header?.info&&(s.colors.text.message.header.debug=s.colors.text.message.header.info),!s.colors.text.message?.footer?.debug&&s.colors.text.message?.footer?.info&&(s.colors.text.message.footer.debug=s.colors.text.message.footer.info),!s.colors.text.message?.link?.help&&s.colors.text?.body?.link&&(s.colors.text.message.link.help=s.colors.text.body.link),!s.colors.text.message?.link?.success&&s.colors.text?.body?.link&&(s.colors.text.message.link.success=s.colors.text.body.link),!s.colors.text.message?.link?.info&&s.colors.text?.body?.link&&(s.colors.text.message.link.info=s.colors.text.body.link),!s.colors.text.message?.link?.debug&&s.colors.text?.body?.link&&(s.colors.text.message.link.debug=s.colors.text.body.link),!s.colors.text.message?.link?.warning&&s.colors.text?.body?.link&&(s.colors.text.message.link.warning=s.colors.text.body.link),!s.colors.text.message?.link?.danger&&s.colors.text?.body?.link&&(s.colors.text.message.link.danger=s.colors.text.body.link),!s.colors.text.message?.link?.error&&s.colors.text?.body?.link&&(s.colors.text.message.link.error=s.colors.text.body.link),!s.colors.text.prompt.icon?.active&&s.colors.text?.banner?.title?.primary&&(s.colors.text.prompt.icon.active=s.colors.text.banner.title.primary),!s.colors.text.prompt.icon?.submitted&&s.colors.text?.message?.header?.success&&(s.colors.text.prompt.icon.submitted=s.colors.text.message.header.success),!s.colors.text.prompt.icon?.warning&&s.colors.text?.message?.header?.warning&&(s.colors.text.prompt.icon.warning=s.colors.text.message.header.warning),!s.colors.text.prompt.icon?.error&&s.colors.text?.message?.header?.error&&(s.colors.text.prompt.icon.error=s.colors.text.message.header.error),!s.colors.text.prompt.icon?.disabled&&s.colors.text?.body?.tertiary&&(s.colors.text.prompt.icon.disabled=s.colors.text.body.tertiary),!s.colors.text.prompt.icon?.cancelled&&s.colors.text.prompt.icon?.disabled&&(s.colors.text.prompt.icon.cancelled=s.colors.text.prompt.icon.disabled),!s.colors.text.prompt.message?.active&&s.colors.text?.body?.primary&&(s.colors.text.prompt.message.active=s.colors.text.body.primary),!s.colors.text.prompt.message?.submitted&&s.colors.text?.body?.tertiary&&(s.colors.text.prompt.message.submitted=s.colors.text.body.tertiary),!s.colors.text.prompt.message?.warning&&s.colors.text.prompt.message?.active&&(s.colors.text.prompt.message.warning=s.colors.text.prompt.message.active),!s.colors.text.prompt.message?.error&&s.colors.text.prompt.message?.active&&(s.colors.text.prompt.message.error=s.colors.text.prompt.message.active),!s.colors.text.prompt.message?.disabled&&s.colors.text?.body?.tertiary&&(s.colors.text.prompt.message.disabled=s.colors.text.body.tertiary),!s.colors.text.prompt.message?.cancelled&&s.colors.text.prompt.message?.disabled&&(s.colors.text.prompt.message.cancelled=s.colors.text.prompt.message.disabled),!s.colors.text.prompt.input?.active&&s.colors.text?.heading?.primary&&(s.colors.text.prompt.input.active=s.colors.text.heading.primary),!s.colors.text.prompt.input?.inactive&&s.colors.text?.heading?.secondary&&(s.colors.text.prompt.input.inactive=s.colors.text.heading.secondary),!s.colors.text.prompt.input?.submitted&&s.colors.text?.heading?.tertiary&&(s.colors.text.prompt.message.submitted=s.colors.text.heading.tertiary),!s.colors.text.prompt.message?.warning&&s.colors.text.prompt.message?.active&&(s.colors.text.prompt.message.warning=s.colors.text.prompt.message.active),!s.colors.text.prompt.message?.error&&s.colors.text.prompt.message?.active&&(s.colors.text.prompt.message.error=s.colors.text.prompt.message.active),!s.colors.text.prompt.message?.disabled&&s.colors.text?.body?.tertiary&&(s.colors.text.prompt.message.disabled=s.colors.text.body.tertiary),!s.colors.text.prompt.message?.cancelled&&s.colors.text.prompt.message?.disabled&&(s.colors.text.prompt.message.cancelled=s.colors.text.prompt.message.disabled),!s.colors.text.prompt.description?.active&&s.colors.text?.heading?.primary&&(s.colors.text.prompt.description.active=s.colors.text.heading.primary),!s.colors.text.prompt.description?.inactive&&s.colors.text?.heading?.secondary&&(s.colors.text.prompt.description.inactive=s.colors.text.heading.secondary),!s.colors.text.prompt.description?.submitted&&s.colors.text?.heading?.tertiary&&(s.colors.text.prompt.description.submitted=s.colors.text.heading.tertiary),!s.colors.text.prompt.description?.warning&&s.colors.text?.body?.secondary&&(s.colors.text.prompt.description.warning=s.colors.text.body.secondary),!s.colors.text.prompt.description?.error&&s.colors.text.prompt.icon?.error&&(s.colors.text.prompt.description.error=s.colors.text.prompt.icon.error),!s.colors.text.prompt.description?.disabled&&s.colors.text?.body?.tertiary&&(s.colors.text.prompt.description.disabled=s.colors.text.body.tertiary),!s.colors.text.prompt.description?.cancelled&&s.colors.text.prompt.description?.disabled&&(s.colors.text.prompt.description.cancelled=s.colors.text.prompt.description.disabled),!s.colors.text.prompt.input?.cancelled&&s.colors.text.prompt.input?.disabled&&(s.colors.text.prompt.input.cancelled=s.colors.text.prompt.input.disabled),!s.colors.text.prompt.input?.placeholder&&s.colors.text.prompt.input?.disabled&&(s.colors.text.prompt.input.placeholder=s.colors.text.prompt.input.disabled),!s.colors.text.prompt.input?.disabled&&s.colors.text.prompt.input?.placeholder&&(s.colors.text.prompt.input.disabled=s.colors.text.prompt.input.placeholder),!s.colors.text.spinner.icon?.active&&s.colors.text.spinner.message?.active&&(s.colors.text.spinner.icon.active=s.colors.text.spinner.message.active),!s.colors.text.spinner.icon?.success&&s.colors.text.spinner.message?.success&&(s.colors.text.spinner.icon.success=s.colors.text.spinner.message.success),!s.colors.text.spinner.icon?.error&&s.colors.text?.spinner?.message?.error&&(s.colors.text.spinner.icon.error=s.colors.text.spinner.message.error),!s.colors.text.spinner.icon?.help&&s.colors.text.spinner.message?.help&&(s.colors.text.spinner.icon.help=s.colors.text.spinner.message.help),!s.colors.text.spinner.icon?.info&&s.colors.text.spinner.message?.info&&(s.colors.text.spinner.icon.info=s.colors.text.spinner.message.info),!s.colors.text.spinner.icon?.warning&&s.colors.text.spinner.message?.warning&&(s.colors.text.spinner.icon.warning=s.colors.text.spinner.message.warning),!s.colors.text.spinner.icon?.active&&s.colors.text?.banner?.title?.primary&&(s.colors.text.spinner.icon.active=s.colors.text.banner.title.primary),!s.colors.text.spinner.icon?.success&&s.colors.text?.message?.header?.success&&(s.colors.text.spinner.icon.success=s.colors.text.message.header.success),!s.colors.text.spinner.icon?.error&&s.colors.text?.message?.header?.error&&(s.colors.text.spinner.icon.error=s.colors.text.message.header.error),!s.colors.text.spinner.icon?.help&&s.colors.text?.message?.header?.help&&(s.colors.text.spinner.icon.help=s.colors.text.message.header.help),!s.colors.text.spinner.icon?.info&&s.colors.text?.message?.header?.info&&(s.colors.text.spinner.icon.info=s.colors.text.message.header.info),!s.colors.text.spinner.icon?.warning&&s.colors.text?.message?.header?.warning&&(s.colors.text.spinner.icon.warning=s.colors.text.message.header.warning),!s.colors.text.spinner.message?.active&&s.colors.text?.spinner?.icon?.active&&(s.colors.text.spinner.message.active=s.colors.text.spinner.icon.active),!s.colors.text.spinner.message?.success&&s.colors.text?.spinner?.icon?.success&&(s.colors.text.spinner.message.success=s.colors.text.spinner.icon.success),!s.colors.text.spinner.message?.error&&s.colors.text?.spinner?.icon?.error&&(s.colors.text.spinner.message.error=s.colors.text.spinner.icon.error),!s.colors.text.spinner.message?.help&&s.colors.text?.spinner?.icon?.help&&(s.colors.text.spinner.message.help=s.colors.text.spinner.icon.help),!s.colors.text.spinner.message?.info&&s.colors.text?.spinner?.icon?.info&&(s.colors.text.spinner.message.info=s.colors.text.spinner.icon.info),!s.colors.text.spinner.message?.warning&&s.colors.text?.spinner?.icon?.warning&&(s.colors.text.spinner.message.warning=s.colors.text.spinner.icon.warning),e.mergeThemes(i,s),a}});exports.colors=i;
|
|
1
|
+
const require_helpers_merge = require('../helpers/merge.cjs');
|
|
2
|
+
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
3
|
+
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
4
|
+
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
5
|
+
|
|
6
|
+
//#region src/style-dictionary/colors.ts
|
|
7
|
+
/**
|
|
8
|
+
* Shell Shock - Theme Colors Preprocessor
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This preprocessor applies custom value transformations to design tokens based on the provided configuration options.
|
|
12
|
+
*/
|
|
13
|
+
const colors = (context) => ({
|
|
14
|
+
name: "shell-shock/colors",
|
|
15
|
+
preprocessor: (dictionary, _options) => {
|
|
16
|
+
const resolvedConfig = {};
|
|
17
|
+
resolvedConfig.name = dictionary.$theme ?? context.config.name;
|
|
18
|
+
resolvedConfig.colors ??= {
|
|
19
|
+
text: {
|
|
20
|
+
banner: {},
|
|
21
|
+
heading: {},
|
|
22
|
+
body: {},
|
|
23
|
+
message: {
|
|
24
|
+
link: {},
|
|
25
|
+
header: {},
|
|
26
|
+
footer: {},
|
|
27
|
+
description: {}
|
|
28
|
+
},
|
|
29
|
+
tags: { $default: "#FFFFFF" }
|
|
30
|
+
},
|
|
31
|
+
border: {
|
|
32
|
+
banner: {
|
|
33
|
+
outline: {},
|
|
34
|
+
divider: {}
|
|
35
|
+
},
|
|
36
|
+
app: {
|
|
37
|
+
table: {},
|
|
38
|
+
divider: {},
|
|
39
|
+
blockquote: {}
|
|
40
|
+
},
|
|
41
|
+
message: {
|
|
42
|
+
outline: {},
|
|
43
|
+
divider: {}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const colors = dictionary.colors;
|
|
48
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(colors)) resolvedConfig.colors = {
|
|
49
|
+
text: {
|
|
50
|
+
banner: {
|
|
51
|
+
title: {
|
|
52
|
+
primary: colors,
|
|
53
|
+
secondary: colors,
|
|
54
|
+
tertiary: colors
|
|
55
|
+
},
|
|
56
|
+
header: {
|
|
57
|
+
primary: colors,
|
|
58
|
+
secondary: colors,
|
|
59
|
+
tertiary: colors
|
|
60
|
+
},
|
|
61
|
+
footer: {
|
|
62
|
+
primary: colors,
|
|
63
|
+
secondary: colors,
|
|
64
|
+
tertiary: colors
|
|
65
|
+
},
|
|
66
|
+
command: {
|
|
67
|
+
primary: colors,
|
|
68
|
+
secondary: colors,
|
|
69
|
+
tertiary: colors
|
|
70
|
+
},
|
|
71
|
+
description: {
|
|
72
|
+
primary: colors,
|
|
73
|
+
secondary: colors,
|
|
74
|
+
tertiary: colors
|
|
75
|
+
},
|
|
76
|
+
link: {
|
|
77
|
+
primary: colors,
|
|
78
|
+
secondary: colors,
|
|
79
|
+
tertiary: colors
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
heading: {
|
|
83
|
+
primary: colors,
|
|
84
|
+
secondary: colors,
|
|
85
|
+
tertiary: colors
|
|
86
|
+
},
|
|
87
|
+
body: {
|
|
88
|
+
primary: colors,
|
|
89
|
+
secondary: colors,
|
|
90
|
+
tertiary: colors,
|
|
91
|
+
link: colors
|
|
92
|
+
},
|
|
93
|
+
message: {
|
|
94
|
+
link: {
|
|
95
|
+
help: colors,
|
|
96
|
+
success: colors,
|
|
97
|
+
info: colors,
|
|
98
|
+
debug: colors,
|
|
99
|
+
warning: colors,
|
|
100
|
+
danger: colors,
|
|
101
|
+
error: colors
|
|
102
|
+
},
|
|
103
|
+
header: {
|
|
104
|
+
help: colors,
|
|
105
|
+
success: colors,
|
|
106
|
+
info: colors,
|
|
107
|
+
debug: colors,
|
|
108
|
+
warning: colors,
|
|
109
|
+
danger: colors,
|
|
110
|
+
error: colors
|
|
111
|
+
},
|
|
112
|
+
footer: {
|
|
113
|
+
help: colors,
|
|
114
|
+
success: colors,
|
|
115
|
+
info: colors,
|
|
116
|
+
debug: colors,
|
|
117
|
+
warning: colors,
|
|
118
|
+
danger: colors,
|
|
119
|
+
error: colors
|
|
120
|
+
},
|
|
121
|
+
description: {
|
|
122
|
+
help: colors,
|
|
123
|
+
success: colors,
|
|
124
|
+
info: colors,
|
|
125
|
+
debug: colors,
|
|
126
|
+
warning: colors,
|
|
127
|
+
danger: colors,
|
|
128
|
+
error: colors
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
usage: {
|
|
132
|
+
bin: colors,
|
|
133
|
+
command: colors,
|
|
134
|
+
dynamic: colors,
|
|
135
|
+
options: colors,
|
|
136
|
+
args: colors,
|
|
137
|
+
description: colors
|
|
138
|
+
},
|
|
139
|
+
prompt: {
|
|
140
|
+
icon: {
|
|
141
|
+
active: colors,
|
|
142
|
+
cancelled: colors,
|
|
143
|
+
warning: colors,
|
|
144
|
+
error: colors,
|
|
145
|
+
submitted: colors,
|
|
146
|
+
disabled: colors
|
|
147
|
+
},
|
|
148
|
+
message: {
|
|
149
|
+
active: colors,
|
|
150
|
+
cancelled: colors,
|
|
151
|
+
warning: colors,
|
|
152
|
+
error: colors,
|
|
153
|
+
submitted: colors,
|
|
154
|
+
disabled: colors
|
|
155
|
+
},
|
|
156
|
+
input: {
|
|
157
|
+
active: colors,
|
|
158
|
+
inactive: colors,
|
|
159
|
+
cancelled: colors,
|
|
160
|
+
warning: colors,
|
|
161
|
+
error: colors,
|
|
162
|
+
submitted: colors,
|
|
163
|
+
placeholder: colors,
|
|
164
|
+
disabled: colors
|
|
165
|
+
},
|
|
166
|
+
description: {
|
|
167
|
+
active: colors,
|
|
168
|
+
inactive: colors,
|
|
169
|
+
cancelled: colors,
|
|
170
|
+
warning: colors,
|
|
171
|
+
error: colors,
|
|
172
|
+
submitted: colors,
|
|
173
|
+
disabled: colors
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
spinner: {
|
|
177
|
+
icon: {
|
|
178
|
+
active: colors,
|
|
179
|
+
error: colors,
|
|
180
|
+
success: colors,
|
|
181
|
+
help: colors,
|
|
182
|
+
info: colors,
|
|
183
|
+
warning: colors
|
|
184
|
+
},
|
|
185
|
+
message: {
|
|
186
|
+
active: colors,
|
|
187
|
+
error: colors,
|
|
188
|
+
success: colors,
|
|
189
|
+
help: colors,
|
|
190
|
+
info: colors,
|
|
191
|
+
warning: colors
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
tags: { $default: colors }
|
|
195
|
+
},
|
|
196
|
+
border: {
|
|
197
|
+
banner: {
|
|
198
|
+
outline: {
|
|
199
|
+
primary: colors,
|
|
200
|
+
secondary: colors,
|
|
201
|
+
tertiary: colors
|
|
202
|
+
},
|
|
203
|
+
divider: {
|
|
204
|
+
primary: colors,
|
|
205
|
+
secondary: colors,
|
|
206
|
+
tertiary: colors
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
app: {
|
|
210
|
+
table: {
|
|
211
|
+
primary: colors,
|
|
212
|
+
secondary: colors,
|
|
213
|
+
tertiary: colors
|
|
214
|
+
},
|
|
215
|
+
divider: {
|
|
216
|
+
primary: colors,
|
|
217
|
+
secondary: colors,
|
|
218
|
+
tertiary: colors
|
|
219
|
+
},
|
|
220
|
+
blockquote: {
|
|
221
|
+
primary: colors,
|
|
222
|
+
secondary: colors,
|
|
223
|
+
tertiary: colors
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
message: {
|
|
227
|
+
outline: {
|
|
228
|
+
help: colors,
|
|
229
|
+
success: colors,
|
|
230
|
+
info: colors,
|
|
231
|
+
debug: colors,
|
|
232
|
+
warning: colors,
|
|
233
|
+
danger: colors,
|
|
234
|
+
error: colors
|
|
235
|
+
},
|
|
236
|
+
divider: {
|
|
237
|
+
help: colors,
|
|
238
|
+
success: colors,
|
|
239
|
+
info: colors,
|
|
240
|
+
debug: colors,
|
|
241
|
+
warning: colors,
|
|
242
|
+
danger: colors,
|
|
243
|
+
error: colors
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(colors)) {
|
|
249
|
+
resolvedConfig.colors.text ??= {
|
|
250
|
+
banner: {},
|
|
251
|
+
heading: {},
|
|
252
|
+
body: {},
|
|
253
|
+
message: {
|
|
254
|
+
link: {},
|
|
255
|
+
header: {},
|
|
256
|
+
footer: {},
|
|
257
|
+
description: {}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
const text = colors.text;
|
|
261
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text)) resolvedConfig.colors.text = {
|
|
262
|
+
banner: {
|
|
263
|
+
title: {
|
|
264
|
+
primary: text,
|
|
265
|
+
secondary: text,
|
|
266
|
+
tertiary: text
|
|
267
|
+
},
|
|
268
|
+
header: {
|
|
269
|
+
primary: text,
|
|
270
|
+
secondary: text,
|
|
271
|
+
tertiary: text
|
|
272
|
+
},
|
|
273
|
+
footer: {
|
|
274
|
+
primary: text,
|
|
275
|
+
secondary: text,
|
|
276
|
+
tertiary: text
|
|
277
|
+
},
|
|
278
|
+
command: {
|
|
279
|
+
primary: text,
|
|
280
|
+
secondary: text,
|
|
281
|
+
tertiary: text
|
|
282
|
+
},
|
|
283
|
+
description: {
|
|
284
|
+
primary: text,
|
|
285
|
+
secondary: text,
|
|
286
|
+
tertiary: text
|
|
287
|
+
},
|
|
288
|
+
link: {
|
|
289
|
+
primary: text,
|
|
290
|
+
secondary: text,
|
|
291
|
+
tertiary: text
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
heading: {
|
|
295
|
+
primary: text,
|
|
296
|
+
secondary: text,
|
|
297
|
+
tertiary: text
|
|
298
|
+
},
|
|
299
|
+
body: {
|
|
300
|
+
primary: text,
|
|
301
|
+
secondary: text,
|
|
302
|
+
tertiary: text,
|
|
303
|
+
link: text
|
|
304
|
+
},
|
|
305
|
+
message: {
|
|
306
|
+
link: {
|
|
307
|
+
help: text,
|
|
308
|
+
success: text,
|
|
309
|
+
info: text,
|
|
310
|
+
debug: text,
|
|
311
|
+
warning: text,
|
|
312
|
+
danger: text,
|
|
313
|
+
error: text
|
|
314
|
+
},
|
|
315
|
+
header: {
|
|
316
|
+
help: text,
|
|
317
|
+
success: text,
|
|
318
|
+
info: text,
|
|
319
|
+
debug: text,
|
|
320
|
+
warning: text,
|
|
321
|
+
danger: text,
|
|
322
|
+
error: text
|
|
323
|
+
},
|
|
324
|
+
footer: {
|
|
325
|
+
help: text,
|
|
326
|
+
success: text,
|
|
327
|
+
info: text,
|
|
328
|
+
debug: text,
|
|
329
|
+
warning: text,
|
|
330
|
+
danger: text,
|
|
331
|
+
error: text
|
|
332
|
+
},
|
|
333
|
+
description: {
|
|
334
|
+
help: text,
|
|
335
|
+
success: text,
|
|
336
|
+
info: text,
|
|
337
|
+
debug: text,
|
|
338
|
+
warning: text,
|
|
339
|
+
danger: text,
|
|
340
|
+
error: text
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
usage: {
|
|
344
|
+
bin: text,
|
|
345
|
+
command: text,
|
|
346
|
+
dynamic: text,
|
|
347
|
+
options: text,
|
|
348
|
+
args: text,
|
|
349
|
+
description: text
|
|
350
|
+
},
|
|
351
|
+
prompt: {
|
|
352
|
+
icon: {
|
|
353
|
+
active: text,
|
|
354
|
+
cancelled: text,
|
|
355
|
+
warning: text,
|
|
356
|
+
error: text,
|
|
357
|
+
submitted: text,
|
|
358
|
+
disabled: text
|
|
359
|
+
},
|
|
360
|
+
message: {
|
|
361
|
+
active: text,
|
|
362
|
+
cancelled: text,
|
|
363
|
+
warning: text,
|
|
364
|
+
error: text,
|
|
365
|
+
submitted: text,
|
|
366
|
+
disabled: text
|
|
367
|
+
},
|
|
368
|
+
input: {
|
|
369
|
+
active: text,
|
|
370
|
+
inactive: text,
|
|
371
|
+
cancelled: text,
|
|
372
|
+
warning: text,
|
|
373
|
+
error: text,
|
|
374
|
+
submitted: text,
|
|
375
|
+
placeholder: text,
|
|
376
|
+
disabled: text
|
|
377
|
+
},
|
|
378
|
+
description: {
|
|
379
|
+
active: text,
|
|
380
|
+
inactive: text,
|
|
381
|
+
cancelled: text,
|
|
382
|
+
warning: text,
|
|
383
|
+
error: text,
|
|
384
|
+
submitted: text,
|
|
385
|
+
disabled: text
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
spinner: {
|
|
389
|
+
icon: {
|
|
390
|
+
active: text,
|
|
391
|
+
error: text,
|
|
392
|
+
success: text,
|
|
393
|
+
help: text,
|
|
394
|
+
info: text,
|
|
395
|
+
warning: text
|
|
396
|
+
},
|
|
397
|
+
message: {
|
|
398
|
+
active: text,
|
|
399
|
+
error: text,
|
|
400
|
+
success: text,
|
|
401
|
+
help: text,
|
|
402
|
+
info: text,
|
|
403
|
+
warning: text
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
tags: { $default: text }
|
|
407
|
+
};
|
|
408
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text)) {
|
|
409
|
+
resolvedConfig.colors.text.banner ??= {};
|
|
410
|
+
const banner = text.banner;
|
|
411
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner)) resolvedConfig.colors.text.banner = {
|
|
412
|
+
title: {
|
|
413
|
+
primary: banner,
|
|
414
|
+
secondary: banner,
|
|
415
|
+
tertiary: banner
|
|
416
|
+
},
|
|
417
|
+
header: {
|
|
418
|
+
primary: banner,
|
|
419
|
+
secondary: banner,
|
|
420
|
+
tertiary: banner
|
|
421
|
+
},
|
|
422
|
+
footer: {
|
|
423
|
+
primary: banner,
|
|
424
|
+
secondary: banner,
|
|
425
|
+
tertiary: banner
|
|
426
|
+
},
|
|
427
|
+
command: {
|
|
428
|
+
primary: banner,
|
|
429
|
+
secondary: banner,
|
|
430
|
+
tertiary: banner
|
|
431
|
+
},
|
|
432
|
+
description: {
|
|
433
|
+
primary: banner,
|
|
434
|
+
secondary: banner,
|
|
435
|
+
tertiary: banner
|
|
436
|
+
},
|
|
437
|
+
link: {
|
|
438
|
+
primary: banner,
|
|
439
|
+
secondary: banner,
|
|
440
|
+
tertiary: banner
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.banner)) {
|
|
444
|
+
resolvedConfig.colors.text.banner.title ??= {};
|
|
445
|
+
const title = text.banner.title;
|
|
446
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.title)) resolvedConfig.colors.text.banner.title = {
|
|
447
|
+
primary: text.banner.title,
|
|
448
|
+
secondary: text.banner.title,
|
|
449
|
+
tertiary: text.banner.title
|
|
450
|
+
};
|
|
451
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(title)) {
|
|
452
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(title.primary)) resolvedConfig.colors.text.banner.title.primary = title.primary;
|
|
453
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(title.secondary)) resolvedConfig.colors.text.banner.title.secondary = title.secondary;
|
|
454
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(title.tertiary)) resolvedConfig.colors.text.banner.title.tertiary = title.tertiary;
|
|
455
|
+
}
|
|
456
|
+
resolvedConfig.colors.text.banner.header ??= {};
|
|
457
|
+
const header = text.banner.header;
|
|
458
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.header)) resolvedConfig.colors.text.banner.header = {
|
|
459
|
+
primary: text.banner.header,
|
|
460
|
+
secondary: text.banner.header,
|
|
461
|
+
tertiary: text.banner.header
|
|
462
|
+
};
|
|
463
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(header)) {
|
|
464
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.primary)) resolvedConfig.colors.text.banner.header.primary = header.primary;
|
|
465
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.secondary)) resolvedConfig.colors.text.banner.header.secondary = header.secondary;
|
|
466
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.tertiary)) resolvedConfig.colors.text.banner.header.tertiary = header.tertiary;
|
|
467
|
+
}
|
|
468
|
+
resolvedConfig.colors.text.banner.footer ??= {};
|
|
469
|
+
const footer = text.banner.footer;
|
|
470
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.footer)) resolvedConfig.colors.text.banner.footer = {
|
|
471
|
+
primary: text.banner.footer,
|
|
472
|
+
secondary: text.banner.footer,
|
|
473
|
+
tertiary: text.banner.footer
|
|
474
|
+
};
|
|
475
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(footer)) {
|
|
476
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.primary)) resolvedConfig.colors.text.banner.footer.primary = footer.primary;
|
|
477
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.secondary)) resolvedConfig.colors.text.banner.footer.secondary = footer.secondary;
|
|
478
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.tertiary)) resolvedConfig.colors.text.banner.footer.tertiary = footer.tertiary;
|
|
479
|
+
}
|
|
480
|
+
resolvedConfig.colors.text.banner.command ??= {};
|
|
481
|
+
const command = text.banner.command;
|
|
482
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.command)) resolvedConfig.colors.text.banner.command = {
|
|
483
|
+
primary: text.banner.command,
|
|
484
|
+
secondary: text.banner.command,
|
|
485
|
+
tertiary: text.banner.command
|
|
486
|
+
};
|
|
487
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(command)) {
|
|
488
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(command.primary)) resolvedConfig.colors.text.banner.command.primary = command.primary;
|
|
489
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(command.secondary)) resolvedConfig.colors.text.banner.command.secondary = command.secondary;
|
|
490
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(command.tertiary)) resolvedConfig.colors.text.banner.command.tertiary = command.tertiary;
|
|
491
|
+
}
|
|
492
|
+
resolvedConfig.colors.text.banner.description ??= {};
|
|
493
|
+
const description = text.banner.description;
|
|
494
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.description)) resolvedConfig.colors.text.banner.description = {
|
|
495
|
+
primary: text.banner.description,
|
|
496
|
+
secondary: text.banner.description,
|
|
497
|
+
tertiary: text.banner.description
|
|
498
|
+
};
|
|
499
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(description)) {
|
|
500
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.primary)) resolvedConfig.colors.text.banner.description.primary = description.primary;
|
|
501
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.secondary)) resolvedConfig.colors.text.banner.description.secondary = description.secondary;
|
|
502
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.tertiary)) resolvedConfig.colors.text.banner.description.tertiary = description.tertiary;
|
|
503
|
+
}
|
|
504
|
+
resolvedConfig.colors.text.banner.link ??= {};
|
|
505
|
+
const link = text.banner.link;
|
|
506
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.link)) resolvedConfig.colors.text.banner.link = {
|
|
507
|
+
primary: text.banner.link,
|
|
508
|
+
secondary: text.banner.link,
|
|
509
|
+
tertiary: text.banner.link
|
|
510
|
+
};
|
|
511
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(link)) {
|
|
512
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.primary)) resolvedConfig.colors.text.banner.link.primary = link.primary;
|
|
513
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.secondary)) resolvedConfig.colors.text.banner.link.secondary = link.secondary;
|
|
514
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.tertiary)) resolvedConfig.colors.text.banner.link.tertiary = link.tertiary;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
resolvedConfig.colors.text.body ??= {};
|
|
518
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body)) {
|
|
519
|
+
const color = text.body;
|
|
520
|
+
resolvedConfig.colors.text.body = {
|
|
521
|
+
primary: color,
|
|
522
|
+
secondary: color,
|
|
523
|
+
tertiary: color,
|
|
524
|
+
link: color
|
|
525
|
+
};
|
|
526
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.body)) {
|
|
527
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.primary)) resolvedConfig.colors.text.body.primary = text.body.primary;
|
|
528
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.secondary)) resolvedConfig.colors.text.body.secondary = text.body.secondary;
|
|
529
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.tertiary)) resolvedConfig.colors.text.body.tertiary = text.body.tertiary;
|
|
530
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.link)) resolvedConfig.colors.text.body.link = text.body.link;
|
|
531
|
+
}
|
|
532
|
+
resolvedConfig.colors.text.heading ??= {};
|
|
533
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading)) {
|
|
534
|
+
const color = text.heading;
|
|
535
|
+
resolvedConfig.colors.text.heading = {
|
|
536
|
+
primary: color,
|
|
537
|
+
secondary: color,
|
|
538
|
+
tertiary: color
|
|
539
|
+
};
|
|
540
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.heading)) {
|
|
541
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading.primary)) resolvedConfig.colors.text.heading.primary = text.heading.primary;
|
|
542
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading.secondary)) resolvedConfig.colors.text.heading.secondary = text.heading.secondary;
|
|
543
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading.tertiary)) resolvedConfig.colors.text.heading.tertiary = text.heading.tertiary;
|
|
544
|
+
}
|
|
545
|
+
resolvedConfig.colors.text.usage ??= {};
|
|
546
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage)) resolvedConfig.colors.text.usage = {
|
|
547
|
+
bin: text.usage,
|
|
548
|
+
command: text.usage,
|
|
549
|
+
dynamic: text.usage,
|
|
550
|
+
options: text.usage,
|
|
551
|
+
args: text.usage,
|
|
552
|
+
description: text.usage
|
|
553
|
+
};
|
|
554
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.usage)) {
|
|
555
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.bin)) resolvedConfig.colors.text.usage.bin = text.usage.bin;
|
|
556
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.command)) resolvedConfig.colors.text.usage.command = text.usage.command;
|
|
557
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.dynamic)) resolvedConfig.colors.text.usage.dynamic = text.usage.dynamic;
|
|
558
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.options)) resolvedConfig.colors.text.usage.options = text.usage.options;
|
|
559
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.args)) resolvedConfig.colors.text.usage.args = text.usage.args;
|
|
560
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.description)) resolvedConfig.colors.text.usage.description = text.usage.description;
|
|
561
|
+
}
|
|
562
|
+
resolvedConfig.colors.text.message ??= {
|
|
563
|
+
link: {},
|
|
564
|
+
header: {},
|
|
565
|
+
footer: {},
|
|
566
|
+
description: {}
|
|
567
|
+
};
|
|
568
|
+
const message = text.message;
|
|
569
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message)) resolvedConfig.colors.text.message = {
|
|
570
|
+
link: {
|
|
571
|
+
help: message,
|
|
572
|
+
success: message,
|
|
573
|
+
info: message,
|
|
574
|
+
debug: message,
|
|
575
|
+
warning: message,
|
|
576
|
+
danger: message,
|
|
577
|
+
error: message
|
|
578
|
+
},
|
|
579
|
+
header: {
|
|
580
|
+
help: message,
|
|
581
|
+
success: message,
|
|
582
|
+
info: message,
|
|
583
|
+
debug: message,
|
|
584
|
+
warning: message,
|
|
585
|
+
danger: message,
|
|
586
|
+
error: message
|
|
587
|
+
},
|
|
588
|
+
footer: {
|
|
589
|
+
help: message,
|
|
590
|
+
success: message,
|
|
591
|
+
info: message,
|
|
592
|
+
debug: message,
|
|
593
|
+
warning: message,
|
|
594
|
+
danger: message,
|
|
595
|
+
error: message
|
|
596
|
+
},
|
|
597
|
+
description: {
|
|
598
|
+
help: message,
|
|
599
|
+
success: message,
|
|
600
|
+
info: message,
|
|
601
|
+
debug: message,
|
|
602
|
+
warning: message,
|
|
603
|
+
danger: message,
|
|
604
|
+
error: message
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message)) {
|
|
608
|
+
resolvedConfig.colors.text.message.link ??= {};
|
|
609
|
+
const link = message.link;
|
|
610
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link)) resolvedConfig.colors.text.message.link = {
|
|
611
|
+
help: link,
|
|
612
|
+
success: link,
|
|
613
|
+
info: link,
|
|
614
|
+
debug: link,
|
|
615
|
+
warning: link,
|
|
616
|
+
danger: link,
|
|
617
|
+
error: link
|
|
618
|
+
};
|
|
619
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(link)) {
|
|
620
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.help)) resolvedConfig.colors.text.message.link.help = link.help;
|
|
621
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.success)) resolvedConfig.colors.text.message.link.success = link.success;
|
|
622
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.info)) resolvedConfig.colors.text.message.link.info = link.info;
|
|
623
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.debug)) resolvedConfig.colors.text.message.link.debug = link.debug;
|
|
624
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.warning)) resolvedConfig.colors.text.message.link.warning = link.warning;
|
|
625
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.danger)) resolvedConfig.colors.text.message.link.danger = link.danger;
|
|
626
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.error)) resolvedConfig.colors.text.message.link.error = link.error;
|
|
627
|
+
}
|
|
628
|
+
resolvedConfig.colors.text.message.description ??= {};
|
|
629
|
+
const description = message.description;
|
|
630
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description)) resolvedConfig.colors.text.message.description = {
|
|
631
|
+
help: description,
|
|
632
|
+
success: description,
|
|
633
|
+
info: description,
|
|
634
|
+
debug: description,
|
|
635
|
+
warning: description,
|
|
636
|
+
danger: description,
|
|
637
|
+
error: description
|
|
638
|
+
};
|
|
639
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(description)) {
|
|
640
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.help)) resolvedConfig.colors.text.message.description.help = description.help;
|
|
641
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.success)) resolvedConfig.colors.text.message.description.success = description.success;
|
|
642
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.info)) resolvedConfig.colors.text.message.description.info = description.info;
|
|
643
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.debug)) resolvedConfig.colors.text.message.description.debug = description.debug;
|
|
644
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.warning)) resolvedConfig.colors.text.message.description.warning = description.warning;
|
|
645
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.danger)) resolvedConfig.colors.text.message.description.danger = description.danger;
|
|
646
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.error)) resolvedConfig.colors.text.message.description.error = description.error;
|
|
647
|
+
}
|
|
648
|
+
resolvedConfig.colors.text.message.header ??= {};
|
|
649
|
+
const header = message.header;
|
|
650
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header)) resolvedConfig.colors.text.message.header = {
|
|
651
|
+
help: header,
|
|
652
|
+
success: header,
|
|
653
|
+
info: header,
|
|
654
|
+
debug: header,
|
|
655
|
+
warning: header,
|
|
656
|
+
danger: header,
|
|
657
|
+
error: header
|
|
658
|
+
};
|
|
659
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(header)) {
|
|
660
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.help)) resolvedConfig.colors.text.message.header.help = header.help;
|
|
661
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.success)) resolvedConfig.colors.text.message.header.success = header.success;
|
|
662
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.info)) resolvedConfig.colors.text.message.header.info = header.info;
|
|
663
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.debug)) resolvedConfig.colors.text.message.header.debug = header.debug;
|
|
664
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.warning)) resolvedConfig.colors.text.message.header.warning = header.warning;
|
|
665
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.danger)) resolvedConfig.colors.text.message.header.danger = header.danger;
|
|
666
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.error)) resolvedConfig.colors.text.message.header.error = header.error;
|
|
667
|
+
}
|
|
668
|
+
resolvedConfig.colors.text.message.footer ??= {};
|
|
669
|
+
const footer = message.footer;
|
|
670
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer)) resolvedConfig.colors.text.message.footer = {
|
|
671
|
+
help: footer,
|
|
672
|
+
success: footer,
|
|
673
|
+
info: footer,
|
|
674
|
+
debug: footer,
|
|
675
|
+
warning: footer,
|
|
676
|
+
danger: footer,
|
|
677
|
+
error: footer
|
|
678
|
+
};
|
|
679
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(footer)) {
|
|
680
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.help)) resolvedConfig.colors.text.message.footer.help = footer.help;
|
|
681
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.success)) resolvedConfig.colors.text.message.footer.success = footer.success;
|
|
682
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.info)) resolvedConfig.colors.text.message.footer.info = footer.info;
|
|
683
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.debug)) resolvedConfig.colors.text.message.footer.debug = footer.debug;
|
|
684
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.warning)) resolvedConfig.colors.text.message.footer.warning = footer.warning;
|
|
685
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.danger)) resolvedConfig.colors.text.message.footer.danger = footer.danger;
|
|
686
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.error)) resolvedConfig.colors.text.message.footer.error = footer.error;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
resolvedConfig.colors.text.prompt ??= {
|
|
690
|
+
icon: {},
|
|
691
|
+
message: {},
|
|
692
|
+
input: {},
|
|
693
|
+
description: {}
|
|
694
|
+
};
|
|
695
|
+
const prompt = text.prompt;
|
|
696
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt)) resolvedConfig.colors.text.prompt = {
|
|
697
|
+
icon: {
|
|
698
|
+
active: prompt,
|
|
699
|
+
cancelled: prompt,
|
|
700
|
+
warning: prompt,
|
|
701
|
+
error: prompt,
|
|
702
|
+
submitted: prompt,
|
|
703
|
+
disabled: prompt
|
|
704
|
+
},
|
|
705
|
+
message: {
|
|
706
|
+
active: prompt,
|
|
707
|
+
cancelled: prompt,
|
|
708
|
+
warning: prompt,
|
|
709
|
+
error: prompt,
|
|
710
|
+
submitted: prompt,
|
|
711
|
+
disabled: prompt
|
|
712
|
+
},
|
|
713
|
+
input: {
|
|
714
|
+
active: prompt,
|
|
715
|
+
inactive: prompt,
|
|
716
|
+
cancelled: prompt,
|
|
717
|
+
warning: prompt,
|
|
718
|
+
error: prompt,
|
|
719
|
+
submitted: prompt,
|
|
720
|
+
placeholder: prompt,
|
|
721
|
+
disabled: prompt
|
|
722
|
+
},
|
|
723
|
+
description: {
|
|
724
|
+
active: prompt,
|
|
725
|
+
inactive: prompt,
|
|
726
|
+
cancelled: prompt,
|
|
727
|
+
warning: prompt,
|
|
728
|
+
error: prompt,
|
|
729
|
+
submitted: prompt,
|
|
730
|
+
disabled: prompt
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt)) {
|
|
734
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon)) {
|
|
735
|
+
const icon = prompt.icon;
|
|
736
|
+
resolvedConfig.colors.text.prompt.icon = {
|
|
737
|
+
active: icon,
|
|
738
|
+
cancelled: icon,
|
|
739
|
+
warning: icon,
|
|
740
|
+
error: icon,
|
|
741
|
+
submitted: icon,
|
|
742
|
+
disabled: icon
|
|
743
|
+
};
|
|
744
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.icon)) {
|
|
745
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.active)) resolvedConfig.colors.text.prompt.icon.active = prompt.icon.active;
|
|
746
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.cancelled)) resolvedConfig.colors.text.prompt.icon.cancelled = prompt.icon.cancelled;
|
|
747
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.warning)) resolvedConfig.colors.text.prompt.icon.warning = prompt.icon.warning;
|
|
748
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.error)) resolvedConfig.colors.text.prompt.icon.error = prompt.icon.error;
|
|
749
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.submitted)) resolvedConfig.colors.text.prompt.icon.submitted = prompt.icon.submitted;
|
|
750
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.disabled)) resolvedConfig.colors.text.prompt.icon.disabled = prompt.icon.disabled;
|
|
751
|
+
}
|
|
752
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message)) {
|
|
753
|
+
const message = prompt.message;
|
|
754
|
+
resolvedConfig.colors.text.prompt.message = {
|
|
755
|
+
active: message,
|
|
756
|
+
cancelled: message,
|
|
757
|
+
warning: message,
|
|
758
|
+
error: message,
|
|
759
|
+
submitted: message,
|
|
760
|
+
disabled: message
|
|
761
|
+
};
|
|
762
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.message)) {
|
|
763
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.active)) resolvedConfig.colors.text.prompt.message.active = prompt.message.active;
|
|
764
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.cancelled)) resolvedConfig.colors.text.prompt.message.cancelled = prompt.message.cancelled;
|
|
765
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.warning)) resolvedConfig.colors.text.prompt.message.warning = prompt.message.warning;
|
|
766
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.error)) resolvedConfig.colors.text.prompt.message.error = prompt.message.error;
|
|
767
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.submitted)) resolvedConfig.colors.text.prompt.message.submitted = prompt.message.submitted;
|
|
768
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.disabled)) resolvedConfig.colors.text.prompt.message.disabled = prompt.message.disabled;
|
|
769
|
+
}
|
|
770
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input)) {
|
|
771
|
+
const input = prompt.input;
|
|
772
|
+
resolvedConfig.colors.text.prompt.input = {
|
|
773
|
+
active: input,
|
|
774
|
+
inactive: input,
|
|
775
|
+
cancelled: input,
|
|
776
|
+
warning: input,
|
|
777
|
+
error: input,
|
|
778
|
+
submitted: input,
|
|
779
|
+
placeholder: input,
|
|
780
|
+
disabled: input
|
|
781
|
+
};
|
|
782
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.input)) {
|
|
783
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.active)) resolvedConfig.colors.text.prompt.input.active = prompt.input.active;
|
|
784
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.inactive)) resolvedConfig.colors.text.prompt.input.inactive = prompt.input.inactive;
|
|
785
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.cancelled)) resolvedConfig.colors.text.prompt.input.cancelled = prompt.input.cancelled;
|
|
786
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.warning)) resolvedConfig.colors.text.prompt.input.warning = prompt.input.warning;
|
|
787
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.error)) resolvedConfig.colors.text.prompt.input.error = prompt.input.error;
|
|
788
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.submitted)) resolvedConfig.colors.text.prompt.input.submitted = prompt.input.submitted;
|
|
789
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.placeholder)) resolvedConfig.colors.text.prompt.input.placeholder = prompt.input.placeholder;
|
|
790
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.disabled)) resolvedConfig.colors.text.prompt.input.disabled = prompt.input.disabled;
|
|
791
|
+
}
|
|
792
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description)) {
|
|
793
|
+
const description = prompt.description;
|
|
794
|
+
resolvedConfig.colors.text.prompt.description = {
|
|
795
|
+
active: description,
|
|
796
|
+
inactive: description,
|
|
797
|
+
cancelled: description,
|
|
798
|
+
warning: description,
|
|
799
|
+
error: description,
|
|
800
|
+
submitted: description,
|
|
801
|
+
disabled: description
|
|
802
|
+
};
|
|
803
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.description)) {
|
|
804
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.active)) resolvedConfig.colors.text.prompt.description.active = prompt.description.active;
|
|
805
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.inactive)) resolvedConfig.colors.text.prompt.description.inactive = prompt.description.inactive;
|
|
806
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.cancelled)) resolvedConfig.colors.text.prompt.description.cancelled = prompt.description.cancelled;
|
|
807
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.warning)) resolvedConfig.colors.text.prompt.description.warning = prompt.description.warning;
|
|
808
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.error)) resolvedConfig.colors.text.prompt.description.error = prompt.description.error;
|
|
809
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.submitted)) resolvedConfig.colors.text.prompt.description.submitted = prompt.description.submitted;
|
|
810
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.disabled)) resolvedConfig.colors.text.prompt.description.disabled = prompt.description.disabled;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
resolvedConfig.colors.text.spinner ??= {
|
|
814
|
+
icon: {},
|
|
815
|
+
message: {}
|
|
816
|
+
};
|
|
817
|
+
const spinner = text.spinner;
|
|
818
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner)) resolvedConfig.colors.text.spinner = {
|
|
819
|
+
icon: {
|
|
820
|
+
active: spinner,
|
|
821
|
+
error: spinner,
|
|
822
|
+
success: spinner,
|
|
823
|
+
help: spinner,
|
|
824
|
+
info: spinner,
|
|
825
|
+
warning: spinner
|
|
826
|
+
},
|
|
827
|
+
message: {
|
|
828
|
+
active: spinner,
|
|
829
|
+
error: spinner,
|
|
830
|
+
success: spinner,
|
|
831
|
+
help: spinner,
|
|
832
|
+
info: spinner,
|
|
833
|
+
warning: spinner
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(spinner)) {
|
|
837
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon)) {
|
|
838
|
+
const icon = spinner.icon;
|
|
839
|
+
resolvedConfig.colors.text.spinner.icon = {
|
|
840
|
+
active: icon,
|
|
841
|
+
error: icon,
|
|
842
|
+
success: icon,
|
|
843
|
+
help: icon,
|
|
844
|
+
info: icon,
|
|
845
|
+
warning: icon
|
|
846
|
+
};
|
|
847
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(spinner.icon)) {
|
|
848
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.active)) resolvedConfig.colors.text.spinner.icon.active = spinner.icon.active;
|
|
849
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.error)) resolvedConfig.colors.text.spinner.icon.error = spinner.icon.error;
|
|
850
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.success)) resolvedConfig.colors.text.spinner.icon.success = spinner.icon.success;
|
|
851
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.help)) resolvedConfig.colors.text.spinner.icon.help = spinner.icon.help;
|
|
852
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.info)) resolvedConfig.colors.text.spinner.icon.info = spinner.icon.info;
|
|
853
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.warning)) resolvedConfig.colors.text.spinner.icon.warning = spinner.icon.warning;
|
|
854
|
+
}
|
|
855
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message)) {
|
|
856
|
+
const message = spinner.message;
|
|
857
|
+
resolvedConfig.colors.text.spinner.message = {
|
|
858
|
+
active: message,
|
|
859
|
+
error: message,
|
|
860
|
+
success: message,
|
|
861
|
+
help: message,
|
|
862
|
+
info: message,
|
|
863
|
+
warning: message
|
|
864
|
+
};
|
|
865
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(spinner.message)) {
|
|
866
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.active)) resolvedConfig.colors.text.spinner.message.active = spinner.message.active;
|
|
867
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.error)) resolvedConfig.colors.text.spinner.message.error = spinner.message.error;
|
|
868
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.success)) resolvedConfig.colors.text.spinner.message.success = spinner.message.success;
|
|
869
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.help)) resolvedConfig.colors.text.spinner.message.help = spinner.message.help;
|
|
870
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.info)) resolvedConfig.colors.text.spinner.message.info = spinner.message.info;
|
|
871
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.warning)) resolvedConfig.colors.text.spinner.message.warning = spinner.message.warning;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
resolvedConfig.colors.text.tags ??= { $default: "#FFFFFF" };
|
|
875
|
+
const tags = text.tags;
|
|
876
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(tags)) resolvedConfig.colors.text.tags = { $default: tags };
|
|
877
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(tags)) {
|
|
878
|
+
for (const [tag, value] of Object.entries(tags)) if ((0, _stryke_type_checks_is_set_string.isSetString)(value)) resolvedConfig.colors.text.tags[tag === "$default" ? "$default" : (0, _stryke_string_format_camel_case.camelCase)(tag)] = value;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
resolvedConfig.colors.border ??= {
|
|
882
|
+
banner: {
|
|
883
|
+
outline: {},
|
|
884
|
+
divider: {}
|
|
885
|
+
},
|
|
886
|
+
app: {
|
|
887
|
+
table: {},
|
|
888
|
+
divider: {},
|
|
889
|
+
blockquote: {}
|
|
890
|
+
},
|
|
891
|
+
message: {
|
|
892
|
+
outline: {},
|
|
893
|
+
divider: {}
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
const border = colors.border;
|
|
897
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(border)) resolvedConfig.colors.border = {
|
|
898
|
+
banner: {
|
|
899
|
+
outline: {
|
|
900
|
+
primary: border,
|
|
901
|
+
secondary: border,
|
|
902
|
+
tertiary: border
|
|
903
|
+
},
|
|
904
|
+
divider: {
|
|
905
|
+
primary: border,
|
|
906
|
+
secondary: border,
|
|
907
|
+
tertiary: border
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
app: {
|
|
911
|
+
table: {
|
|
912
|
+
primary: border,
|
|
913
|
+
secondary: border,
|
|
914
|
+
tertiary: border
|
|
915
|
+
},
|
|
916
|
+
divider: {
|
|
917
|
+
primary: border,
|
|
918
|
+
secondary: border,
|
|
919
|
+
tertiary: border
|
|
920
|
+
},
|
|
921
|
+
blockquote: {
|
|
922
|
+
primary: border,
|
|
923
|
+
secondary: border,
|
|
924
|
+
tertiary: border
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
message: {
|
|
928
|
+
outline: {
|
|
929
|
+
help: border,
|
|
930
|
+
success: border,
|
|
931
|
+
info: border,
|
|
932
|
+
debug: border,
|
|
933
|
+
warning: border,
|
|
934
|
+
danger: border,
|
|
935
|
+
error: border
|
|
936
|
+
},
|
|
937
|
+
divider: {
|
|
938
|
+
help: border,
|
|
939
|
+
success: border,
|
|
940
|
+
info: border,
|
|
941
|
+
debug: border,
|
|
942
|
+
warning: border,
|
|
943
|
+
danger: border,
|
|
944
|
+
error: border
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(border)) {
|
|
949
|
+
resolvedConfig.colors.border.banner ??= {
|
|
950
|
+
outline: {},
|
|
951
|
+
divider: {}
|
|
952
|
+
};
|
|
953
|
+
const banner = border.banner;
|
|
954
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner)) resolvedConfig.colors.border.banner = {
|
|
955
|
+
outline: {
|
|
956
|
+
primary: banner,
|
|
957
|
+
secondary: banner,
|
|
958
|
+
tertiary: banner
|
|
959
|
+
},
|
|
960
|
+
divider: {
|
|
961
|
+
primary: banner,
|
|
962
|
+
secondary: banner,
|
|
963
|
+
tertiary: banner
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(banner)) if ("outline" in banner || "divider" in banner) {
|
|
967
|
+
resolvedConfig.colors.border.banner.outline = {};
|
|
968
|
+
const outline = banner.outline;
|
|
969
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline)) resolvedConfig.colors.border.banner.outline = {
|
|
970
|
+
primary: outline,
|
|
971
|
+
secondary: outline,
|
|
972
|
+
tertiary: outline
|
|
973
|
+
};
|
|
974
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(outline)) {
|
|
975
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.primary)) resolvedConfig.colors.border.banner.outline.primary = outline.primary;
|
|
976
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.secondary)) resolvedConfig.colors.border.banner.outline.secondary = outline.secondary;
|
|
977
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.tertiary)) resolvedConfig.colors.border.banner.outline.tertiary = outline.tertiary;
|
|
978
|
+
}
|
|
979
|
+
resolvedConfig.colors.border.banner.divider ??= {};
|
|
980
|
+
const divider = banner.divider;
|
|
981
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider)) resolvedConfig.colors.border.banner.divider = {
|
|
982
|
+
primary: divider,
|
|
983
|
+
secondary: divider,
|
|
984
|
+
tertiary: divider
|
|
985
|
+
};
|
|
986
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(divider)) {
|
|
987
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.primary)) resolvedConfig.colors.border.banner.divider.primary = divider.primary;
|
|
988
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.secondary)) resolvedConfig.colors.border.banner.divider.secondary = divider.secondary;
|
|
989
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.tertiary)) resolvedConfig.colors.border.banner.divider.tertiary = divider.tertiary;
|
|
990
|
+
}
|
|
991
|
+
} else {
|
|
992
|
+
resolvedConfig.colors.border.banner.outline ??= {};
|
|
993
|
+
resolvedConfig.colors.border.banner.divider ??= {};
|
|
994
|
+
const banner = border.banner;
|
|
995
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner.primary)) {
|
|
996
|
+
resolvedConfig.colors.border.banner.outline.primary = banner.primary;
|
|
997
|
+
resolvedConfig.colors.border.banner.divider.primary = banner.primary;
|
|
998
|
+
}
|
|
999
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner.secondary)) {
|
|
1000
|
+
resolvedConfig.colors.border.banner.outline.secondary = banner.secondary;
|
|
1001
|
+
resolvedConfig.colors.border.banner.divider.secondary = banner.secondary;
|
|
1002
|
+
}
|
|
1003
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner.tertiary)) {
|
|
1004
|
+
resolvedConfig.colors.border.banner.outline.tertiary = banner.tertiary;
|
|
1005
|
+
resolvedConfig.colors.border.banner.divider.tertiary = banner.tertiary;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
resolvedConfig.colors.border.app ??= {
|
|
1009
|
+
table: {},
|
|
1010
|
+
divider: {}
|
|
1011
|
+
};
|
|
1012
|
+
const app = border.app;
|
|
1013
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app)) resolvedConfig.colors.border.app = {
|
|
1014
|
+
table: {
|
|
1015
|
+
primary: app,
|
|
1016
|
+
secondary: app,
|
|
1017
|
+
tertiary: app
|
|
1018
|
+
},
|
|
1019
|
+
divider: {
|
|
1020
|
+
primary: app,
|
|
1021
|
+
secondary: app,
|
|
1022
|
+
tertiary: app
|
|
1023
|
+
},
|
|
1024
|
+
blockquote: {
|
|
1025
|
+
primary: app,
|
|
1026
|
+
secondary: app,
|
|
1027
|
+
tertiary: app
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app)) {
|
|
1031
|
+
resolvedConfig.colors.border.app ??= {};
|
|
1032
|
+
if ("table" in app || "divider" in app || "blockquote" in app) {
|
|
1033
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.table)) resolvedConfig.colors.border.app.table = {
|
|
1034
|
+
primary: app.table,
|
|
1035
|
+
secondary: app.table,
|
|
1036
|
+
tertiary: app.table
|
|
1037
|
+
};
|
|
1038
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app.table)) {
|
|
1039
|
+
resolvedConfig.colors.border.app.table = {};
|
|
1040
|
+
const table = app.table;
|
|
1041
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(table.primary)) resolvedConfig.colors.border.app.table.primary = table.primary;
|
|
1042
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(table.secondary)) resolvedConfig.colors.border.app.table.secondary = table.secondary;
|
|
1043
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(table.tertiary)) resolvedConfig.colors.border.app.table.tertiary = table.tertiary;
|
|
1044
|
+
}
|
|
1045
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.divider)) resolvedConfig.colors.border.app.divider = {
|
|
1046
|
+
primary: app.divider,
|
|
1047
|
+
secondary: app.divider,
|
|
1048
|
+
tertiary: app.divider
|
|
1049
|
+
};
|
|
1050
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app.divider)) {
|
|
1051
|
+
resolvedConfig.colors.border.app.divider = {};
|
|
1052
|
+
const divider = app.divider;
|
|
1053
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.primary)) resolvedConfig.colors.border.app.divider.primary = divider.primary;
|
|
1054
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.secondary)) resolvedConfig.colors.border.app.divider.secondary = divider.secondary;
|
|
1055
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.tertiary)) resolvedConfig.colors.border.app.divider.tertiary = divider.tertiary;
|
|
1056
|
+
}
|
|
1057
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.blockquote)) resolvedConfig.colors.border.app.blockquote = {
|
|
1058
|
+
primary: app.blockquote,
|
|
1059
|
+
secondary: app.blockquote,
|
|
1060
|
+
tertiary: app.blockquote
|
|
1061
|
+
};
|
|
1062
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app.blockquote)) {
|
|
1063
|
+
resolvedConfig.colors.border.app.blockquote = {};
|
|
1064
|
+
const blockquote = app.blockquote;
|
|
1065
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(blockquote.primary)) resolvedConfig.colors.border.app.blockquote.primary = blockquote.primary;
|
|
1066
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(blockquote.secondary)) resolvedConfig.colors.border.app.blockquote.secondary = blockquote.secondary;
|
|
1067
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(blockquote.tertiary)) resolvedConfig.colors.border.app.blockquote.tertiary = blockquote.tertiary;
|
|
1068
|
+
}
|
|
1069
|
+
} else {
|
|
1070
|
+
resolvedConfig.colors.border.app.table ??= {};
|
|
1071
|
+
resolvedConfig.colors.border.app.divider ??= {};
|
|
1072
|
+
resolvedConfig.colors.border.app.blockquote ??= {};
|
|
1073
|
+
const app = border.app;
|
|
1074
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.primary)) {
|
|
1075
|
+
resolvedConfig.colors.border.app.table.primary = app.primary;
|
|
1076
|
+
resolvedConfig.colors.border.app.divider.primary = app.primary;
|
|
1077
|
+
resolvedConfig.colors.border.app.blockquote.primary = app.primary;
|
|
1078
|
+
}
|
|
1079
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.secondary)) {
|
|
1080
|
+
resolvedConfig.colors.border.app.table.secondary = app.secondary;
|
|
1081
|
+
resolvedConfig.colors.border.app.divider.secondary = app.secondary;
|
|
1082
|
+
resolvedConfig.colors.border.app.blockquote.secondary = app.secondary;
|
|
1083
|
+
}
|
|
1084
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.tertiary)) {
|
|
1085
|
+
resolvedConfig.colors.border.app.table.tertiary = app.tertiary;
|
|
1086
|
+
resolvedConfig.colors.border.app.divider.tertiary = app.tertiary;
|
|
1087
|
+
resolvedConfig.colors.border.app.blockquote.tertiary = app.tertiary;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
resolvedConfig.colors.border.message ??= {
|
|
1092
|
+
outline: {},
|
|
1093
|
+
divider: {}
|
|
1094
|
+
};
|
|
1095
|
+
const message = border.message;
|
|
1096
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message)) resolvedConfig.colors.border.message = {
|
|
1097
|
+
outline: {
|
|
1098
|
+
help: message,
|
|
1099
|
+
success: message,
|
|
1100
|
+
info: message,
|
|
1101
|
+
debug: message,
|
|
1102
|
+
warning: message,
|
|
1103
|
+
danger: message,
|
|
1104
|
+
error: message
|
|
1105
|
+
},
|
|
1106
|
+
divider: {
|
|
1107
|
+
help: message,
|
|
1108
|
+
success: message,
|
|
1109
|
+
info: message,
|
|
1110
|
+
debug: message,
|
|
1111
|
+
warning: message,
|
|
1112
|
+
danger: message,
|
|
1113
|
+
error: message
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message)) {
|
|
1117
|
+
resolvedConfig.colors.border.message ??= {};
|
|
1118
|
+
if ("outline" in message || "divider" in message) {
|
|
1119
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.outline)) resolvedConfig.colors.border.message.outline = {
|
|
1120
|
+
help: message.outline,
|
|
1121
|
+
success: message.outline,
|
|
1122
|
+
info: message.outline,
|
|
1123
|
+
debug: message.outline,
|
|
1124
|
+
warning: message.outline,
|
|
1125
|
+
danger: message.outline,
|
|
1126
|
+
error: message.outline
|
|
1127
|
+
};
|
|
1128
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message.outline)) {
|
|
1129
|
+
resolvedConfig.colors.border.message.outline ??= {};
|
|
1130
|
+
const outline = message.outline;
|
|
1131
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.help)) resolvedConfig.colors.border.message.outline.help = outline.help;
|
|
1132
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.success)) resolvedConfig.colors.border.message.outline.success = outline.success;
|
|
1133
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.info)) resolvedConfig.colors.border.message.outline.info = outline.info;
|
|
1134
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.debug)) resolvedConfig.colors.border.message.outline.debug = outline.debug;
|
|
1135
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.warning)) resolvedConfig.colors.border.message.outline.warning = outline.warning;
|
|
1136
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.danger)) resolvedConfig.colors.border.message.outline.danger = outline.danger;
|
|
1137
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.error)) resolvedConfig.colors.border.message.outline.error = outline.error;
|
|
1138
|
+
}
|
|
1139
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.divider)) resolvedConfig.colors.border.message.divider = {
|
|
1140
|
+
help: message.divider,
|
|
1141
|
+
success: message.divider,
|
|
1142
|
+
info: message.divider,
|
|
1143
|
+
debug: message.divider,
|
|
1144
|
+
warning: message.divider,
|
|
1145
|
+
danger: message.divider,
|
|
1146
|
+
error: message.divider
|
|
1147
|
+
};
|
|
1148
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message.divider)) {
|
|
1149
|
+
resolvedConfig.colors.border.message.divider ??= {};
|
|
1150
|
+
const divider = message.divider;
|
|
1151
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.help)) resolvedConfig.colors.border.message.divider.help = divider.help;
|
|
1152
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.success)) resolvedConfig.colors.border.message.divider.success = divider.success;
|
|
1153
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.info)) resolvedConfig.colors.border.message.divider.info = divider.info;
|
|
1154
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.debug)) resolvedConfig.colors.border.message.divider.debug = divider.debug;
|
|
1155
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.warning)) resolvedConfig.colors.border.message.divider.warning = divider.warning;
|
|
1156
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.danger)) resolvedConfig.colors.border.message.divider.danger = divider.danger;
|
|
1157
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.error)) resolvedConfig.colors.border.message.divider.error = divider.error;
|
|
1158
|
+
}
|
|
1159
|
+
} else {
|
|
1160
|
+
resolvedConfig.colors.border.message.outline ??= {};
|
|
1161
|
+
resolvedConfig.colors.border.message.divider ??= {};
|
|
1162
|
+
const message = border.message;
|
|
1163
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.help)) {
|
|
1164
|
+
resolvedConfig.colors.border.message.outline.help = message.help;
|
|
1165
|
+
resolvedConfig.colors.border.message.divider.help = message.help;
|
|
1166
|
+
}
|
|
1167
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.success)) {
|
|
1168
|
+
resolvedConfig.colors.border.message.outline.success = message.success;
|
|
1169
|
+
resolvedConfig.colors.border.message.divider.success = message.success;
|
|
1170
|
+
}
|
|
1171
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.info)) {
|
|
1172
|
+
resolvedConfig.colors.border.message.outline.info = message.info;
|
|
1173
|
+
resolvedConfig.colors.border.message.divider.info = message.info;
|
|
1174
|
+
}
|
|
1175
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.debug)) {
|
|
1176
|
+
resolvedConfig.colors.border.message.outline.debug = message.debug;
|
|
1177
|
+
resolvedConfig.colors.border.message.divider.debug = message.debug;
|
|
1178
|
+
}
|
|
1179
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.warning)) {
|
|
1180
|
+
resolvedConfig.colors.border.message.outline.warning = message.warning;
|
|
1181
|
+
resolvedConfig.colors.border.message.divider.warning = message.warning;
|
|
1182
|
+
}
|
|
1183
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.danger)) {
|
|
1184
|
+
resolvedConfig.colors.border.message.outline.danger = message.danger;
|
|
1185
|
+
resolvedConfig.colors.border.message.divider.danger = message.danger;
|
|
1186
|
+
}
|
|
1187
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.error)) {
|
|
1188
|
+
resolvedConfig.colors.border.message.outline.error = message.error;
|
|
1189
|
+
resolvedConfig.colors.border.message.divider.error = message.error;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
if (!resolvedConfig.colors.text?.body?.tertiary && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.body.tertiary = resolvedConfig.colors.text.body.secondary;
|
|
1196
|
+
if (!resolvedConfig.colors.text?.body?.secondary && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.body.secondary = resolvedConfig.colors.text.body.tertiary;
|
|
1197
|
+
if (!resolvedConfig.colors.text?.heading?.tertiary && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.heading.tertiary = resolvedConfig.colors.text.heading.secondary;
|
|
1198
|
+
if (!resolvedConfig.colors.text?.heading?.secondary && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.heading.secondary = resolvedConfig.colors.text.heading.tertiary;
|
|
1199
|
+
if (!resolvedConfig.colors.text?.heading?.primary && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.heading.primary = resolvedConfig.colors.text.banner.title.primary;
|
|
1200
|
+
if (!resolvedConfig.colors.text?.heading?.tertiary && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.heading.tertiary = resolvedConfig.colors.text.body.secondary;
|
|
1201
|
+
if (!resolvedConfig.colors.text?.heading?.secondary && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.heading.secondary = resolvedConfig.colors.text.body.primary;
|
|
1202
|
+
if (!resolvedConfig.colors.text?.usage?.bin && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.usage.bin = resolvedConfig.colors.text.body.primary;
|
|
1203
|
+
if (!resolvedConfig.colors.text?.usage?.command && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.usage.command = resolvedConfig.colors.text.body.secondary;
|
|
1204
|
+
if (!resolvedConfig.colors.text?.usage?.dynamic && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.dynamic = resolvedConfig.colors.text.body.tertiary;
|
|
1205
|
+
if (!resolvedConfig.colors.text?.usage?.options && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.options = resolvedConfig.colors.text.body.tertiary;
|
|
1206
|
+
if (!resolvedConfig.colors.text?.usage?.args && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.args = resolvedConfig.colors.text.body.tertiary;
|
|
1207
|
+
if (!resolvedConfig.colors.text?.usage?.description && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.usage.description = resolvedConfig.colors.text.body.secondary;
|
|
1208
|
+
if (!resolvedConfig.colors.text?.banner?.title?.primary && resolvedConfig.colors.text?.heading?.primary) {
|
|
1209
|
+
resolvedConfig.colors.text.banner.title ??= {};
|
|
1210
|
+
resolvedConfig.colors.text.banner.title.primary = resolvedConfig.colors.text.heading.primary;
|
|
1211
|
+
}
|
|
1212
|
+
if (!resolvedConfig.colors.text?.banner?.command?.primary && (resolvedConfig.colors.text?.heading?.secondary || resolvedConfig.colors.text?.heading?.primary)) {
|
|
1213
|
+
resolvedConfig.colors.text.banner.command ??= {};
|
|
1214
|
+
resolvedConfig.colors.text.banner.command.primary = resolvedConfig.colors.text.heading.secondary || resolvedConfig.colors.text.heading.primary;
|
|
1215
|
+
}
|
|
1216
|
+
if (!resolvedConfig.colors.text?.banner?.description?.primary && resolvedConfig.colors.text?.body?.primary) {
|
|
1217
|
+
resolvedConfig.colors.text.banner.description ??= {};
|
|
1218
|
+
resolvedConfig.colors.text.banner.description.primary = resolvedConfig.colors.text.body.primary;
|
|
1219
|
+
}
|
|
1220
|
+
if (!resolvedConfig.colors.text?.banner?.link?.primary && resolvedConfig.colors.text?.body?.link) {
|
|
1221
|
+
resolvedConfig.colors.text.banner.link ??= {};
|
|
1222
|
+
resolvedConfig.colors.text.banner.link.primary = resolvedConfig.colors.text.body.link;
|
|
1223
|
+
}
|
|
1224
|
+
if (!resolvedConfig.colors.text?.banner?.title?.secondary && resolvedConfig.colors.text?.banner?.title?.primary) {
|
|
1225
|
+
resolvedConfig.colors.text.banner.title ??= {};
|
|
1226
|
+
resolvedConfig.colors.text.banner.title.secondary = resolvedConfig.colors.text.banner.title.primary;
|
|
1227
|
+
}
|
|
1228
|
+
if (!resolvedConfig.colors.text?.banner?.command?.secondary && resolvedConfig.colors.text?.banner?.command?.primary) {
|
|
1229
|
+
resolvedConfig.colors.text.banner.command ??= {};
|
|
1230
|
+
resolvedConfig.colors.text.banner.command.secondary = resolvedConfig.colors.text.banner.command.primary;
|
|
1231
|
+
}
|
|
1232
|
+
if (!resolvedConfig.colors.text?.banner?.description?.secondary && resolvedConfig.colors.text?.banner?.description?.primary) {
|
|
1233
|
+
resolvedConfig.colors.text.banner.description ??= {};
|
|
1234
|
+
resolvedConfig.colors.text.banner.description.secondary = resolvedConfig.colors.text.banner.description.primary;
|
|
1235
|
+
}
|
|
1236
|
+
if (!resolvedConfig.colors.text?.banner?.link?.secondary && resolvedConfig.colors.text?.banner?.link?.primary) {
|
|
1237
|
+
resolvedConfig.colors.text.banner.link ??= {};
|
|
1238
|
+
resolvedConfig.colors.text.banner.link.secondary = resolvedConfig.colors.text.banner.link.primary;
|
|
1239
|
+
}
|
|
1240
|
+
if (!resolvedConfig.colors.text?.banner?.title?.tertiary && resolvedConfig.colors.text?.banner?.title?.secondary) {
|
|
1241
|
+
resolvedConfig.colors.text.banner.title ??= {};
|
|
1242
|
+
resolvedConfig.colors.text.banner.title.tertiary = resolvedConfig.colors.text.banner.title.secondary;
|
|
1243
|
+
}
|
|
1244
|
+
if (!resolvedConfig.colors.text?.banner?.command?.tertiary && resolvedConfig.colors.text?.banner?.command?.secondary) {
|
|
1245
|
+
resolvedConfig.colors.text.banner.command ??= {};
|
|
1246
|
+
resolvedConfig.colors.text.banner.command.tertiary = resolvedConfig.colors.text.banner.command.secondary;
|
|
1247
|
+
}
|
|
1248
|
+
if (!resolvedConfig.colors.text?.banner?.description?.tertiary && resolvedConfig.colors.text?.banner?.description?.secondary) {
|
|
1249
|
+
resolvedConfig.colors.text.banner.description ??= {};
|
|
1250
|
+
resolvedConfig.colors.text.banner.description.tertiary = resolvedConfig.colors.text.banner.description.secondary;
|
|
1251
|
+
}
|
|
1252
|
+
if (!resolvedConfig.colors.text?.banner?.link?.tertiary && resolvedConfig.colors.text?.banner?.link?.secondary) {
|
|
1253
|
+
resolvedConfig.colors.text.banner.link ??= {};
|
|
1254
|
+
resolvedConfig.colors.text.banner.link.tertiary = resolvedConfig.colors.text.banner.link.secondary;
|
|
1255
|
+
}
|
|
1256
|
+
if (!resolvedConfig.colors.border?.banner?.outline?.primary && (resolvedConfig.colors.border?.banner?.outline?.secondary || resolvedConfig.colors.border?.banner?.outline?.tertiary)) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.border.banner.outline.secondary || resolvedConfig.colors.border.banner.outline.tertiary;
|
|
1257
|
+
if (!resolvedConfig.colors.border?.banner?.outline?.secondary && (resolvedConfig.colors.border?.banner?.outline?.primary || resolvedConfig.colors.border?.banner?.outline?.tertiary)) resolvedConfig.colors.border.banner.outline.secondary = resolvedConfig.colors.border.banner.outline.primary || resolvedConfig.colors.border.banner.outline.tertiary;
|
|
1258
|
+
if (!resolvedConfig.colors.border?.banner?.outline?.tertiary && (resolvedConfig.colors.border?.banner?.outline?.primary || resolvedConfig.colors.border?.banner?.outline?.secondary)) resolvedConfig.colors.border.banner.outline.tertiary = resolvedConfig.colors.border.banner.outline.primary || resolvedConfig.colors.border.banner.outline.secondary;
|
|
1259
|
+
if (!resolvedConfig.colors.text?.banner?.header?.primary && resolvedConfig.colors.border?.banner?.outline?.primary) {
|
|
1260
|
+
resolvedConfig.colors.text.banner.header ??= {};
|
|
1261
|
+
resolvedConfig.colors.text.banner.header.primary = resolvedConfig.colors.border.banner.outline.primary;
|
|
1262
|
+
}
|
|
1263
|
+
if (!resolvedConfig.colors.text?.banner?.footer?.primary && resolvedConfig.colors.border?.banner?.outline?.primary) {
|
|
1264
|
+
resolvedConfig.colors.text.banner.footer ??= {};
|
|
1265
|
+
resolvedConfig.colors.text.banner.footer.primary = resolvedConfig.colors.border.banner.outline.primary;
|
|
1266
|
+
}
|
|
1267
|
+
if (!resolvedConfig.colors.text?.banner?.header?.secondary && resolvedConfig.colors.border?.banner?.outline?.secondary) {
|
|
1268
|
+
resolvedConfig.colors.text.banner.header ??= {};
|
|
1269
|
+
resolvedConfig.colors.text.banner.header.secondary = resolvedConfig.colors.border.banner.outline.secondary;
|
|
1270
|
+
}
|
|
1271
|
+
if (!resolvedConfig.colors.text?.banner?.footer?.secondary && resolvedConfig.colors.border?.banner?.outline?.secondary) {
|
|
1272
|
+
resolvedConfig.colors.text.banner.footer ??= {};
|
|
1273
|
+
resolvedConfig.colors.text.banner.footer.secondary = resolvedConfig.colors.border.banner.outline.secondary;
|
|
1274
|
+
}
|
|
1275
|
+
if (!resolvedConfig.colors.text?.banner?.header?.tertiary && resolvedConfig.colors.border?.banner?.outline?.tertiary) {
|
|
1276
|
+
resolvedConfig.colors.text.banner.header ??= {};
|
|
1277
|
+
resolvedConfig.colors.text.banner.header.tertiary = resolvedConfig.colors.border.banner.outline.tertiary;
|
|
1278
|
+
}
|
|
1279
|
+
if (!resolvedConfig.colors.text?.banner?.footer?.tertiary && resolvedConfig.colors.border?.banner?.outline?.tertiary) {
|
|
1280
|
+
resolvedConfig.colors.text.banner.footer ??= {};
|
|
1281
|
+
resolvedConfig.colors.text.banner.footer.tertiary = resolvedConfig.colors.border.banner.outline.tertiary;
|
|
1282
|
+
}
|
|
1283
|
+
if (!resolvedConfig.colors.border?.banner?.outline?.primary && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.text.banner.title.primary;
|
|
1284
|
+
if (!resolvedConfig.colors.border?.app?.divider?.primary && resolvedConfig.colors.border?.app?.blockquote?.primary) resolvedConfig.colors.border.app.divider.primary = resolvedConfig.colors.border.app.blockquote.primary;
|
|
1285
|
+
if (!resolvedConfig.colors.border?.app?.divider?.secondary && resolvedConfig.colors.border?.app?.blockquote?.secondary) resolvedConfig.colors.border.app.divider.secondary = resolvedConfig.colors.border.app.blockquote.secondary;
|
|
1286
|
+
if (!resolvedConfig.colors.border?.app?.divider?.tertiary && resolvedConfig.colors.border?.app?.blockquote?.tertiary) resolvedConfig.colors.border.app.divider.tertiary = resolvedConfig.colors.border.app.blockquote.tertiary;
|
|
1287
|
+
if (!resolvedConfig.colors.border?.app?.blockquote?.primary && resolvedConfig.colors.border?.app?.divider?.primary) resolvedConfig.colors.border.app.blockquote.primary = resolvedConfig.colors.border.app.divider.primary;
|
|
1288
|
+
if (!resolvedConfig.colors.border?.app?.blockquote?.secondary && resolvedConfig.colors.border?.app?.divider?.secondary) resolvedConfig.colors.border.app.blockquote.secondary = resolvedConfig.colors.border.app.divider.secondary;
|
|
1289
|
+
if (!resolvedConfig.colors.border?.app?.blockquote?.tertiary && resolvedConfig.colors.border?.app?.divider?.tertiary) resolvedConfig.colors.border.app.blockquote.tertiary = resolvedConfig.colors.border.app.divider.tertiary;
|
|
1290
|
+
if (!resolvedConfig.colors.border?.app?.divider?.primary && (resolvedConfig.colors.border?.app?.divider?.secondary || resolvedConfig.colors.border?.app?.divider?.tertiary)) resolvedConfig.colors.border.app.divider.primary = resolvedConfig.colors.border.app.divider.secondary || resolvedConfig.colors.border.app.divider.tertiary;
|
|
1291
|
+
if (!resolvedConfig.colors.border?.app?.divider?.secondary && (resolvedConfig.colors.border?.app?.divider?.primary || resolvedConfig.colors.border?.app?.divider?.tertiary)) resolvedConfig.colors.border.app.divider.secondary = resolvedConfig.colors.border.app.divider.primary || resolvedConfig.colors.border.app.divider.tertiary;
|
|
1292
|
+
if (!resolvedConfig.colors.border?.app?.divider?.tertiary && (resolvedConfig.colors.border?.app?.divider?.primary || resolvedConfig.colors.border?.app?.divider?.secondary)) resolvedConfig.colors.border.app.divider.tertiary = resolvedConfig.colors.border.app.divider.primary || resolvedConfig.colors.border.app.divider.secondary;
|
|
1293
|
+
if (!resolvedConfig.colors.border?.app?.blockquote?.primary && (resolvedConfig.colors.border?.app?.blockquote?.secondary || resolvedConfig.colors.border?.app?.blockquote?.tertiary)) resolvedConfig.colors.border.app.blockquote.primary = resolvedConfig.colors.border.app.blockquote.secondary || resolvedConfig.colors.border.app.blockquote.tertiary;
|
|
1294
|
+
if (!resolvedConfig.colors.border?.app?.blockquote?.secondary && (resolvedConfig.colors.border?.app?.blockquote?.primary || resolvedConfig.colors.border?.app?.blockquote?.tertiary)) resolvedConfig.colors.border.app.blockquote.secondary = resolvedConfig.colors.border.app.blockquote.primary || resolvedConfig.colors.border.app.blockquote.tertiary;
|
|
1295
|
+
if (!resolvedConfig.colors.border?.app?.blockquote?.tertiary && (resolvedConfig.colors.border?.app?.blockquote?.primary || resolvedConfig.colors.border?.app?.blockquote?.secondary)) resolvedConfig.colors.border.app.blockquote.tertiary = resolvedConfig.colors.border.app.blockquote.primary || resolvedConfig.colors.border.app.blockquote.secondary;
|
|
1296
|
+
if (!resolvedConfig.colors.border?.app?.table?.primary && (resolvedConfig.colors.border?.app?.table?.secondary || resolvedConfig.colors.border?.app?.table?.tertiary)) resolvedConfig.colors.border.app.table.primary = resolvedConfig.colors.border.app.table.secondary || resolvedConfig.colors.border.app.table.tertiary;
|
|
1297
|
+
if (!resolvedConfig.colors.border?.app?.table?.secondary && (resolvedConfig.colors.border?.app?.table?.primary || resolvedConfig.colors.border?.app?.table?.tertiary)) resolvedConfig.colors.border.app.table.secondary = resolvedConfig.colors.border.app.table.primary || resolvedConfig.colors.border.app.table.tertiary;
|
|
1298
|
+
if (!resolvedConfig.colors.border?.app?.table?.tertiary && (resolvedConfig.colors.border?.app?.table?.primary || resolvedConfig.colors.border?.app?.table?.secondary)) resolvedConfig.colors.border.app.table.tertiary = resolvedConfig.colors.border.app.table.primary || resolvedConfig.colors.border.app.table.secondary;
|
|
1299
|
+
if (!resolvedConfig.colors.border?.message?.divider?.info && resolvedConfig.colors.border?.message?.divider?.debug) resolvedConfig.colors.border.message.divider.info = resolvedConfig.colors.border.message.divider.debug;
|
|
1300
|
+
if (!resolvedConfig.colors.border?.message?.divider?.debug && resolvedConfig.colors.border?.message?.divider?.info) resolvedConfig.colors.border.message.divider.debug = resolvedConfig.colors.border.message.divider.info;
|
|
1301
|
+
if (!resolvedConfig.colors.border?.message?.outline?.info && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.border.message.outline.info = resolvedConfig.colors.border.message.outline.debug;
|
|
1302
|
+
if (!resolvedConfig.colors.border?.message?.outline?.debug && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.border.message.outline.debug = resolvedConfig.colors.border.message.outline.info;
|
|
1303
|
+
if (!resolvedConfig.colors.border?.message?.divider?.error && resolvedConfig.colors.border?.message?.divider?.danger) resolvedConfig.colors.border.message.divider.error = resolvedConfig.colors.border.message.divider.danger;
|
|
1304
|
+
if (!resolvedConfig.colors.border?.message?.divider?.danger && resolvedConfig.colors.border?.message?.divider?.error) resolvedConfig.colors.border.message.divider.danger = resolvedConfig.colors.border.message.divider.error;
|
|
1305
|
+
if (!resolvedConfig.colors.border?.message?.outline?.error && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.border.message.outline.error = resolvedConfig.colors.border.message.outline.danger;
|
|
1306
|
+
if (!resolvedConfig.colors.border?.message?.outline?.danger && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.border.message.outline.danger = resolvedConfig.colors.border.message.outline.error;
|
|
1307
|
+
if (!resolvedConfig.colors.border?.message?.divider?.help && resolvedConfig.colors.border?.message?.outline?.help) resolvedConfig.colors.border.message.divider.help = resolvedConfig.colors.border.message.outline.help;
|
|
1308
|
+
if (!resolvedConfig.colors.border?.message?.divider?.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.border.message.divider.success = resolvedConfig.colors.border.message.outline.success;
|
|
1309
|
+
if (!resolvedConfig.colors.border?.message?.divider?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.border.message.divider.info = resolvedConfig.colors.border.message.outline.info;
|
|
1310
|
+
if (!resolvedConfig.colors.border?.message?.divider?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.border.message.divider.debug = resolvedConfig.colors.border.message.outline.debug;
|
|
1311
|
+
if (!resolvedConfig.colors.border?.message?.divider?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.border.message.divider.warning = resolvedConfig.colors.border.message.outline.warning;
|
|
1312
|
+
if (!resolvedConfig.colors.border?.message?.divider?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.border.message.divider.danger = resolvedConfig.colors.border.message.outline.danger;
|
|
1313
|
+
if (!resolvedConfig.colors.border?.message?.divider?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.border.message.divider.error = resolvedConfig.colors.border.message.outline.error;
|
|
1314
|
+
if (!resolvedConfig.colors.text.message?.header?.help && resolvedConfig.colors.border?.message?.outline?.help) resolvedConfig.colors.text.message.header.help = resolvedConfig.colors.border.message.outline.help;
|
|
1315
|
+
if (!resolvedConfig.colors.text.message?.footer?.help && resolvedConfig.colors.border?.message?.outline?.help) resolvedConfig.colors.text.message.footer.help = resolvedConfig.colors.border.message.outline.help;
|
|
1316
|
+
if (!resolvedConfig.colors.text.message?.header?.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.text.message.header.success = resolvedConfig.colors.border.message.outline.success;
|
|
1317
|
+
if (!resolvedConfig.colors.text.message.footer.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.text.message.footer.success = resolvedConfig.colors.border.message.outline.success;
|
|
1318
|
+
if (!resolvedConfig.colors.text.message?.header?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.text.message.header.info = resolvedConfig.colors.border.message.outline.info;
|
|
1319
|
+
if (!resolvedConfig.colors.text.message?.footer?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.text.message.footer.info = resolvedConfig.colors.border.message.outline.info;
|
|
1320
|
+
if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.border.message.outline.debug;
|
|
1321
|
+
if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.border.message.outline.debug;
|
|
1322
|
+
if (!resolvedConfig.colors.text.message?.header?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.text.message.header.warning = resolvedConfig.colors.border.message.outline.warning;
|
|
1323
|
+
if (!resolvedConfig.colors.text.message?.footer?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.text.message.footer.warning = resolvedConfig.colors.border.message.outline.warning;
|
|
1324
|
+
if (!resolvedConfig.colors.text.message?.header?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.text.message.header.danger = resolvedConfig.colors.border.message.outline.danger;
|
|
1325
|
+
if (!resolvedConfig.colors.text.message?.footer?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.text.message.footer.danger = resolvedConfig.colors.border.message.outline.danger;
|
|
1326
|
+
if (!resolvedConfig.colors.text.message?.header?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.text.message.header.error = resolvedConfig.colors.border.message.outline.error;
|
|
1327
|
+
if (!resolvedConfig.colors.text.message?.footer?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.text.message.footer.error = resolvedConfig.colors.border.message.outline.error;
|
|
1328
|
+
if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.text.message?.header?.info) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.text.message.header.info;
|
|
1329
|
+
if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.text.message?.footer?.info) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.text.message.footer.info;
|
|
1330
|
+
if (!resolvedConfig.colors.text.message?.link?.help && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.help = resolvedConfig.colors.text.body.link;
|
|
1331
|
+
if (!resolvedConfig.colors.text.message?.link?.success && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.success = resolvedConfig.colors.text.body.link;
|
|
1332
|
+
if (!resolvedConfig.colors.text.message?.link?.info && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.info = resolvedConfig.colors.text.body.link;
|
|
1333
|
+
if (!resolvedConfig.colors.text.message?.link?.debug && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.debug = resolvedConfig.colors.text.body.link;
|
|
1334
|
+
if (!resolvedConfig.colors.text.message?.link?.warning && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.warning = resolvedConfig.colors.text.body.link;
|
|
1335
|
+
if (!resolvedConfig.colors.text.message?.link?.danger && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.danger = resolvedConfig.colors.text.body.link;
|
|
1336
|
+
if (!resolvedConfig.colors.text.message?.link?.error && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.error = resolvedConfig.colors.text.body.link;
|
|
1337
|
+
if (!resolvedConfig.colors.text.prompt.icon?.active && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.prompt.icon.active = resolvedConfig.colors.text.banner.title.primary;
|
|
1338
|
+
if (!resolvedConfig.colors.text.prompt.icon?.submitted && resolvedConfig.colors.text?.message?.header?.success) resolvedConfig.colors.text.prompt.icon.submitted = resolvedConfig.colors.text.message.header.success;
|
|
1339
|
+
if (!resolvedConfig.colors.text.prompt.icon?.warning && resolvedConfig.colors.text?.message?.header?.warning) resolvedConfig.colors.text.prompt.icon.warning = resolvedConfig.colors.text.message.header.warning;
|
|
1340
|
+
if (!resolvedConfig.colors.text.prompt.icon?.error && resolvedConfig.colors.text?.message?.header?.error) resolvedConfig.colors.text.prompt.icon.error = resolvedConfig.colors.text.message.header.error;
|
|
1341
|
+
if (!resolvedConfig.colors.text.prompt.icon?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.icon.disabled = resolvedConfig.colors.text.body.tertiary;
|
|
1342
|
+
if (!resolvedConfig.colors.text.prompt.icon?.cancelled && resolvedConfig.colors.text.prompt.icon?.disabled) resolvedConfig.colors.text.prompt.icon.cancelled = resolvedConfig.colors.text.prompt.icon.disabled;
|
|
1343
|
+
if (!resolvedConfig.colors.text.prompt.message?.active && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.prompt.message.active = resolvedConfig.colors.text.body.primary;
|
|
1344
|
+
if (!resolvedConfig.colors.text.prompt.message?.submitted && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.message.submitted = resolvedConfig.colors.text.body.tertiary;
|
|
1345
|
+
if (!resolvedConfig.colors.text.prompt.message?.warning && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.warning = resolvedConfig.colors.text.prompt.message.active;
|
|
1346
|
+
if (!resolvedConfig.colors.text.prompt.message?.error && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.error = resolvedConfig.colors.text.prompt.message.active;
|
|
1347
|
+
if (!resolvedConfig.colors.text.prompt.message?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.message.disabled = resolvedConfig.colors.text.body.tertiary;
|
|
1348
|
+
if (!resolvedConfig.colors.text.prompt.message?.cancelled && resolvedConfig.colors.text.prompt.message?.disabled) resolvedConfig.colors.text.prompt.message.cancelled = resolvedConfig.colors.text.prompt.message.disabled;
|
|
1349
|
+
if (!resolvedConfig.colors.text.prompt.input?.active && resolvedConfig.colors.text?.heading?.primary) resolvedConfig.colors.text.prompt.input.active = resolvedConfig.colors.text.heading.primary;
|
|
1350
|
+
if (!resolvedConfig.colors.text.prompt.input?.inactive && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.prompt.input.inactive = resolvedConfig.colors.text.heading.secondary;
|
|
1351
|
+
if (!resolvedConfig.colors.text.prompt.input?.submitted && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.prompt.message.submitted = resolvedConfig.colors.text.heading.tertiary;
|
|
1352
|
+
if (!resolvedConfig.colors.text.prompt.message?.warning && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.warning = resolvedConfig.colors.text.prompt.message.active;
|
|
1353
|
+
if (!resolvedConfig.colors.text.prompt.message?.error && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.error = resolvedConfig.colors.text.prompt.message.active;
|
|
1354
|
+
if (!resolvedConfig.colors.text.prompt.message?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.message.disabled = resolvedConfig.colors.text.body.tertiary;
|
|
1355
|
+
if (!resolvedConfig.colors.text.prompt.message?.cancelled && resolvedConfig.colors.text.prompt.message?.disabled) resolvedConfig.colors.text.prompt.message.cancelled = resolvedConfig.colors.text.prompt.message.disabled;
|
|
1356
|
+
if (!resolvedConfig.colors.text.prompt.description?.active && resolvedConfig.colors.text?.heading?.primary) resolvedConfig.colors.text.prompt.description.active = resolvedConfig.colors.text.heading.primary;
|
|
1357
|
+
if (!resolvedConfig.colors.text.prompt.description?.inactive && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.prompt.description.inactive = resolvedConfig.colors.text.heading.secondary;
|
|
1358
|
+
if (!resolvedConfig.colors.text.prompt.description?.submitted && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.prompt.description.submitted = resolvedConfig.colors.text.heading.tertiary;
|
|
1359
|
+
if (!resolvedConfig.colors.text.prompt.description?.warning && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.prompt.description.warning = resolvedConfig.colors.text.body.secondary;
|
|
1360
|
+
if (!resolvedConfig.colors.text.prompt.description?.error && resolvedConfig.colors.text.prompt.icon?.error) resolvedConfig.colors.text.prompt.description.error = resolvedConfig.colors.text.prompt.icon.error;
|
|
1361
|
+
if (!resolvedConfig.colors.text.prompt.description?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.description.disabled = resolvedConfig.colors.text.body.tertiary;
|
|
1362
|
+
if (!resolvedConfig.colors.text.prompt.description?.cancelled && resolvedConfig.colors.text.prompt.description?.disabled) resolvedConfig.colors.text.prompt.description.cancelled = resolvedConfig.colors.text.prompt.description.disabled;
|
|
1363
|
+
if (!resolvedConfig.colors.text.prompt.input?.cancelled && resolvedConfig.colors.text.prompt.input?.disabled) resolvedConfig.colors.text.prompt.input.cancelled = resolvedConfig.colors.text.prompt.input.disabled;
|
|
1364
|
+
if (!resolvedConfig.colors.text.prompt.input?.placeholder && resolvedConfig.colors.text.prompt.input?.disabled) resolvedConfig.colors.text.prompt.input.placeholder = resolvedConfig.colors.text.prompt.input.disabled;
|
|
1365
|
+
if (!resolvedConfig.colors.text.prompt.input?.disabled && resolvedConfig.colors.text.prompt.input?.placeholder) resolvedConfig.colors.text.prompt.input.disabled = resolvedConfig.colors.text.prompt.input.placeholder;
|
|
1366
|
+
if (!resolvedConfig.colors.text.spinner.icon?.active && resolvedConfig.colors.text.spinner.message?.active) resolvedConfig.colors.text.spinner.icon.active = resolvedConfig.colors.text.spinner.message.active;
|
|
1367
|
+
if (!resolvedConfig.colors.text.spinner.icon?.success && resolvedConfig.colors.text.spinner.message?.success) resolvedConfig.colors.text.spinner.icon.success = resolvedConfig.colors.text.spinner.message.success;
|
|
1368
|
+
if (!resolvedConfig.colors.text.spinner.icon?.error && resolvedConfig.colors.text?.spinner?.message?.error) resolvedConfig.colors.text.spinner.icon.error = resolvedConfig.colors.text.spinner.message.error;
|
|
1369
|
+
if (!resolvedConfig.colors.text.spinner.icon?.help && resolvedConfig.colors.text.spinner.message?.help) resolvedConfig.colors.text.spinner.icon.help = resolvedConfig.colors.text.spinner.message.help;
|
|
1370
|
+
if (!resolvedConfig.colors.text.spinner.icon?.info && resolvedConfig.colors.text.spinner.message?.info) resolvedConfig.colors.text.spinner.icon.info = resolvedConfig.colors.text.spinner.message.info;
|
|
1371
|
+
if (!resolvedConfig.colors.text.spinner.icon?.warning && resolvedConfig.colors.text.spinner.message?.warning) resolvedConfig.colors.text.spinner.icon.warning = resolvedConfig.colors.text.spinner.message.warning;
|
|
1372
|
+
if (!resolvedConfig.colors.text.spinner.icon?.active && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.spinner.icon.active = resolvedConfig.colors.text.banner.title.primary;
|
|
1373
|
+
if (!resolvedConfig.colors.text.spinner.icon?.success && resolvedConfig.colors.text?.message?.header?.success) resolvedConfig.colors.text.spinner.icon.success = resolvedConfig.colors.text.message.header.success;
|
|
1374
|
+
if (!resolvedConfig.colors.text.spinner.icon?.error && resolvedConfig.colors.text?.message?.header?.error) resolvedConfig.colors.text.spinner.icon.error = resolvedConfig.colors.text.message.header.error;
|
|
1375
|
+
if (!resolvedConfig.colors.text.spinner.icon?.help && resolvedConfig.colors.text?.message?.header?.help) resolvedConfig.colors.text.spinner.icon.help = resolvedConfig.colors.text.message.header.help;
|
|
1376
|
+
if (!resolvedConfig.colors.text.spinner.icon?.info && resolvedConfig.colors.text?.message?.header?.info) resolvedConfig.colors.text.spinner.icon.info = resolvedConfig.colors.text.message.header.info;
|
|
1377
|
+
if (!resolvedConfig.colors.text.spinner.icon?.warning && resolvedConfig.colors.text?.message?.header?.warning) resolvedConfig.colors.text.spinner.icon.warning = resolvedConfig.colors.text.message.header.warning;
|
|
1378
|
+
if (!resolvedConfig.colors.text.spinner.message?.active && resolvedConfig.colors.text?.spinner?.icon?.active) resolvedConfig.colors.text.spinner.message.active = resolvedConfig.colors.text.spinner.icon.active;
|
|
1379
|
+
if (!resolvedConfig.colors.text.spinner.message?.success && resolvedConfig.colors.text?.spinner?.icon?.success) resolvedConfig.colors.text.spinner.message.success = resolvedConfig.colors.text.spinner.icon.success;
|
|
1380
|
+
if (!resolvedConfig.colors.text.spinner.message?.error && resolvedConfig.colors.text?.spinner?.icon?.error) resolvedConfig.colors.text.spinner.message.error = resolvedConfig.colors.text.spinner.icon.error;
|
|
1381
|
+
if (!resolvedConfig.colors.text.spinner.message?.help && resolvedConfig.colors.text?.spinner?.icon?.help) resolvedConfig.colors.text.spinner.message.help = resolvedConfig.colors.text.spinner.icon.help;
|
|
1382
|
+
if (!resolvedConfig.colors.text.spinner.message?.info && resolvedConfig.colors.text?.spinner?.icon?.info) resolvedConfig.colors.text.spinner.message.info = resolvedConfig.colors.text.spinner.icon.info;
|
|
1383
|
+
if (!resolvedConfig.colors.text.spinner.message?.warning && resolvedConfig.colors.text?.spinner?.icon?.warning) resolvedConfig.colors.text.spinner.message.warning = resolvedConfig.colors.text.spinner.icon.warning;
|
|
1384
|
+
require_helpers_merge.mergeThemes(context, resolvedConfig);
|
|
1385
|
+
return dictionary;
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
|
|
1389
|
+
//#endregion
|
|
1390
|
+
exports.colors = colors;
|