@sk-web-gui/core 3.13.1 → 3.15.0
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/cjs/aria-plugin.js +1 -2
- package/dist/cjs/aria-plugin.js.map +1 -1
- package/dist/cjs/components/accordion.js +16 -14
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/badge.js +10 -3
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/card.js +38 -4
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/input.js +103 -4
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/logo.js +1 -1
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/tabs.js +1 -1
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/text-editor.js +130 -0
- package/dist/cjs/components/text-editor.js.map +1 -0
- package/dist/cjs/components.js +4 -0
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/data-plugin.js +1 -2
- package/dist/cjs/data-plugin.js.map +1 -1
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js +4 -5
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/with-opacity.js +1 -2
- package/dist/cjs/with-opacity.js.map +1 -1
- package/dist/esm/aria-plugin.js +1 -2
- package/dist/esm/aria-plugin.js.map +1 -1
- package/dist/esm/components/accordion.js +16 -14
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/badge.js +10 -3
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/card.js +38 -4
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/input.js +103 -4
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/logo.js +1 -1
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/text-editor.js +120 -0
- package/dist/esm/components/text-editor.js.map +1 -0
- package/dist/esm/components.js +4 -0
- package/dist/esm/components.js.map +1 -1
- package/dist/esm/data-plugin.js +1 -2
- package/dist/esm/data-plugin.js.map +1 -1
- package/dist/esm/plugin.js +1 -2
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/with-opacity.js +1 -2
- package/dist/esm/with-opacity.js.map +1 -1
- package/dist/types/components/accordion.d.ts +15 -13
- package/dist/types/components/badge.d.ts +10 -2
- package/dist/types/components/card.d.ts +38 -4
- package/dist/types/components/input.d.ts +112 -0
- package/dist/types/components/logo.d.ts +1 -1
- package/dist/types/components/tabs.d.ts +1 -1
- package/dist/types/components/text-editor.d.ts +117 -0
- package/package.json +6 -6
package/dist/esm/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/plugin.ts"],"sourcesContent":["import TailwindPlugin from 'tailwindcss/plugin';\r\nimport { base } from './base';\r\nimport { theme } from './theme';\r\nimport { Component, components } from './components';\r\nimport { PluginAPI } from 'tailwindcss/types/config';\r\n\r\nexport interface PluginOptions {\r\n colors?: string[];\r\n cssBase?: boolean;\r\n components?: string[];\r\n}\r\n\r\nexport const pluginDefaults = { cssBase: true, colors: [] };\r\n\r\nconst defaultColors = ['warning', 'error', 'success', 'info', 'vattjom', 'juniskar', 'bjornstigen', 'gronsta'];\r\n\r\nconst getComponentWithDependencies = (compName: string): Component[] => {\r\n const compWithDeps = components.find((comp) => comp.comp.name === compName);\r\n if (!compWithDeps) return [];\r\n\r\n let comps: Component[] = [compWithDeps.comp];\r\n if (compWithDeps?.deps) {\r\n for (let index = 0; index < compWithDeps?.deps.length; index++) {\r\n comps = [...getComponentWithDependencies(compWithDeps.deps[index].name), ...comps];\r\n }\r\n }\r\n\r\n return comps;\r\n};\r\n\r\nconst plugin = TailwindPlugin.withOptions<PluginOptions>(\r\n function (_options) {\r\n const options = { ...pluginDefaults, ..._options };\r\n\r\n const pickedComponents = components\r\n .reduce((comps: Component[], compWithDeps) => {\r\n if (options?.components && !options.components.includes(compWithDeps.comp.name)) {\r\n return comps;\r\n }\r\n\r\n let deps: Component[] = [];\r\n if (compWithDeps?.deps) {\r\n for (let index = 0; index < compWithDeps.deps.length; index++) {\r\n deps = [...getComponentWithDependencies(compWithDeps.deps[index].name), ...deps];\r\n }\r\n }\r\n\r\n return [...comps, ...deps, compWithDeps.comp];\r\n }, [])\r\n .filter((val, index, arr) => arr.indexOf(val) === index);\r\n\r\n return function ({ addComponents, addBase, theme }: PluginAPI) {\r\n const optionColors = [...defaultColors, ...(options.colors || [])];\r\n\r\n if (options.cssBase) {\r\n addBase(base);\r\n }\r\n\r\n addComponents(pickedComponents.map((component) => component(optionColors, theme)));\r\n };\r\n },\r\n function () {\r\n return {\r\n theme: theme,\r\n };\r\n }\r\n);\r\n\r\nexport default plugin;\r\n"],"names":["TailwindPlugin","base","theme","components","pluginDefaults","cssBase","colors","defaultColors","getComponentWithDependencies","compName","compWithDeps","find","comp","name","comps","deps","index","length","plugin","withOptions","_options","options","pickedComponents","reduce","includes","filter","val","arr","indexOf","addComponents","addBase","optionColors","map","component"],"mappings":"AAAA,OAAOA,oBAAoB,qBAAqB;AAChD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,KAAK,QAAQ,UAAU;AAChC,SAAoBC,UAAU,QAAQ,eAAe;AASrD,OAAO,MAAMC,iBAAiB;IAAEC,SAAS;IAAMC,QAAQ,EAAE;AAAC,EAAE;AAE5D,MAAMC,gBAAgB;IAAC;IAAW;IAAS;IAAW;IAAQ;IAAW;IAAY;IAAe;CAAU;AAE9G,MAAMC,+BAA+B,CAACC;IACpC,MAAMC,eAAeP,WAAWQ,IAAI,CAAC,CAACC,OAASA,KAAKA,IAAI,CAACC,IAAI,KAAKJ;IAClE,IAAI,CAACC,cAAc,OAAO,EAAE;IAE5B,IAAII,QAAqB;QAACJ,aAAaE,IAAI;KAAC;IAC5C,IAAIF,cAAcK,MAAM;QACtB,IAAK,IAAIC,QAAQ,GAAGA,QAAQN,cAAcK,KAAKE,QAAQD,QAAS;YAC9DF,QAAQ;mBAAIN,6BAA6BE,aAAaK,IAAI,CAACC,MAAM,CAACH,IAAI;mBAAMC;aAAM;QACpF;IACF;IAEA,OAAOA;AACT;AAEA,MAAMI,SAASlB,eAAemB,WAAW,CACvC,SAAUC,QAAQ;IAChB,MAAMC,UAAU;QAAE,GAAGjB,cAAc;QAAE,GAAGgB,QAAQ;IAAC;IAEjD,MAAME,mBAAmBnB,WACtBoB,MAAM,CAAC,CAACT,OAAoBJ;QAC3B,IAAIW,SAASlB,cAAc,CAACkB,QAAQlB,UAAU,CAACqB,QAAQ,CAACd,aAAaE,IAAI,CAACC,IAAI,GAAG;YAC/E,OAAOC;QACT;QAEA,IAAIC,OAAoB,EAAE;QAC1B,IAAIL,cAAcK,MAAM;YACtB,IAAK,IAAIC,QAAQ,GAAGA,QAAQN,aAAaK,IAAI,CAACE,MAAM,EAAED,QAAS;gBAC7DD,OAAO;uBAAIP,6BAA6BE,aAAaK,IAAI,CAACC,MAAM,CAACH,IAAI;uBAAME;iBAAK;YAClF;QACF;QAEA,OAAO;eAAID;eAAUC;YAAML,aAAaE,IAAI;SAAC;IAC/C,GAAG,EAAE,EACJa,MAAM,CAAC,CAACC,KAAKV,OAAOW,MAAQA,IAAIC,OAAO,CAACF,SAASV;IAEpD,OAAO,SAAU,
|
|
1
|
+
{"version":3,"sources":["../../src/plugin.ts"],"sourcesContent":["import TailwindPlugin from 'tailwindcss/plugin';\r\nimport { base } from './base';\r\nimport { theme } from './theme';\r\nimport { Component, components } from './components';\r\nimport { PluginAPI } from 'tailwindcss/types/config';\r\n\r\nexport interface PluginOptions {\r\n colors?: string[];\r\n cssBase?: boolean;\r\n components?: string[];\r\n}\r\n\r\nexport const pluginDefaults = { cssBase: true, colors: [] };\r\n\r\nconst defaultColors = ['warning', 'error', 'success', 'info', 'vattjom', 'juniskar', 'bjornstigen', 'gronsta'];\r\n\r\nconst getComponentWithDependencies = (compName: string): Component[] => {\r\n const compWithDeps = components.find((comp) => comp.comp.name === compName);\r\n if (!compWithDeps) return [];\r\n\r\n let comps: Component[] = [compWithDeps.comp];\r\n if (compWithDeps?.deps) {\r\n for (let index = 0; index < compWithDeps?.deps.length; index++) {\r\n comps = [...getComponentWithDependencies(compWithDeps.deps[index].name), ...comps];\r\n }\r\n }\r\n\r\n return comps;\r\n};\r\n\r\nconst plugin = TailwindPlugin.withOptions<PluginOptions>(\r\n function (_options) {\r\n const options = { ...pluginDefaults, ..._options };\r\n\r\n const pickedComponents = components\r\n .reduce((comps: Component[], compWithDeps) => {\r\n if (options?.components && !options.components.includes(compWithDeps.comp.name)) {\r\n return comps;\r\n }\r\n\r\n let deps: Component[] = [];\r\n if (compWithDeps?.deps) {\r\n for (let index = 0; index < compWithDeps.deps.length; index++) {\r\n deps = [...getComponentWithDependencies(compWithDeps.deps[index].name), ...deps];\r\n }\r\n }\r\n\r\n return [...comps, ...deps, compWithDeps.comp];\r\n }, [])\r\n .filter((val, index, arr) => arr.indexOf(val) === index);\r\n\r\n return function ({ addComponents, addBase, theme }: PluginAPI) {\r\n const optionColors = [...defaultColors, ...(options.colors || [])];\r\n\r\n if (options.cssBase) {\r\n addBase(base);\r\n }\r\n\r\n addComponents(pickedComponents.map((component) => component(optionColors, theme)));\r\n };\r\n },\r\n function () {\r\n return {\r\n theme: theme,\r\n };\r\n }\r\n);\r\n\r\nexport default plugin;\r\n"],"names":["TailwindPlugin","base","theme","components","pluginDefaults","cssBase","colors","defaultColors","getComponentWithDependencies","compName","compWithDeps","find","comp","name","comps","deps","index","length","plugin","withOptions","_options","options","pickedComponents","reduce","includes","filter","val","arr","indexOf","addComponents","addBase","optionColors","map","component"],"mappings":"AAAA,OAAOA,oBAAoB,qBAAqB;AAChD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,KAAK,QAAQ,UAAU;AAChC,SAAoBC,UAAU,QAAQ,eAAe;AASrD,OAAO,MAAMC,iBAAiB;IAAEC,SAAS;IAAMC,QAAQ,EAAE;AAAC,EAAE;AAE5D,MAAMC,gBAAgB;IAAC;IAAW;IAAS;IAAW;IAAQ;IAAW;IAAY;IAAe;CAAU;AAE9G,MAAMC,+BAA+B,CAACC;IACpC,MAAMC,eAAeP,WAAWQ,IAAI,CAAC,CAACC,OAASA,KAAKA,IAAI,CAACC,IAAI,KAAKJ;IAClE,IAAI,CAACC,cAAc,OAAO,EAAE;IAE5B,IAAII,QAAqB;QAACJ,aAAaE,IAAI;KAAC;IAC5C,IAAIF,cAAcK,MAAM;QACtB,IAAK,IAAIC,QAAQ,GAAGA,QAAQN,cAAcK,KAAKE,QAAQD,QAAS;YAC9DF,QAAQ;mBAAIN,6BAA6BE,aAAaK,IAAI,CAACC,MAAM,CAACH,IAAI;mBAAMC;aAAM;QACpF;IACF;IAEA,OAAOA;AACT;AAEA,MAAMI,SAASlB,eAAemB,WAAW,CACvC,SAAUC,QAAQ;IAChB,MAAMC,UAAU;QAAE,GAAGjB,cAAc;QAAE,GAAGgB,QAAQ;IAAC;IAEjD,MAAME,mBAAmBnB,WACtBoB,MAAM,CAAC,CAACT,OAAoBJ;QAC3B,IAAIW,SAASlB,cAAc,CAACkB,QAAQlB,UAAU,CAACqB,QAAQ,CAACd,aAAaE,IAAI,CAACC,IAAI,GAAG;YAC/E,OAAOC;QACT;QAEA,IAAIC,OAAoB,EAAE;QAC1B,IAAIL,cAAcK,MAAM;YACtB,IAAK,IAAIC,QAAQ,GAAGA,QAAQN,aAAaK,IAAI,CAACE,MAAM,EAAED,QAAS;gBAC7DD,OAAO;uBAAIP,6BAA6BE,aAAaK,IAAI,CAACC,MAAM,CAACH,IAAI;uBAAME;iBAAK;YAClF;QACF;QAEA,OAAO;eAAID;eAAUC;YAAML,aAAaE,IAAI;SAAC;IAC/C,GAAG,EAAE,EACJa,MAAM,CAAC,CAACC,KAAKV,OAAOW,MAAQA,IAAIC,OAAO,CAACF,SAASV;IAEpD,OAAO,SAAU,EAAEa,aAAa,EAAEC,OAAO,EAAE5B,KAAK,EAAa;QAC3D,MAAM6B,eAAe;eAAIxB;eAAmBc,QAAQf,MAAM,IAAI,EAAE;SAAE;QAElE,IAAIe,QAAQhB,OAAO,EAAE;YACnByB,QAAQ7B;QACV;QAEA4B,cAAcP,iBAAiBU,GAAG,CAAC,CAACC,YAAcA,UAAUF,cAAc7B;IAC5E;AACF,GACA;IACE,OAAO;QACLA,OAAOA;IACT;AACF;AAGF,eAAegB,OAAO"}
|
package/dist/esm/with-opacity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-opacity.ts"],"sourcesContent":["const withOpacity = function withOpacity(variableName: string) {\r\n return ({ opacityValue }: { opacityValue: string }) => {\r\n if (opacityValue) return `rgba(var(${variableName}), ${opacityValue})`;\r\n return `rgb(var(${variableName}))`;\r\n };\r\n};\r\nexport default withOpacity;\r\n"],"names":["withOpacity","variableName","opacityValue"],"mappings":"AAAA,MAAMA,cAAc,SAASA,YAAYC,YAAoB;IAC3D,OAAO
|
|
1
|
+
{"version":3,"sources":["../../src/with-opacity.ts"],"sourcesContent":["const withOpacity = function withOpacity(variableName: string) {\r\n return ({ opacityValue }: { opacityValue: string }) => {\r\n if (opacityValue) return `rgba(var(${variableName}), ${opacityValue})`;\r\n return `rgb(var(${variableName}))`;\r\n };\r\n};\r\nexport default withOpacity;\r\n"],"names":["withOpacity","variableName","opacityValue"],"mappings":"AAAA,MAAMA,cAAc,SAASA,YAAYC,YAAoB;IAC3D,OAAO,CAAC,EAAEC,YAAY,EAA4B;QAChD,IAAIA,cAAc,OAAO,CAAC,SAAS,EAAED,aAAa,GAAG,EAAEC,aAAa,CAAC,CAAC;QACtE,OAAO,CAAC,QAAQ,EAAED,aAAa,EAAE,CAAC;IACpC;AACF;AACA,eAAeD,YAAY"}
|
|
@@ -59,7 +59,7 @@ export declare const Accordion: () => {
|
|
|
59
59
|
'.sk-disclosure-toggle': {
|
|
60
60
|
'@apply gap-12': {};
|
|
61
61
|
'.sk-icon': {
|
|
62
|
-
'@apply w-20 h-20': {};
|
|
62
|
+
'@apply w-20 min-h-20': {};
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
'.sk-disclosure-support': {
|
|
@@ -68,7 +68,7 @@ export declare const Accordion: () => {
|
|
|
68
68
|
'&[data-variant="default"]': {
|
|
69
69
|
'.sk-disclosure-toggle': {
|
|
70
70
|
'@apply py-4': {};
|
|
71
|
-
'@apply h-40': {};
|
|
71
|
+
'@apply min-h-40': {};
|
|
72
72
|
};
|
|
73
73
|
'.sk-disclosure-header-icon': {
|
|
74
74
|
'@apply w-32 h-32': {};
|
|
@@ -86,7 +86,7 @@ export declare const Accordion: () => {
|
|
|
86
86
|
'.sk-disclosure-toggle': {
|
|
87
87
|
'@apply gap-12': {};
|
|
88
88
|
'.sk-icon': {
|
|
89
|
-
'@apply w-24 h-24': {};
|
|
89
|
+
'@apply w-24 min-h-24': {};
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
'.sk-disclosure-support': {
|
|
@@ -95,7 +95,7 @@ export declare const Accordion: () => {
|
|
|
95
95
|
'&[data-variant="default"]': {
|
|
96
96
|
'.sk-disclosure-toggle': {
|
|
97
97
|
'@apply py-8': {};
|
|
98
|
-
'@apply h-56': {};
|
|
98
|
+
'@apply min-h-56': {};
|
|
99
99
|
};
|
|
100
100
|
'.sk-disclosure-header-icon': {
|
|
101
101
|
'@apply w-40 h-40': {};
|
|
@@ -116,21 +116,28 @@ export declare const Accordion: () => {
|
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
'&-body': {
|
|
119
|
+
'&[data-size="sm"]': {
|
|
120
|
+
'@apply pr-12': {};
|
|
121
|
+
};
|
|
122
|
+
'&[data-size="md"]': {
|
|
123
|
+
'@apply pr-12': {};
|
|
124
|
+
};
|
|
125
|
+
'&[data-size="lg"]': {
|
|
126
|
+
'@apply pr-16': {};
|
|
127
|
+
};
|
|
119
128
|
'@apply text-base': {};
|
|
120
129
|
'@apply flex flex-col': {};
|
|
121
130
|
'@apply mb-32': {};
|
|
122
131
|
'@apply mr-32': {};
|
|
123
132
|
'@apply gap-8': {};
|
|
124
133
|
'@apply py-0': {};
|
|
125
|
-
'@apply h-0 overflow-hidden': {};
|
|
126
134
|
transitionProperty: string;
|
|
127
|
-
transitionTimingFunction: string;
|
|
128
135
|
transitionDuration: string;
|
|
129
136
|
'&[aria-hidden="true"], &[data-hidden="true"]': {
|
|
130
|
-
'@apply my-0 invisible h-0': {};
|
|
137
|
+
'@apply my-0 invisible max-h-0 opacity-0': {};
|
|
131
138
|
};
|
|
132
139
|
'&[aria-hidden="false"], &[data-hidden="false"]': {
|
|
133
|
-
'@apply block h-
|
|
140
|
+
'@apply block max-h-screen opacity-100 visible': {};
|
|
134
141
|
};
|
|
135
142
|
'&[data-variant="alt"]': {
|
|
136
143
|
'@apply mt-24': {};
|
|
@@ -156,11 +163,6 @@ export declare const Accordion: () => {
|
|
|
156
163
|
};
|
|
157
164
|
};
|
|
158
165
|
};
|
|
159
|
-
'&-is-open': {
|
|
160
|
-
'.sk-disclosure-body': {
|
|
161
|
-
'@apply overflow-visible animate-reset-overflow': {};
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
166
|
};
|
|
165
167
|
'.sk-accordion': {
|
|
166
168
|
'&-item': {
|
|
@@ -12,8 +12,16 @@ export declare const Badge: (colors: string[]) => {
|
|
|
12
12
|
'@apply text-light-primary': {};
|
|
13
13
|
'@apply rounded-utility': {};
|
|
14
14
|
'@apply overflow-hidden': {};
|
|
15
|
-
'
|
|
16
|
-
|
|
15
|
+
'&[data-size="sm"]': {
|
|
16
|
+
'@apply h-22 min-w-22': {};
|
|
17
|
+
'@apply p-4': {};
|
|
18
|
+
'@apply text-label-extra-small': {};
|
|
19
|
+
};
|
|
20
|
+
'&[data-size="md"]': {
|
|
21
|
+
'@apply h-24 min-w-24': {};
|
|
22
|
+
'@apply p-4': {};
|
|
23
|
+
'@apply text-label-small': {};
|
|
24
|
+
};
|
|
17
25
|
'&[data-rounded="true"]': {
|
|
18
26
|
'@apply rounded-circular': {};
|
|
19
27
|
};
|
|
@@ -98,6 +98,15 @@ export declare const Card: (colors: string[]) => {
|
|
|
98
98
|
'@apply no-underline hover:no-underline': {};
|
|
99
99
|
'@apply flex bg-vattjom-surface-accent': {};
|
|
100
100
|
'@apply p-14 rounded-groups': {};
|
|
101
|
+
'&.sk-meta-card-use-hover-effect:hover': {
|
|
102
|
+
'@apply cursor-pointer': {};
|
|
103
|
+
};
|
|
104
|
+
'&.sk-meta-card-use-hover-effect[data-color="vattjom"]:hover': {
|
|
105
|
+
'@apply bg-vattjom-background-300': {};
|
|
106
|
+
};
|
|
107
|
+
'&.sk-meta-card-use-hover-effect[data-color="mono"]:hover': {
|
|
108
|
+
'@apply bg-primitives-overlay-darken-2 dark:bg-primitives-overlay-lighten-2': {};
|
|
109
|
+
};
|
|
101
110
|
'&[data-color="mono"]': {
|
|
102
111
|
'@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {};
|
|
103
112
|
};
|
|
@@ -116,20 +125,45 @@ export declare const Card: (colors: string[]) => {
|
|
|
116
125
|
'&-body': {
|
|
117
126
|
'&-header': {
|
|
118
127
|
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
119
|
-
'@apply mt-6
|
|
128
|
+
'@apply mt-6 line-clamp-1': {};
|
|
120
129
|
'@apply text-dark-primary': {};
|
|
121
130
|
};
|
|
122
131
|
};
|
|
123
132
|
'&-content': {
|
|
124
133
|
'p, a': {
|
|
125
|
-
'@apply text-primitives-gray-700 dark:text-primitives-gray-200
|
|
134
|
+
'@apply text-primitives-gray-700 dark:text-primitives-gray-200': {};
|
|
126
135
|
'@apply text-dark-secondary line-clamp-1': {};
|
|
127
136
|
};
|
|
128
137
|
};
|
|
129
138
|
};
|
|
130
139
|
'&-external-link-icon': {
|
|
131
|
-
'@apply ml-auto h-32 w-32': {};
|
|
132
|
-
'@apply p-6 text-dark': {};
|
|
140
|
+
'@apply ml-auto h-32 w-32 p-6 text-dark shrink-0': {};
|
|
133
141
|
};
|
|
134
142
|
};
|
|
143
|
+
'.sk-meta-card[data-size="sm"]': {
|
|
144
|
+
'@apply h-[8.6rem]': {};
|
|
145
|
+
};
|
|
146
|
+
'.sk-meta-card[data-size="md"]': {
|
|
147
|
+
'@apply h-[9.4rem]': {};
|
|
148
|
+
};
|
|
149
|
+
'.sk-meta-card[data-size="sm"] .sk-meta-card-body-header': {
|
|
150
|
+
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
151
|
+
fontSize: string;
|
|
152
|
+
lineHeight: string;
|
|
153
|
+
fontWeight: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
'.sk-meta-card[data-size="sm"] .sk-meta-card-body-content': {
|
|
157
|
+
'@apply text-[1.4rem]': {};
|
|
158
|
+
};
|
|
159
|
+
'.sk-meta-card[data-size="md"] .sk-meta-card-body-header': {
|
|
160
|
+
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
161
|
+
fontSize: string;
|
|
162
|
+
lineHeight: string;
|
|
163
|
+
fontWeight: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
'.sk-meta-card[data-size="md"] .sk-meta-card-body-content': {
|
|
167
|
+
'@apply text-[1.6rem]': {};
|
|
168
|
+
};
|
|
135
169
|
};
|
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
export declare const Input: () => {
|
|
2
2
|
'.sk-form-input': {
|
|
3
|
+
'&-addon': {
|
|
4
|
+
'.sk-form-input': {
|
|
5
|
+
'@apply rounded-0': {};
|
|
6
|
+
'@apply border-0': {};
|
|
7
|
+
'@apply focus:ring-0': {};
|
|
8
|
+
'@apply focus:ring-offset-0': {};
|
|
9
|
+
'@apply bg-transparent': {};
|
|
10
|
+
'@apply dark:bg-transparent': {};
|
|
11
|
+
'@apply grow': {};
|
|
12
|
+
};
|
|
13
|
+
'.sk-form-select': {
|
|
14
|
+
'@apply rounded-0': {};
|
|
15
|
+
'@apply border-0 hover:border-0': {};
|
|
16
|
+
'@apply focus:ring-0 focus:z-10': {};
|
|
17
|
+
'@apply focus:ring-offset-0': {};
|
|
18
|
+
'@apply bg-transparent hover:bg-transparent': {};
|
|
19
|
+
'@apply dark:bg-transparent hover:dark:bg-transparent': {};
|
|
20
|
+
'@apply grow': {};
|
|
21
|
+
};
|
|
22
|
+
'&&-left .sk-form-select': {
|
|
23
|
+
'@apply border-r-1 border-r-divider': {};
|
|
24
|
+
'@apply focus:border-r-transparent': {};
|
|
25
|
+
};
|
|
26
|
+
'&&-right .sk-form-select': {
|
|
27
|
+
'@apply border-l-1 border-l-divider': {};
|
|
28
|
+
'@apply focus:border-l-transparent': {};
|
|
29
|
+
};
|
|
30
|
+
'.sk-form-combobox': {
|
|
31
|
+
'@apply rounded-0': {};
|
|
32
|
+
'@apply border-0': {};
|
|
33
|
+
'@apply focus-within:ring-0': {};
|
|
34
|
+
'@apply focus-within:ring-offset-0': {};
|
|
35
|
+
'@apply bg-transparent': {};
|
|
36
|
+
'@apply dark:bg-transparent': {};
|
|
37
|
+
};
|
|
38
|
+
'&&-left .sk-form-combobox': {
|
|
39
|
+
'@apply border-r-1 border-r-divider': {};
|
|
40
|
+
'@apply focus:border-r-transparent': {};
|
|
41
|
+
};
|
|
42
|
+
'&&-right .sk-form-combobox': {
|
|
43
|
+
'@apply border-l-1 border-l-divider': {};
|
|
44
|
+
'@apply focus:border-l-transparent': {};
|
|
45
|
+
};
|
|
46
|
+
'@apply border-1': {};
|
|
47
|
+
'@apply border-input-field-outline': {};
|
|
48
|
+
'@apply hover:border-input-field-outline-hover': {};
|
|
49
|
+
'@apply placeholder:text-dark-placeholder': {};
|
|
50
|
+
'@apply bg-input-field-surface': {};
|
|
51
|
+
'&:invalid, &[aria-invalid="true"]': {
|
|
52
|
+
'@apply border-2 border-error-surface-primary': {};
|
|
53
|
+
};
|
|
54
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
55
|
+
'@apply bg-input-field-surface-disabled': {};
|
|
56
|
+
'@apply border-input-field-outline-disabled': {};
|
|
57
|
+
'@apply hover:border-input-field-outline-disabled': {};
|
|
58
|
+
'@apply text-dark-disabled': {};
|
|
59
|
+
};
|
|
60
|
+
'&:read-only': {
|
|
61
|
+
'@apply bg-input-field-surface': {};
|
|
62
|
+
'@apply border-input-field-outline-disabled': {};
|
|
63
|
+
'@apply text-dark-secondary': {};
|
|
64
|
+
'@apply placeholder:text-dark-secondary': {};
|
|
65
|
+
};
|
|
66
|
+
'@apply flex relative': {};
|
|
67
|
+
'@apply items-center': {};
|
|
68
|
+
'@apply focus-within:ring': {};
|
|
69
|
+
'@apply focus-within:ring-ring': {};
|
|
70
|
+
'@apply text-dark-secondary': {};
|
|
71
|
+
'@apply focus-within:border-input-field-surface': {};
|
|
72
|
+
'&:not(:invalid):not([aria-invalid="true"])': {
|
|
73
|
+
'@apply focus-within:border-input-field-surface': {};
|
|
74
|
+
};
|
|
75
|
+
'&&-lg': {
|
|
76
|
+
'@apply text-input-large': {};
|
|
77
|
+
'@apply rounded-button-lg': {};
|
|
78
|
+
'@apply h-48': {};
|
|
79
|
+
};
|
|
80
|
+
'&&-md': {
|
|
81
|
+
'@apply text-input-medium': {};
|
|
82
|
+
'@apply rounded-button-md': {};
|
|
83
|
+
'@apply h-40': {};
|
|
84
|
+
};
|
|
85
|
+
'&&-sm': {
|
|
86
|
+
'@apply text-input-small': {};
|
|
87
|
+
'@apply rounded-button-sm': {};
|
|
88
|
+
'@apply h-32': {};
|
|
89
|
+
};
|
|
90
|
+
'&&-left': {
|
|
91
|
+
'@apply rounded-r-0': {};
|
|
92
|
+
'@apply border-r-0': {};
|
|
93
|
+
};
|
|
94
|
+
'&&-right': {
|
|
95
|
+
'@apply rounded-l-0': {};
|
|
96
|
+
'@apply border-l-0': {};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
3
99
|
'&-addin': {
|
|
4
100
|
'@apply bg-transparent': {};
|
|
5
101
|
'@apply flex': {};
|
|
@@ -77,6 +173,9 @@ export declare const Input: () => {
|
|
|
77
173
|
'@apply text-dark-secondary': {};
|
|
78
174
|
'@apply placeholder:text-dark-secondary': {};
|
|
79
175
|
};
|
|
176
|
+
'&-wrapper': {
|
|
177
|
+
'@apply flex gap-0': {};
|
|
178
|
+
};
|
|
80
179
|
'@apply flex relative': {};
|
|
81
180
|
'@apply items-center': {};
|
|
82
181
|
'@apply focus-within:ring': {};
|
|
@@ -89,14 +188,27 @@ export declare const Input: () => {
|
|
|
89
188
|
'&&-lg': {
|
|
90
189
|
'@apply text-input-large': {};
|
|
91
190
|
'@apply rounded-button-lg': {};
|
|
191
|
+
'@apply h-48': {};
|
|
92
192
|
};
|
|
93
193
|
'&&-md': {
|
|
94
194
|
'@apply text-input-medium': {};
|
|
95
195
|
'@apply rounded-button-md': {};
|
|
196
|
+
'@apply h-40': {};
|
|
96
197
|
};
|
|
97
198
|
'&&-sm': {
|
|
98
199
|
'@apply text-input-small': {};
|
|
99
200
|
'@apply rounded-button-sm': {};
|
|
201
|
+
'@apply h-32': {};
|
|
202
|
+
};
|
|
203
|
+
'&[data-hasleftaddon="true"]': {
|
|
204
|
+
'@apply pl-0': {};
|
|
205
|
+
'@apply rounded-l-0': {};
|
|
206
|
+
'@apply border-l-0': {};
|
|
207
|
+
};
|
|
208
|
+
'&[data-hasrightaddon="true"]': {
|
|
209
|
+
'@apply pr-0': {};
|
|
210
|
+
'@apply rounded-r-0': {};
|
|
211
|
+
'@apply border-r-0': {};
|
|
100
212
|
};
|
|
101
213
|
};
|
|
102
214
|
'@apply border-1': {};
|
|
@@ -40,7 +40,7 @@ export declare const Tabs: (colors: string[]) => {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
'.sk-tabs-list-item-divider': {
|
|
43
|
-
'@apply m-0 min-h-2 h-2
|
|
43
|
+
'@apply m-0 min-h-2 h-2 opacity-0': {};
|
|
44
44
|
};
|
|
45
45
|
'&[data-current="true"]': {
|
|
46
46
|
'.sk-tabs-list-item-divider': {
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare const TextEditor: () => {
|
|
2
|
+
'.sk-texteditor': {
|
|
3
|
+
'.ql-toolbar.ql-snow': {
|
|
4
|
+
'@apply flex items-center bg-background-200 rounded-t-xl border-input-field-outline h-[4rem] pl-4': {};
|
|
5
|
+
'.ql-stroke': {
|
|
6
|
+
'@apply stroke-dark-primary': {};
|
|
7
|
+
};
|
|
8
|
+
'.ql-fill': {
|
|
9
|
+
'@apply fill-dark-primary': {};
|
|
10
|
+
};
|
|
11
|
+
'.ql-divider': {
|
|
12
|
+
'@apply w-[0.1rem] h-[3.2rem] bg-divider mr-[1.2rem]': {};
|
|
13
|
+
};
|
|
14
|
+
'.tooltip-container': {
|
|
15
|
+
'@apply absolute z-10 top-full mt-0 left-1/2 -translate-x-1/2 invisible opacity-0 transition-opacity duration-200 ease-in-out whitespace-nowrap': {};
|
|
16
|
+
};
|
|
17
|
+
'.ql-formats': {
|
|
18
|
+
'@apply flex gap-4 mr-[1.2rem]': {};
|
|
19
|
+
};
|
|
20
|
+
svg: {
|
|
21
|
+
'@apply h-[2.0rem] w-[2.0rem]': {};
|
|
22
|
+
};
|
|
23
|
+
button: {
|
|
24
|
+
'@apply h-[3.2rem] w-[3.2rem] rounded-10 text-dark-primary': {};
|
|
25
|
+
'&:hover, &:hover:focus-visible': {
|
|
26
|
+
'@apply bg-tertiary-surface-hover': {};
|
|
27
|
+
};
|
|
28
|
+
'&:focus-visible': {
|
|
29
|
+
'@apply ring-[.2rem] ring-ring ring-offset-0 outline-0 bg-background-content': {};
|
|
30
|
+
};
|
|
31
|
+
'&.ql-active': {
|
|
32
|
+
'@apply bg-tertiary-surface-hover': {};
|
|
33
|
+
'.ql-fill': {
|
|
34
|
+
'@apply fill-dark-primary': {};
|
|
35
|
+
};
|
|
36
|
+
'.ql-stroke': {
|
|
37
|
+
'@apply stroke-dark-primary': {};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
'&:hover .ql-fill, &:focus-visible .ql-fill': {
|
|
41
|
+
'@apply fill-dark-primary': {};
|
|
42
|
+
};
|
|
43
|
+
'&:hover .ql-stroke, &:focus-visible .ql-stroke': {
|
|
44
|
+
'@apply stroke-dark-primary': {};
|
|
45
|
+
};
|
|
46
|
+
'&:hover .tooltip-container, &:focus-visible .tooltip-container': {
|
|
47
|
+
'@apply visible opacity-100': {};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
'&.ql-disabled': {
|
|
51
|
+
'@apply border-input-field-outline-disabled': {};
|
|
52
|
+
'.ql-fill': {
|
|
53
|
+
'@apply fill-dark-disabled': {};
|
|
54
|
+
};
|
|
55
|
+
'.ql-stroke': {
|
|
56
|
+
'@apply stroke-dark-disabled': {};
|
|
57
|
+
};
|
|
58
|
+
button: {
|
|
59
|
+
'@apply bg-background-200 text-dark-disabled cursor-default': {};
|
|
60
|
+
'&.ql-active': {
|
|
61
|
+
'@apply bg-background-200 text-dark-disabled': {};
|
|
62
|
+
};
|
|
63
|
+
'&:hover': {
|
|
64
|
+
'@apply bg-background-200 text-dark-disabled': {};
|
|
65
|
+
};
|
|
66
|
+
'&:hover .ql-fill': {
|
|
67
|
+
'@apply fill-dark-disabled': {};
|
|
68
|
+
};
|
|
69
|
+
'&:hover .ql-stroke': {
|
|
70
|
+
'@apply stroke-dark-disabled': {};
|
|
71
|
+
};
|
|
72
|
+
'&:hover .tooltip-container': {
|
|
73
|
+
'@apply hidden opacity-0': {};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
'.ql-container.ql-snow': {
|
|
79
|
+
'@apply border-input-field-outline rounded-b-xl': {};
|
|
80
|
+
':focus-visible': {
|
|
81
|
+
'@apply ring-[.2rem] ring-ring ring-offset-0 outline-0 rounded-b-xl': {};
|
|
82
|
+
};
|
|
83
|
+
'&.disable-toolbar': {
|
|
84
|
+
'@apply rounded-t-xl': {};
|
|
85
|
+
':focus-visible': {
|
|
86
|
+
'@apply rounded-t-xl': {};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
'&.ql-disabled': {
|
|
90
|
+
'@apply bg-input-field-surface-disabled border-input-field-outline-disabled': {};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
'.ql-tooltip.ql-editing': {
|
|
94
|
+
input: {
|
|
95
|
+
'@apply rounded-0': {};
|
|
96
|
+
'&:focus-visible': {
|
|
97
|
+
'@apply rounded-0': {};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
'.ql-snow .ql-tooltip.ql-editing a.ql-action::after': {
|
|
102
|
+
content: string;
|
|
103
|
+
};
|
|
104
|
+
'.ql-snow .ql-tooltip[data-mode=link]::before': {
|
|
105
|
+
content: string;
|
|
106
|
+
};
|
|
107
|
+
'.ql-snow .ql-tooltip::before': {
|
|
108
|
+
content: string;
|
|
109
|
+
};
|
|
110
|
+
'.ql-snow .ql-tooltip a.ql-action::after': {
|
|
111
|
+
content: string;
|
|
112
|
+
};
|
|
113
|
+
'.ql-snow .ql-tooltip a.ql-remove::before': {
|
|
114
|
+
content: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sk-web-gui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"build:types": "tsc -p ./tsconfig.production.json --emitDeclarationOnly --declaration --declarationDir dist/types"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"autoprefixer": "^10.4.
|
|
32
|
+
"autoprefixer": "^10.4.21",
|
|
33
33
|
"clean-css": "^5.3.3",
|
|
34
|
-
"postcss": "^8.5.
|
|
35
|
-
"postcss-import": "^16.1.
|
|
34
|
+
"postcss": "^8.5.6",
|
|
35
|
+
"postcss-import": "^16.1.1"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@sk-web-gui/theme": "2.5.
|
|
38
|
+
"@sk-web-gui/theme": "2.5.1",
|
|
39
39
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
40
40
|
"@tailwindcss/forms": "^0.5.10",
|
|
41
41
|
"mini-svg-data-uri": "^1.4.4",
|
|
42
42
|
"tailwindcss": "^3.4.17"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5891de69eb0ff49b5fa51720c5b0f81b467b7666"
|
|
45
45
|
}
|