@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/cjs/aria-plugin.js
CHANGED
|
@@ -14,8 +14,7 @@ function _interop_require_default(obj) {
|
|
|
14
14
|
default: obj
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
const AriaAttributes = (0, _plugin.default)(function(
|
|
18
|
-
let { addVariant } = param;
|
|
17
|
+
const AriaAttributes = (0, _plugin.default)(function({ addVariant }) {
|
|
19
18
|
const attributes = {
|
|
20
19
|
checked: [
|
|
21
20
|
'true',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/aria-plugin.ts"],"sourcesContent":["import TailwindPlugin from 'tailwindcss/plugin';\r\n\r\nexport const AriaAttributes = TailwindPlugin(function ({ addVariant }) {\r\n const attributes: Record<string, Array<string>> = {\r\n checked: ['true', 'false', 'mixed'],\r\n disabled: ['true', 'false'],\r\n expanded: ['true', 'false'],\r\n hidden: ['true', 'false'],\r\n orientation: ['horizontal', 'vertical'],\r\n readonly: ['true', 'false'],\r\n required: ['true', 'false'],\r\n selected: ['true', 'false'],\r\n sort: ['none', 'ascending', 'descending', 'other'],\r\n };\r\n\r\n Object.keys(attributes).forEach((key) => {\r\n attributes[key].forEach((element) => {\r\n let selector = `aria-${key}-${element}`;\r\n if (element == 'true') {\r\n selector = `aria-${key}`;\r\n } else if (element == 'false') {\r\n selector = `aria-!${key}`;\r\n }\r\n addVariant(selector, `&[aria-${key}=\"${element}\"]`);\r\n });\r\n });\r\n\r\n const specialAttributes: Record<string, Array<string>> = {\r\n haspopup: ['menu', 'listbox', 'tree', 'grid', 'dialog', 'true'],\r\n current: ['true', 'page', 'step', 'location', 'date', 'time'],\r\n };\r\n\r\n Object.keys(specialAttributes).forEach((key) => {\r\n const elements = specialAttributes[key];\r\n const selector = `aria-${key}`;\r\n addVariant(\r\n selector,\r\n elements.map((element) => `&[aria-${key}=\"${element}\"]`)\r\n );\r\n });\r\n\r\n Object.keys(specialAttributes).forEach((key) => {\r\n const selector = `aria-!${key}`;\r\n addVariant(selector, `&[aria-${key}=\"${false}\"]`);\r\n });\r\n});\r\n"],"names":["AriaAttributes","TailwindPlugin","addVariant","attributes","checked","disabled","expanded","hidden","orientation","readonly","required","selected","sort","Object","keys","forEach","key","element","selector","specialAttributes","haspopup","current","elements","map"],"mappings":";;;;+BAEaA;;;eAAAA;;;+DAFc;;;;;;AAEpB,MAAMA,iBAAiBC,IAAAA,eAAc,EAAC,SAAU,
|
|
1
|
+
{"version":3,"sources":["../../src/aria-plugin.ts"],"sourcesContent":["import TailwindPlugin from 'tailwindcss/plugin';\r\n\r\nexport const AriaAttributes = TailwindPlugin(function ({ addVariant }) {\r\n const attributes: Record<string, Array<string>> = {\r\n checked: ['true', 'false', 'mixed'],\r\n disabled: ['true', 'false'],\r\n expanded: ['true', 'false'],\r\n hidden: ['true', 'false'],\r\n orientation: ['horizontal', 'vertical'],\r\n readonly: ['true', 'false'],\r\n required: ['true', 'false'],\r\n selected: ['true', 'false'],\r\n sort: ['none', 'ascending', 'descending', 'other'],\r\n };\r\n\r\n Object.keys(attributes).forEach((key) => {\r\n attributes[key].forEach((element) => {\r\n let selector = `aria-${key}-${element}`;\r\n if (element == 'true') {\r\n selector = `aria-${key}`;\r\n } else if (element == 'false') {\r\n selector = `aria-!${key}`;\r\n }\r\n addVariant(selector, `&[aria-${key}=\"${element}\"]`);\r\n });\r\n });\r\n\r\n const specialAttributes: Record<string, Array<string>> = {\r\n haspopup: ['menu', 'listbox', 'tree', 'grid', 'dialog', 'true'],\r\n current: ['true', 'page', 'step', 'location', 'date', 'time'],\r\n };\r\n\r\n Object.keys(specialAttributes).forEach((key) => {\r\n const elements = specialAttributes[key];\r\n const selector = `aria-${key}`;\r\n addVariant(\r\n selector,\r\n elements.map((element) => `&[aria-${key}=\"${element}\"]`)\r\n );\r\n });\r\n\r\n Object.keys(specialAttributes).forEach((key) => {\r\n const selector = `aria-!${key}`;\r\n addVariant(selector, `&[aria-${key}=\"${false}\"]`);\r\n });\r\n});\r\n"],"names":["AriaAttributes","TailwindPlugin","addVariant","attributes","checked","disabled","expanded","hidden","orientation","readonly","required","selected","sort","Object","keys","forEach","key","element","selector","specialAttributes","haspopup","current","elements","map"],"mappings":";;;;+BAEaA;;;eAAAA;;;+DAFc;;;;;;AAEpB,MAAMA,iBAAiBC,IAAAA,eAAc,EAAC,SAAU,EAAEC,UAAU,EAAE;IACnE,MAAMC,aAA4C;QAChDC,SAAS;YAAC;YAAQ;YAAS;SAAQ;QACnCC,UAAU;YAAC;YAAQ;SAAQ;QAC3BC,UAAU;YAAC;YAAQ;SAAQ;QAC3BC,QAAQ;YAAC;YAAQ;SAAQ;QACzBC,aAAa;YAAC;YAAc;SAAW;QACvCC,UAAU;YAAC;YAAQ;SAAQ;QAC3BC,UAAU;YAAC;YAAQ;SAAQ;QAC3BC,UAAU;YAAC;YAAQ;SAAQ;QAC3BC,MAAM;YAAC;YAAQ;YAAa;YAAc;SAAQ;IACpD;IAEAC,OAAOC,IAAI,CAACX,YAAYY,OAAO,CAAC,CAACC;QAC/Bb,UAAU,CAACa,IAAI,CAACD,OAAO,CAAC,CAACE;YACvB,IAAIC,WAAW,CAAC,KAAK,EAAEF,IAAI,CAAC,EAAEC,SAAS;YACvC,IAAIA,WAAW,QAAQ;gBACrBC,WAAW,CAAC,KAAK,EAAEF,KAAK;YAC1B,OAAO,IAAIC,WAAW,SAAS;gBAC7BC,WAAW,CAAC,MAAM,EAAEF,KAAK;YAC3B;YACAd,WAAWgB,UAAU,CAAC,OAAO,EAAEF,IAAI,EAAE,EAAEC,QAAQ,EAAE,CAAC;QACpD;IACF;IAEA,MAAME,oBAAmD;QACvDC,UAAU;YAAC;YAAQ;YAAW;YAAQ;YAAQ;YAAU;SAAO;QAC/DC,SAAS;YAAC;YAAQ;YAAQ;YAAQ;YAAY;YAAQ;SAAO;IAC/D;IAEAR,OAAOC,IAAI,CAACK,mBAAmBJ,OAAO,CAAC,CAACC;QACtC,MAAMM,WAAWH,iBAAiB,CAACH,IAAI;QACvC,MAAME,WAAW,CAAC,KAAK,EAAEF,KAAK;QAC9Bd,WACEgB,UACAI,SAASC,GAAG,CAAC,CAACN,UAAY,CAAC,OAAO,EAAED,IAAI,EAAE,EAAEC,QAAQ,EAAE,CAAC;IAE3D;IAEAJ,OAAOC,IAAI,CAACK,mBAAmBJ,OAAO,CAAC,CAACC;QACtC,MAAME,WAAW,CAAC,MAAM,EAAEF,KAAK;QAC/Bd,WAAWgB,UAAU,CAAC,OAAO,EAAEF,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC;IAClD;AACF"}
|
|
@@ -69,7 +69,7 @@ const Accordion = ()=>({
|
|
|
69
69
|
'.sk-disclosure-toggle': {
|
|
70
70
|
'@apply gap-12': {},
|
|
71
71
|
'.sk-icon': {
|
|
72
|
-
'@apply w-20 h-20': {}
|
|
72
|
+
'@apply w-20 min-h-20': {}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
'.sk-disclosure-support': {
|
|
@@ -78,7 +78,7 @@ const Accordion = ()=>({
|
|
|
78
78
|
'&[data-variant="default"]': {
|
|
79
79
|
'.sk-disclosure-toggle': {
|
|
80
80
|
'@apply py-4': {},
|
|
81
|
-
'@apply h-40': {}
|
|
81
|
+
'@apply min-h-40': {}
|
|
82
82
|
},
|
|
83
83
|
'.sk-disclosure-header-icon': {
|
|
84
84
|
'@apply w-32 h-32': {}
|
|
@@ -96,7 +96,7 @@ const Accordion = ()=>({
|
|
|
96
96
|
'.sk-disclosure-toggle': {
|
|
97
97
|
'@apply gap-12': {},
|
|
98
98
|
'.sk-icon': {
|
|
99
|
-
'@apply w-24 h-24': {}
|
|
99
|
+
'@apply w-24 min-h-24': {}
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
'.sk-disclosure-support': {
|
|
@@ -105,7 +105,7 @@ const Accordion = ()=>({
|
|
|
105
105
|
'&[data-variant="default"]': {
|
|
106
106
|
'.sk-disclosure-toggle': {
|
|
107
107
|
'@apply py-8': {},
|
|
108
|
-
'@apply h-56': {}
|
|
108
|
+
'@apply min-h-56': {}
|
|
109
109
|
},
|
|
110
110
|
'.sk-disclosure-header-icon': {
|
|
111
111
|
'@apply w-40 h-40': {}
|
|
@@ -126,21 +126,28 @@ const Accordion = ()=>({
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
'&-body': {
|
|
129
|
+
'&[data-size="sm"]': {
|
|
130
|
+
'@apply pr-12': {}
|
|
131
|
+
},
|
|
132
|
+
'&[data-size="md"]': {
|
|
133
|
+
'@apply pr-12': {}
|
|
134
|
+
},
|
|
135
|
+
'&[data-size="lg"]': {
|
|
136
|
+
'@apply pr-16': {}
|
|
137
|
+
},
|
|
129
138
|
'@apply text-base': {},
|
|
130
139
|
'@apply flex flex-col': {},
|
|
131
140
|
'@apply mb-32': {},
|
|
132
141
|
'@apply mr-32': {},
|
|
133
142
|
'@apply gap-8': {},
|
|
134
143
|
'@apply py-0': {},
|
|
135
|
-
'
|
|
136
|
-
transitionProperty: 'visibility, height, padding, margin',
|
|
137
|
-
transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
144
|
+
transitionProperty: 'visibility, height, opacity, padding, margin',
|
|
138
145
|
transitionDuration: '180ms',
|
|
139
146
|
'&[aria-hidden="true"], &[data-hidden="true"]': {
|
|
140
|
-
'@apply my-0 invisible h-0': {}
|
|
147
|
+
'@apply my-0 invisible max-h-0 opacity-0': {}
|
|
141
148
|
},
|
|
142
149
|
'&[aria-hidden="false"], &[data-hidden="false"]': {
|
|
143
|
-
'@apply block h-
|
|
150
|
+
'@apply block max-h-screen opacity-100 visible': {}
|
|
144
151
|
},
|
|
145
152
|
'&[data-variant="alt"]': {
|
|
146
153
|
'@apply mt-24': {},
|
|
@@ -165,11 +172,6 @@ const Accordion = ()=>({
|
|
|
165
172
|
}
|
|
166
173
|
}
|
|
167
174
|
}
|
|
168
|
-
},
|
|
169
|
-
'&-is-open': {
|
|
170
|
-
'.sk-disclosure-body': {
|
|
171
|
-
'@apply overflow-visible animate-reset-overflow': {}
|
|
172
|
-
}
|
|
173
175
|
}
|
|
174
176
|
},
|
|
175
177
|
'.sk-accordion': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/accordion.ts"],"sourcesContent":["export const Accordion = () => ({\r\n '.sk-disclosure': {\r\n '&-icon': {\r\n '@apply flex self-center': {},\r\n },\r\n '&-header': {\r\n '@apply mt-6 mb-8': {},\r\n '@apply flex flex-col text-left': {},\r\n '@apply cursor-pointer': {},\r\n '*': {\r\n '@apply cursor-pointer': {},\r\n },\r\n '&:focus-visible': {\r\n '@apply outline-0': {},\r\n },\r\n\r\n '&-icon': {\r\n '@apply ml-auto': {},\r\n '@apply text-dark-secondary': {},\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&[data-disabled=\"true\"]': {\r\n '@apply text-dark-disabled': {},\r\n '.sk-disclosure-title': {\r\n '@apply text-dark-disabled': {},\r\n },\r\n '@apply cursor-default': {},\r\n '*': {\r\n '@apply cursor-default': {},\r\n },\r\n },\r\n },\r\n '&-label': {\r\n '@apply shrink-0': {},\r\n },\r\n '&-toggle': {\r\n '@apply flex items-center justify-between': {},\r\n '@apply gap-16': {},\r\n '.sk-icon': {\r\n '@apply w-32 h-32': {},\r\n },\r\n },\r\n '&-title': {\r\n '@apply text-dark-primary': {},\r\n '&-wrapper': {\r\n '@apply w-full': {},\r\n '@apply flex flex-row': {},\r\n '@apply items-center': {},\r\n },\r\n },\r\n\r\n '&-sm': {\r\n '.sk-disclosure-title': {\r\n '@apply text-h4-sm font-bold': {},\r\n '&-wrapper': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '.sk-disclosure-toggle': {\r\n '@apply gap-12': {},\r\n '.sk-icon': {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '.sk-disclosure-support': {\r\n '@apply text-small': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '.sk-disclosure-toggle': {\r\n '@apply py-4': {},\r\n '@apply h-40': {},\r\n },\r\n '.sk-disclosure-header-icon': {\r\n '@apply w-32 h-32': {},\r\n },\r\n },\r\n '&[data-variant=\"alt\"]': {},\r\n },\r\n '&-md': {\r\n '.sk-disclosure-title': {\r\n '@apply text-h4-md font-bold': {},\r\n '&-wrapper': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '.sk-disclosure-toggle': {\r\n '@apply gap-12': {},\r\n '.sk-icon': {\r\n '@apply w-24 h-24': {},\r\n },\r\n },\r\n '.sk-disclosure-support': {\r\n '@apply text-body': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '.sk-disclosure-toggle': {\r\n '@apply py-8': {},\r\n '@apply h-56': {},\r\n },\r\n '.sk-disclosure-header-icon': {\r\n '@apply w-40 h-40': {},\r\n },\r\n },\r\n },\r\n '&-lg': {\r\n '&[data-variant=\"alt\"]': {\r\n '.sk-disclosure-support': {\r\n '@apply text-large': {},\r\n },\r\n '.sk-disclosure-title': {\r\n '@apply text-h3-md font-bold': {},\r\n '&-wrapper': {\r\n '@apply gap-16': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&-body': {\r\n '@apply
|
|
1
|
+
{"version":3,"sources":["../../../src/components/accordion.ts"],"sourcesContent":["export const Accordion = () => ({\r\n '.sk-disclosure': {\r\n '&-icon': {\r\n '@apply flex self-center': {},\r\n },\r\n '&-header': {\r\n '@apply mt-6 mb-8': {},\r\n '@apply flex flex-col text-left': {},\r\n '@apply cursor-pointer': {},\r\n '*': {\r\n '@apply cursor-pointer': {},\r\n },\r\n '&:focus-visible': {\r\n '@apply outline-0': {},\r\n },\r\n\r\n '&-icon': {\r\n '@apply ml-auto': {},\r\n '@apply text-dark-secondary': {},\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&[data-disabled=\"true\"]': {\r\n '@apply text-dark-disabled': {},\r\n '.sk-disclosure-title': {\r\n '@apply text-dark-disabled': {},\r\n },\r\n '@apply cursor-default': {},\r\n '*': {\r\n '@apply cursor-default': {},\r\n },\r\n },\r\n },\r\n '&-label': {\r\n '@apply shrink-0': {},\r\n },\r\n '&-toggle': {\r\n '@apply flex items-center justify-between': {},\r\n '@apply gap-16': {},\r\n '.sk-icon': {\r\n '@apply w-32 h-32': {},\r\n },\r\n },\r\n '&-title': {\r\n '@apply text-dark-primary': {},\r\n '&-wrapper': {\r\n '@apply w-full': {},\r\n '@apply flex flex-row': {},\r\n '@apply items-center': {},\r\n },\r\n },\r\n\r\n '&-sm': {\r\n '.sk-disclosure-title': {\r\n '@apply text-h4-sm font-bold': {},\r\n '&-wrapper': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '.sk-disclosure-toggle': {\r\n '@apply gap-12': {},\r\n '.sk-icon': {\r\n '@apply w-20 min-h-20': {},\r\n },\r\n },\r\n '.sk-disclosure-support': {\r\n '@apply text-small': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '.sk-disclosure-toggle': {\r\n '@apply py-4': {},\r\n '@apply min-h-40': {},\r\n },\r\n '.sk-disclosure-header-icon': {\r\n '@apply w-32 h-32': {},\r\n },\r\n },\r\n '&[data-variant=\"alt\"]': {},\r\n },\r\n '&-md': {\r\n '.sk-disclosure-title': {\r\n '@apply text-h4-md font-bold': {},\r\n '&-wrapper': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '.sk-disclosure-toggle': {\r\n '@apply gap-12': {},\r\n '.sk-icon': {\r\n '@apply w-24 min-h-24': {},\r\n },\r\n },\r\n '.sk-disclosure-support': {\r\n '@apply text-body': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '.sk-disclosure-toggle': {\r\n '@apply py-8': {},\r\n '@apply min-h-56': {},\r\n },\r\n '.sk-disclosure-header-icon': {\r\n '@apply w-40 h-40': {},\r\n },\r\n },\r\n },\r\n '&-lg': {\r\n '&[data-variant=\"alt\"]': {\r\n '.sk-disclosure-support': {\r\n '@apply text-large': {},\r\n },\r\n '.sk-disclosure-title': {\r\n '@apply text-h3-md font-bold': {},\r\n '&-wrapper': {\r\n '@apply gap-16': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&-body': {\r\n '&[data-size=\"sm\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply pr-16': {},\r\n },\r\n '@apply text-base': {},\r\n '@apply flex flex-col': {},\r\n '@apply mb-32': {},\r\n '@apply mr-32': {},\r\n '@apply gap-8': {},\r\n '@apply py-0': {},\r\n transitionProperty: 'visibility, height, opacity, padding, margin',\r\n\r\n transitionDuration: '180ms',\r\n\r\n '&[aria-hidden=\"true\"], &[data-hidden=\"true\"]': {\r\n '@apply my-0 invisible max-h-0 opacity-0': {},\r\n },\r\n\r\n '&[aria-hidden=\"false\"], &[data-hidden=\"false\"]': {\r\n '@apply block max-h-screen opacity-100 visible': {},\r\n },\r\n\r\n '&[data-variant=\"alt\"]': {\r\n '@apply mt-24': {},\r\n '&[data-size=\"sm\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply pr-16': {},\r\n },\r\n '&[data-has-icon=\"true\"]': {\r\n '&[data-size=\"sm\"]': {\r\n '@apply ml-32': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply ml-36': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply ml-48': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n '.sk-accordion': {\r\n '&-item': {\r\n '.sk-disclosure': {\r\n transitionProperty: 'margin',\r\n transitionDuration: '180ms',\r\n '@apply border-b-1 border-divider': {},\r\n },\r\n\r\n '&:last-child .sk-disclosure': {\r\n '@apply border-b-transparent': {},\r\n },\r\n },\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '&.sk-disclosure': {\r\n '&-icon': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n\r\n '&[data-disabled=\"true\"]': {\r\n '@apply text-inverted-dark-disabled': {},\r\n '.sk-disclosure-title': {\r\n '@apply text-inverted-dark-disabled': {},\r\n },\r\n },\r\n\r\n '&-title': {\r\n '@apply text-inverted-dark-primary': {},\r\n },\r\n },\r\n '&.sk-accordion': {\r\n '&-item': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Accordion","svg","transitionProperty","transitionDuration"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,YAAY,IAAO,CAAA;QAC9B,kBAAkB;YAChB,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YACA,YAAY;gBACV,oBAAoB,CAAC;gBACrB,kCAAkC,CAAC;gBACnC,yBAAyB,CAAC;gBAC1B,KAAK;oBACH,yBAAyB,CAAC;gBAC5B;gBACA,mBAAmB;oBACjB,oBAAoB,CAAC;gBACvB;gBAEA,UAAU;oBACR,kBAAkB,CAAC;oBACnB,8BAA8B,CAAC;oBAC/BC,KAAK;wBACH,oBAAoB,CAAC;oBACvB;gBACF;gBACA,2BAA2B;oBACzB,6BAA6B,CAAC;oBAC9B,wBAAwB;wBACtB,6BAA6B,CAAC;oBAChC;oBACA,yBAAyB,CAAC;oBAC1B,KAAK;wBACH,yBAAy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,CAAC;gBACnB;gBACA,qBAAqB;oBACnB,gBAAgB,CAAC;gBACnB;gBACA,qBAAqB;oBACnB,gBAAgB,CAAC;gBACnB;gBACA,oBAAoB,CAAC;gBACrB,wBAAwB,CAAC;gBACzB,gBAAgB,CAAC;gBACjB,gBAAgB,CAAC;gBACjB,gBAAgB,CAAC;gBACjB,eAAe,CAAC;gBAChBC,oBAAoB;gBAEpBC,oBAAoB;gBAEpB,gDAAgD;oBAC9C,2CAA2C,CAAC;gBAC9C;gBAEA,kDAAkD;oBAChD,iDAAiD,CAAC;gBACpD;gBAEA,yBAAyB;oBACvB,gBAAgB,CAAC;oBACjB,qBAAqB;wBACnB,gBAAgB,CAAC;oBACnB;oBACA,qBAAqB;wBACnB,gBAAgB,CAAC;oBACnB;oBACA,qBAAqB;wBACnB,gBAAgB,CAAC;oBACnB;oBACA,2BAA2B;wBACzB,qBAAqB;4BACnB,gBAAgB,CAAC;wBACnB;wBACA,qBAAqB;4BACnB,gBAAgB,CAAC;wBACnB;wBACA,qBAAqB;4BACnB,gBAAgB,CAAC;wBACnB;oBACF;gBACF;YACF;QACF;QACA,iBAAiB;YACf,UAAU;gBACR,kBAAkB;oBAChBD,oBAAoB;oBACpBC,oBAAoB;oBACpB,oCAAoC,CAAC;gBACvC;gBAEA,+BAA+B;oBAC7B,+BAA+B,CAAC;gBAClC;YACF;QACF;QAEA,2BAA2B;YACzB,mBAAmB;gBACjB,UAAU;oBACR,uCAAuC,CAAC;gBAC1C;gBAEA,2BAA2B;oBACzB,sCAAsC,CAAC;oBACvC,wBAAwB;wBACtB,sCAAsC,CAAC;oBACzC;gBACF;gBAEA,WAAW;oBACT,qCAAqC,CAAC;gBACxC;YACF;YACA,kBAAkB;gBAChB,UAAU;oBACR,kCAAkC,CAAC;gBACrC;YACF;QACF;IACF,CAAA"}
|
|
@@ -15,9 +15,16 @@ const Badge = (colors)=>({
|
|
|
15
15
|
'@apply text-light-primary': {},
|
|
16
16
|
'@apply rounded-utility': {},
|
|
17
17
|
'@apply overflow-hidden': {},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
'&[data-size="sm"]': {
|
|
19
|
+
'@apply h-22 min-w-22': {},
|
|
20
|
+
'@apply p-4': {},
|
|
21
|
+
'@apply text-label-extra-small': {}
|
|
22
|
+
},
|
|
23
|
+
'&[data-size="md"]': {
|
|
24
|
+
'@apply h-24 min-w-24': {},
|
|
25
|
+
'@apply p-4': {},
|
|
26
|
+
'@apply text-label-small': {}
|
|
27
|
+
},
|
|
21
28
|
'&[data-rounded="true"]': {
|
|
22
29
|
'@apply rounded-circular': {}
|
|
23
30
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/badge.ts"],"sourcesContent":["export const Badge = (colors: string[]) => ({\r\n '.sk-badge': {\r\n '@apply inline-flex': {},\r\n '@apply justify-center items-center': {},\r\n '@apply text-light-primary': {},\r\n '@apply rounded-utility': {},\r\n '@apply overflow-hidden': {},\r\n\r\n
|
|
1
|
+
{"version":3,"sources":["../../../src/components/badge.ts"],"sourcesContent":["export const Badge = (colors: string[]) => ({\r\n '.sk-badge': {\r\n '@apply inline-flex': {},\r\n '@apply justify-center items-center': {},\r\n '@apply text-light-primary': {},\r\n '@apply rounded-utility': {},\r\n '@apply overflow-hidden': {},\r\n\r\n '&[data-size=\"sm\"]': {\r\n '@apply h-22 min-w-22': {},\r\n '@apply p-4': {},\r\n '@apply text-label-extra-small': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply h-24 min-w-24': {},\r\n '@apply p-4': {},\r\n '@apply text-label-small': {},\r\n },\r\n\r\n '&[data-rounded=\"true\"]': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '@apply bg-primary-surface': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Badge","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,QAAQ,CAACC,SAAsB,CAAA;QAC1C,aAAa;YACX,sBAAsB,CAAC;YACvB,sCAAsC,CAAC;YACvC,6BAA6B,CAAC;YAC9B,0BAA0B,CAAC;YAC3B,0BAA0B,CAAC;YAE3B,qBAAqB;gBACnB,wBAAwB,CAAC;gBACzB,cAAc,CAAC;gBACf,iCAAiC,CAAC;YACpC;YACA,qBAAqB;gBACnB,wBAAwB,CAAC;gBACzB,cAAc,CAAC;gBACf,2BAA2B,CAAC;YAC9B;YAEA,0BAA0B;gBACxB,2BAA2B,CAAC;YAC9B;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,CAAC,CAAC,UAAU,EAAEA,MAAM,uBAAuB,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBAEvE,2BAA2B;4BACzB,sCAAsC,CAAC;4BACvC,CAAC,CAAC,mBAAmB,EAAEA,MAAM,+BAA+B,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBAC1F;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,6BAA6B,CAAC;gBAE9B,2BAA2B;oBACzB,sCAAsC,CAAC;oBACvC,+DAA+D,CAAC;gBAClE;YACF;QACF;IACF,CAAA"}
|
|
@@ -217,6 +217,15 @@ const Card = (colors)=>({
|
|
|
217
217
|
'@apply no-underline hover:no-underline': {},
|
|
218
218
|
'@apply flex bg-vattjom-surface-accent': {},
|
|
219
219
|
'@apply p-14 rounded-groups': {},
|
|
220
|
+
'&.sk-meta-card-use-hover-effect:hover': {
|
|
221
|
+
'@apply cursor-pointer': {}
|
|
222
|
+
},
|
|
223
|
+
'&.sk-meta-card-use-hover-effect[data-color="vattjom"]:hover': {
|
|
224
|
+
'@apply bg-vattjom-background-300': {}
|
|
225
|
+
},
|
|
226
|
+
'&.sk-meta-card-use-hover-effect[data-color="mono"]:hover': {
|
|
227
|
+
'@apply bg-primitives-overlay-darken-2 dark:bg-primitives-overlay-lighten-2': {}
|
|
228
|
+
},
|
|
220
229
|
'&[data-color="mono"]': {
|
|
221
230
|
'@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {}
|
|
222
231
|
},
|
|
@@ -235,21 +244,46 @@ const Card = (colors)=>({
|
|
|
235
244
|
'&-body': {
|
|
236
245
|
'&-header': {
|
|
237
246
|
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
238
|
-
'@apply mt-6
|
|
247
|
+
'@apply mt-6 line-clamp-1': {},
|
|
239
248
|
'@apply text-dark-primary': {}
|
|
240
249
|
}
|
|
241
250
|
},
|
|
242
251
|
'&-content': {
|
|
243
252
|
'p, a': {
|
|
244
|
-
'@apply text-primitives-gray-700 dark:text-primitives-gray-200
|
|
253
|
+
'@apply text-primitives-gray-700 dark:text-primitives-gray-200': {},
|
|
245
254
|
'@apply text-dark-secondary line-clamp-1': {}
|
|
246
255
|
}
|
|
247
256
|
}
|
|
248
257
|
},
|
|
249
258
|
'&-external-link-icon': {
|
|
250
|
-
'@apply ml-auto h-32 w-32': {}
|
|
251
|
-
'@apply p-6 text-dark': {}
|
|
259
|
+
'@apply ml-auto h-32 w-32 p-6 text-dark shrink-0': {}
|
|
252
260
|
}
|
|
261
|
+
},
|
|
262
|
+
'.sk-meta-card[data-size="sm"]': {
|
|
263
|
+
'@apply h-[8.6rem]': {}
|
|
264
|
+
},
|
|
265
|
+
'.sk-meta-card[data-size="md"]': {
|
|
266
|
+
'@apply h-[9.4rem]': {}
|
|
267
|
+
},
|
|
268
|
+
'.sk-meta-card[data-size="sm"] .sk-meta-card-body-header': {
|
|
269
|
+
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
270
|
+
fontSize: '1.6rem ',
|
|
271
|
+
lineHeight: '2.4rem ',
|
|
272
|
+
fontWeight: 'bold '
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
'.sk-meta-card[data-size="sm"] .sk-meta-card-body-content': {
|
|
276
|
+
'@apply text-[1.4rem]': {}
|
|
277
|
+
},
|
|
278
|
+
'.sk-meta-card[data-size="md"] .sk-meta-card-body-header': {
|
|
279
|
+
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
280
|
+
fontSize: '1.8rem',
|
|
281
|
+
lineHeight: '2.6rem',
|
|
282
|
+
fontWeight: 'bold'
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
'.sk-meta-card[data-size="md"] .sk-meta-card-body-content': {
|
|
286
|
+
'@apply text-[1.6rem]': {}
|
|
253
287
|
}
|
|
254
288
|
});
|
|
255
289
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/card.ts"],"sourcesContent":["export const Card = (colors: string[]) => ({\r\n '.sk-card': {\r\n '@apply text-base': {},\r\n '@apply bg-white relative rounded-b-cards rounded-cards': {},\r\n '@apply flex flex-col': {},\r\n '@apply no-underline hover:no-underline': {},\r\n '@apply h-full': {},\r\n\r\n '&-wrapper': {\r\n '@apply grid': {},\r\n },\r\n\r\n '&-image': {\r\n '@apply object-cover grow': {},\r\n '@apply rounded-t-cards': {},\r\n },\r\n\r\n '&-body': {\r\n '@apply px-24 pb-24 pt-16 rounded-b-cards': {},\r\n '@apply shrink': {},\r\n\r\n '&-wrapper': {\r\n '@apply flex': {},\r\n },\r\n\r\n '&-meta': {\r\n '@apply flex space-x-12 mt-16 text-base': {},\r\n span: {\r\n '@apply flex space-x-4 items-center': {},\r\n time: {\r\n '@apply h-24': {},\r\n },\r\n },\r\n\r\n '&.sk-card-image': {\r\n '@apply min-h-[12.5em] max-h-[20em]': {},\r\n },\r\n },\r\n\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n '@apply line-clamp-1 text-h3-md text-dark-primary mt-16': {},\r\n },\r\n span: {\r\n '@apply pl-12': {},\r\n },\r\n },\r\n\r\n '&-content': {\r\n '@apply w-full': {},\r\n 'p, a': {\r\n '@apply line-clamp-3 m-0 pt-8 text-base text-body': {},\r\n },\r\n },\r\n\r\n '&-icon': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n\r\n '&[data-color=\"mono\"], &[data-color=\"tertiary\"]': {\r\n '@apply border-solid border-1': {},\r\n '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},\r\n '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},\r\n\r\n '.sk-card-body-meta': {\r\n '@apply text-dark-secondary': {},\r\n },\r\n\r\n '.sk-card-body-icon': {\r\n '@apply bg-primitives-overlay-darken-9 dark:bg-primitives-overlay-lighten-10': {},\r\n '@apply text-primitives-gray-lightest dark:text-primitives-overlay-darken-9': {},\r\n '@apply hover:bg-primitives-overlay-darken-10 dark:hover:bg-primitives-gray-lightest': {},\r\n },\r\n\r\n // inverted.\r\n [`&[data-inverted=\"true\"]`]: {\r\n '@apply bg-primitives-gray-800': {},\r\n\r\n '.sk-card-body': {\r\n // Meta\r\n '&-meta': {\r\n span: {\r\n '@apply text-light-secondary': {},\r\n },\r\n },\r\n\r\n // header\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n [`@apply text-light-primary`]: {},\r\n },\r\n },\r\n\r\n // Content\r\n '&-content': {\r\n 'p, a': {\r\n [`@apply text-light-secondary`]: {},\r\n },\r\n },\r\n\r\n '.sk-card-body-icon': {\r\n '@apply bg-primitives-overlay-lighten-10 text-primitives-gray-900': {},\r\n '@apply hover:bg-primitives-gray-lightest': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&[data-color=\"tertiary\"]': {\r\n '@apply border-solid border-1': {},\r\n '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},\r\n '@apply bg-primitives-gray-50 dark:bg-primitives-gray-700': {},\r\n },\r\n\r\n [`&[data-color=\"${color}\"]`]: {\r\n // card\r\n [`@apply bg-${color}-surface-primary-hover`]: {},\r\n\r\n // clickable\r\n '&.sk-card-use-hover-effect': {\r\n // hover\r\n [`@apply hover:cursor-pointer hover:bg-${color}-surface-primary`]: {},\r\n },\r\n\r\n // Meta\r\n '.sk-card-body': {\r\n '&-meta': {\r\n span: {\r\n '@apply text-light-secondary': {},\r\n },\r\n },\r\n\r\n // header\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n [`@apply text-light-primary`]: {},\r\n },\r\n },\r\n\r\n // Content\r\n '&-content': {\r\n 'p, a': {\r\n [`@apply text-light-secondary`]: {},\r\n },\r\n },\r\n },\r\n\r\n // inverted.\r\n [`&[data-inverted=\"true\"]`]: {\r\n // card\r\n [`@apply bg-${color}-surface-accent-hover`]: {},\r\n\r\n // clickable\r\n '&.sk-card-use-hover-effect': {\r\n // hover\r\n [`@apply hover:cursor-pointer hover:bg-${color}-surface-accent`]: {},\r\n },\r\n\r\n '.sk-card-body': {\r\n // Meta\r\n '&-meta': {\r\n span: {\r\n '@apply text-dark-secondary': {},\r\n },\r\n },\r\n\r\n // header\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n [`@apply text-dark-primary`]: {},\r\n },\r\n },\r\n\r\n // Content\r\n '&-content': {\r\n 'p, a': {\r\n [`@apply text-dark-secondary`]: {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n // clickable\r\n '&.sk-card-use-hover-effect': {\r\n //Hide and show of icon\r\n '.sk-card-body-icon': {\r\n '@apply inline-flex': {},\r\n '@apply mt-auto mb-auto mr-24': {},\r\n },\r\n },\r\n\r\n [`&[data-layout=\"horizontal\"]`]: {\r\n '@apply flex-row h-full': {},\r\n\r\n '.sk-card': {\r\n '&-image': {\r\n '@apply h-full w-[8em]': {},\r\n '@apply float-left': {},\r\n '@apply rounded-none rounded-l-cards grow-0': {},\r\n },\r\n\r\n '&-body': {\r\n '@apply w-full': {},\r\n '@apply border-none': {},\r\n\r\n '&-wrapper': {\r\n '@apply w-full': {},\r\n },\r\n\r\n '&-content': {\r\n 'p, a': {\r\n '@apply text-small': {},\r\n },\r\n },\r\n\r\n '&-meta': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n\r\n '.sk-card-link': {\r\n '@apply hover:cursor-pointer': {},\r\n\r\n '&::after': {\r\n content: \"''\",\r\n position: 'absolute',\r\n left: '0',\r\n top: '0',\r\n right: '0',\r\n bottom: '0',\r\n },\r\n },\r\n\r\n /**\r\n * Meta card\r\n */\r\n '.sk-meta-card': {\r\n '@apply no-underline hover:no-underline': {},\r\n '@apply flex bg-vattjom-surface-accent': {},\r\n '@apply p-14 rounded-groups': {},\r\n\r\n '&[data-color=\"mono\"]': {\r\n '@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {},\r\n },\r\n\r\n '&[data-color=\"vattjom\"]': {\r\n '@apply bg-vattjom-background-200': {},\r\n },\r\n\r\n '&-text-icon': {\r\n '@apply mr-12 rounded-12 p-8': {},\r\n '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},\r\n '@apply text-dark': {},\r\n svg: {\r\n height: 'unset',\r\n width: 'unset',\r\n },\r\n },\r\n\r\n '&-body': {\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a, p': {\r\n '@apply mt-6 text-base line-clamp-1': {},\r\n '@apply text-dark-primary': {},\r\n },\r\n },\r\n\r\n '&-content': {\r\n 'p, a': {\r\n '@apply text-primitives-gray-700 dark:text-primitives-gray-200 text-small': {},\r\n '@apply text-dark-secondary line-clamp-1': {},\r\n },\r\n },\r\n },\r\n\r\n '&-external-link-icon': {\r\n '@apply ml-auto h-32 w-32': {},\r\n '@apply p-6 text-dark': {},\r\n },\r\n },\r\n});\r\n"],"names":["Card","colors","span","time","reduce","styles","color","content","position","left","top","right","bottom","svg","height","width"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,OAAO,CAACC,SAAsB,CAAA;QACzC,YAAY;YACV,oBAAoB,CAAC;YACrB,0DAA0D,CAAC;YAC3D,wBAAwB,CAAC;YACzB,0CAA0C,CAAC;YAC3C,iBAAiB,CAAC;YAElB,aAAa;gBACX,eAAe,CAAC;YAClB;YAEA,WAAW;gBACT,4BAA4B,CAAC;gBAC7B,0BAA0B,CAAC;YAC7B;YAEA,UAAU;gBACR,4CAA4C,CAAC;gBAC7C,iBAAiB,CAAC;gBAElB,aAAa;oBACX,eAAe,CAAC;gBAClB;gBAEA,UAAU;oBACR,0CAA0C,CAAC;oBAC3CC,MAAM;wBACJ,sCAAsC,CAAC;wBACvCC,MAAM;4BACJ,eAAe,CAAC;wBAClB;oBACF;oBAEA,mBAAmB;wBACjB,sCAAsC,CAAC;oBACzC;gBACF;gBAEA,YAAY;oBACV,iCAAiC;wBAC/B,0DAA0D,CAAC;oBAC7D;oBACAD,MAAM;wBACJ,gBAAgB,CAAC;oBACnB;gBACF;gBAEA,aAAa;oBACX,iBAAiB,CAAC;oBAClB,QAAQ;wBACN,oDAAoD,CAAC;oBACvD;gBACF;gBAEA,UAAU;oBACR,iBAAiB,CAAC;gBACpB;YACF;YAEA,GAAGD,OAAOG,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBAET,kDAAkD;wBAChD,gCAAgC,CAAC;wBACjC,sFAAsF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ACTC,UAAU;gBACVC,MAAM;gBACNC,KAAK;gBACLC,OAAO;gBACPC,QAAQ;YACV;QACF;QAEA;;GAEC,GACD,iBAAiB;YACf,0CAA0C,CAAC;YAC3C,yCAAyC,CAAC;YAC1C,8BAA8B,CAAC;YAE/B,wBAAwB;gBACtB,8EAA8E,CAAC;YACjF;YAEA,2BAA2B;gBACzB,oCAAoC,CAAC;YACvC;YAEA,eAAe;gBACb,+BAA+B,CAAC;gBAChC,kEAAkE,CAAC;gBACnE,oBAAoB,CAAC;gBACrBC,KAAK;oBACHC,QAAQ;oBACRC,OAAO;gBACT;YACF;YAEA,UAAU;gBACR,YAAY;oBACV,oCAAoC;wBAClC,sCAAsC,CAAC;wBACvC,4BAA4B,CAAC;oBAC/B;gBACF;gBAEA,aAAa;oBACX,QAAQ;wBACN,4EAA4E,CAAC;wBAC7E,2CAA2C,CAAC;oBAC9C;gBACF;YACF;YAEA,wBAAwB;gBACtB,4BAA4B,CAAC;gBAC7B,wBAAwB,CAAC;YAC3B;QACF;IACF,CAAA"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/card.ts"],"sourcesContent":["export const Card = (colors: string[]) => ({\r\n '.sk-card': {\r\n '@apply text-base': {},\r\n '@apply bg-white relative rounded-b-cards rounded-cards': {},\r\n '@apply flex flex-col': {},\r\n '@apply no-underline hover:no-underline': {},\r\n '@apply h-full': {},\r\n\r\n '&-wrapper': {\r\n '@apply grid': {},\r\n },\r\n\r\n '&-image': {\r\n '@apply object-cover grow': {},\r\n '@apply rounded-t-cards': {},\r\n },\r\n\r\n '&-body': {\r\n '@apply px-24 pb-24 pt-16 rounded-b-cards': {},\r\n '@apply shrink': {},\r\n\r\n '&-wrapper': {\r\n '@apply flex': {},\r\n },\r\n\r\n '&-meta': {\r\n '@apply flex space-x-12 mt-16 text-base': {},\r\n span: {\r\n '@apply flex space-x-4 items-center': {},\r\n time: {\r\n '@apply h-24': {},\r\n },\r\n },\r\n\r\n '&.sk-card-image': {\r\n '@apply min-h-[12.5em] max-h-[20em]': {},\r\n },\r\n },\r\n\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n '@apply line-clamp-1 text-h3-md text-dark-primary mt-16': {},\r\n },\r\n span: {\r\n '@apply pl-12': {},\r\n },\r\n },\r\n\r\n '&-content': {\r\n '@apply w-full': {},\r\n 'p, a': {\r\n '@apply line-clamp-3 m-0 pt-8 text-base text-body': {},\r\n },\r\n },\r\n\r\n '&-icon': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n\r\n '&[data-color=\"mono\"], &[data-color=\"tertiary\"]': {\r\n '@apply border-solid border-1': {},\r\n '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},\r\n '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},\r\n\r\n '.sk-card-body-meta': {\r\n '@apply text-dark-secondary': {},\r\n },\r\n\r\n '.sk-card-body-icon': {\r\n '@apply bg-primitives-overlay-darken-9 dark:bg-primitives-overlay-lighten-10': {},\r\n '@apply text-primitives-gray-lightest dark:text-primitives-overlay-darken-9': {},\r\n '@apply hover:bg-primitives-overlay-darken-10 dark:hover:bg-primitives-gray-lightest': {},\r\n },\r\n\r\n // inverted.\r\n [`&[data-inverted=\"true\"]`]: {\r\n '@apply bg-primitives-gray-800': {},\r\n\r\n '.sk-card-body': {\r\n // Meta\r\n '&-meta': {\r\n span: {\r\n '@apply text-light-secondary': {},\r\n },\r\n },\r\n\r\n // header\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n [`@apply text-light-primary`]: {},\r\n },\r\n },\r\n\r\n // Content\r\n '&-content': {\r\n 'p, a': {\r\n [`@apply text-light-secondary`]: {},\r\n },\r\n },\r\n\r\n '.sk-card-body-icon': {\r\n '@apply bg-primitives-overlay-lighten-10 text-primitives-gray-900': {},\r\n '@apply hover:bg-primitives-gray-lightest': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&[data-color=\"tertiary\"]': {\r\n '@apply border-solid border-1': {},\r\n '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},\r\n '@apply bg-primitives-gray-50 dark:bg-primitives-gray-700': {},\r\n },\r\n\r\n [`&[data-color=\"${color}\"]`]: {\r\n // card\r\n [`@apply bg-${color}-surface-primary-hover`]: {},\r\n\r\n // clickable\r\n '&.sk-card-use-hover-effect': {\r\n // hover\r\n [`@apply hover:cursor-pointer hover:bg-${color}-surface-primary`]: {},\r\n },\r\n\r\n // Meta\r\n '.sk-card-body': {\r\n '&-meta': {\r\n span: {\r\n '@apply text-light-secondary': {},\r\n },\r\n },\r\n\r\n // header\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n [`@apply text-light-primary`]: {},\r\n },\r\n },\r\n\r\n // Content\r\n '&-content': {\r\n 'p, a': {\r\n [`@apply text-light-secondary`]: {},\r\n },\r\n },\r\n },\r\n\r\n // inverted.\r\n [`&[data-inverted=\"true\"]`]: {\r\n // card\r\n [`@apply bg-${color}-surface-accent-hover`]: {},\r\n\r\n // clickable\r\n '&.sk-card-use-hover-effect': {\r\n // hover\r\n [`@apply hover:cursor-pointer hover:bg-${color}-surface-accent`]: {},\r\n },\r\n\r\n '.sk-card-body': {\r\n // Meta\r\n '&-meta': {\r\n span: {\r\n '@apply text-dark-secondary': {},\r\n },\r\n },\r\n\r\n // header\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a': {\r\n [`@apply text-dark-primary`]: {},\r\n },\r\n },\r\n\r\n // Content\r\n '&-content': {\r\n 'p, a': {\r\n [`@apply text-dark-secondary`]: {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n // clickable\r\n '&.sk-card-use-hover-effect': {\r\n //Hide and show of icon\r\n '.sk-card-body-icon': {\r\n '@apply inline-flex': {},\r\n '@apply mt-auto mb-auto mr-24': {},\r\n },\r\n },\r\n\r\n [`&[data-layout=\"horizontal\"]`]: {\r\n '@apply flex-row h-full': {},\r\n\r\n '.sk-card': {\r\n '&-image': {\r\n '@apply h-full w-[8em]': {},\r\n '@apply float-left': {},\r\n '@apply rounded-none rounded-l-cards grow-0': {},\r\n },\r\n\r\n '&-body': {\r\n '@apply w-full': {},\r\n '@apply border-none': {},\r\n\r\n '&-wrapper': {\r\n '@apply w-full': {},\r\n },\r\n\r\n '&-content': {\r\n 'p, a': {\r\n '@apply text-small': {},\r\n },\r\n },\r\n\r\n '&-meta': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n\r\n '.sk-card-link': {\r\n '@apply hover:cursor-pointer': {},\r\n\r\n '&::after': {\r\n content: \"''\",\r\n position: 'absolute',\r\n left: '0',\r\n top: '0',\r\n right: '0',\r\n bottom: '0',\r\n },\r\n },\r\n\r\n /**\r\n * Meta card\r\n */\r\n '.sk-meta-card': {\r\n '@apply no-underline hover:no-underline': {},\r\n '@apply flex bg-vattjom-surface-accent': {},\r\n '@apply p-14 rounded-groups': {},\r\n\r\n '&.sk-meta-card-use-hover-effect:hover': {\r\n '@apply cursor-pointer': {},\r\n },\r\n\r\n '&.sk-meta-card-use-hover-effect[data-color=\"vattjom\"]:hover': {\r\n '@apply bg-vattjom-background-300': {},\r\n },\r\n\r\n '&.sk-meta-card-use-hover-effect[data-color=\"mono\"]:hover': {\r\n '@apply bg-primitives-overlay-darken-2 dark:bg-primitives-overlay-lighten-2': {},\r\n },\r\n\r\n '&[data-color=\"mono\"]': {\r\n '@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {},\r\n },\r\n\r\n '&[data-color=\"vattjom\"]': {\r\n '@apply bg-vattjom-background-200': {},\r\n },\r\n\r\n '&-text-icon': {\r\n '@apply mr-12 rounded-12 p-8': {},\r\n '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},\r\n '@apply text-dark': {},\r\n svg: {\r\n height: 'unset',\r\n width: 'unset',\r\n },\r\n },\r\n\r\n '&-body': {\r\n '&-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a, p': {\r\n '@apply mt-6 line-clamp-1': {},\r\n '@apply text-dark-primary': {},\r\n },\r\n },\r\n '&-content': {\r\n 'p, a': {\r\n '@apply text-primitives-gray-700 dark:text-primitives-gray-200': {},\r\n '@apply text-dark-secondary line-clamp-1': {},\r\n },\r\n },\r\n },\r\n\r\n '&-external-link-icon': {\r\n '@apply ml-auto h-32 w-32 p-6 text-dark shrink-0': {},\r\n },\r\n },\r\n\r\n '.sk-meta-card[data-size=\"sm\"]': {\r\n '@apply h-[8.6rem]': {},\r\n },\r\n '.sk-meta-card[data-size=\"md\"]': {\r\n '@apply h-[9.4rem]': {},\r\n },\r\n '.sk-meta-card[data-size=\"sm\"] .sk-meta-card-body-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a, p': {\r\n fontSize: '1.6rem ',\r\n lineHeight: '2.4rem ',\r\n fontWeight: 'bold ',\r\n },\r\n },\r\n '.sk-meta-card[data-size=\"sm\"] .sk-meta-card-body-content': {\r\n '@apply text-[1.4rem]': {},\r\n },\r\n '.sk-meta-card[data-size=\"md\"] .sk-meta-card-body-header': {\r\n 'h1, h2, h3, h4, h5, h6, h7, a, p': {\r\n fontSize: '1.8rem',\r\n lineHeight: '2.6rem',\r\n fontWeight: 'bold',\r\n },\r\n },\r\n '.sk-meta-card[data-size=\"md\"] .sk-meta-card-body-content': {\r\n '@apply text-[1.6rem]': {},\r\n },\r\n});\r\n"],"names":["Card","colors","span","time","reduce","styles","color","content","position","left","top","right","bottom","svg","height","width","fontSize","lineHeight","fontWeight"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,OAAO,CAACC,SAAsB,CAAA;QACzC,YAAY;YACV,oBAAoB,CAAC;YACrB,0DAA0D,CAAC;YAC3D,wBAAwB,CAAC;YACzB,0CAA0C,CAAC;YAC3C,iBAAiB,CAAC;YAElB,aAAa;gBACX,eAA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;oBACV,oCAAoC;wBAClC,4BAA4B,CAAC;wBAC7B,4BAA4B,CAAC;oBAC/B;gBACF;gBACA,aAAa;oBACX,QAAQ;wBACN,iEAAiE,CAAC;wBAClE,2CAA2C,CAAC;oBAC9C;gBACF;YACF;YAEA,wBAAwB;gBACtB,mDAAmD,CAAC;YACtD;QACF;QAEA,iCAAiC;YAC/B,qBAAqB,CAAC;QACxB;QACA,iCAAiC;YAC/B,qBAAqB,CAAC;QACxB;QACA,2DAA2D;YACzD,oCAAoC;gBAClCC,UAAU;gBACVC,YAAY;gBACZC,YAAY;YACd;QACF;QACA,4DAA4D;YAC1D,wBAAwB,CAAC;QAC3B;QACA,2DAA2D;YACzD,oCAAoC;gBAClCF,UAAU;gBACVC,YAAY;gBACZC,YAAY;YACd;QACF;QACA,4DAA4D;YAC1D,wBAAwB,CAAC;QAC3B;IACF,CAAA"}
|
|
@@ -92,9 +92,94 @@ function addin() {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
+
function addon() {
|
|
96
|
+
return {
|
|
97
|
+
'&-addon': {
|
|
98
|
+
'@apply flex relative': {},
|
|
99
|
+
'@apply items-center': {},
|
|
100
|
+
'@apply focus-within:ring': {},
|
|
101
|
+
'@apply focus-within:ring-ring': {},
|
|
102
|
+
'@apply text-dark-secondary': {},
|
|
103
|
+
//Focus
|
|
104
|
+
'@apply focus-within:border-input-field-surface': {},
|
|
105
|
+
'&:not(:invalid):not([aria-invalid="true"])': {
|
|
106
|
+
'@apply focus-within:border-input-field-surface': {}
|
|
107
|
+
},
|
|
108
|
+
'&&-lg': {
|
|
109
|
+
'@apply text-input-large': {},
|
|
110
|
+
'@apply rounded-button-lg': {},
|
|
111
|
+
'@apply h-48': {}
|
|
112
|
+
},
|
|
113
|
+
'&&-md': {
|
|
114
|
+
'@apply text-input-medium': {},
|
|
115
|
+
'@apply rounded-button-md': {},
|
|
116
|
+
'@apply h-40': {}
|
|
117
|
+
},
|
|
118
|
+
'&&-sm': {
|
|
119
|
+
'@apply text-input-small': {},
|
|
120
|
+
'@apply rounded-button-sm': {},
|
|
121
|
+
'@apply h-32': {}
|
|
122
|
+
},
|
|
123
|
+
'&&-left': {
|
|
124
|
+
'@apply rounded-r-0': {},
|
|
125
|
+
'@apply border-r-0': {}
|
|
126
|
+
},
|
|
127
|
+
'&&-right': {
|
|
128
|
+
'@apply rounded-l-0': {},
|
|
129
|
+
'@apply border-l-0': {}
|
|
130
|
+
},
|
|
131
|
+
...inputStandards(),
|
|
132
|
+
'.sk-form-input': {
|
|
133
|
+
'@apply rounded-0': {},
|
|
134
|
+
'@apply border-0': {},
|
|
135
|
+
'@apply focus:ring-0': {},
|
|
136
|
+
'@apply focus:ring-offset-0': {},
|
|
137
|
+
'@apply bg-transparent': {},
|
|
138
|
+
'@apply dark:bg-transparent': {},
|
|
139
|
+
'@apply grow': {}
|
|
140
|
+
},
|
|
141
|
+
'.sk-form-select': {
|
|
142
|
+
'@apply rounded-0': {},
|
|
143
|
+
'@apply border-0 hover:border-0': {},
|
|
144
|
+
'@apply focus:ring-0 focus:z-10': {},
|
|
145
|
+
'@apply focus:ring-offset-0': {},
|
|
146
|
+
'@apply bg-transparent hover:bg-transparent': {},
|
|
147
|
+
'@apply dark:bg-transparent hover:dark:bg-transparent': {},
|
|
148
|
+
'@apply grow': {}
|
|
149
|
+
},
|
|
150
|
+
'&&-left .sk-form-select': {
|
|
151
|
+
'@apply border-r-1 border-r-divider': {},
|
|
152
|
+
'@apply focus:border-r-transparent': {}
|
|
153
|
+
},
|
|
154
|
+
'&&-right .sk-form-select': {
|
|
155
|
+
'@apply border-l-1 border-l-divider': {},
|
|
156
|
+
'@apply focus:border-l-transparent': {}
|
|
157
|
+
},
|
|
158
|
+
'.sk-form-combobox': {
|
|
159
|
+
'@apply rounded-0': {},
|
|
160
|
+
'@apply border-0': {},
|
|
161
|
+
'@apply focus-within:ring-0': {},
|
|
162
|
+
'@apply focus-within:ring-offset-0': {},
|
|
163
|
+
'@apply bg-transparent': {},
|
|
164
|
+
'@apply dark:bg-transparent': {}
|
|
165
|
+
},
|
|
166
|
+
'&&-left .sk-form-combobox': {
|
|
167
|
+
'@apply border-r-1 border-r-divider': {},
|
|
168
|
+
'@apply focus:border-r-transparent': {}
|
|
169
|
+
},
|
|
170
|
+
'&&-right .sk-form-combobox': {
|
|
171
|
+
'@apply border-l-1 border-l-divider': {},
|
|
172
|
+
'@apply focus:border-l-transparent': {}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
95
177
|
function inputGroup() {
|
|
96
178
|
return {
|
|
97
179
|
'&-group': {
|
|
180
|
+
'&-wrapper': {
|
|
181
|
+
'@apply flex gap-0': {}
|
|
182
|
+
},
|
|
98
183
|
'@apply flex relative': {},
|
|
99
184
|
'@apply items-center': {},
|
|
100
185
|
'@apply focus-within:ring': {},
|
|
@@ -107,15 +192,28 @@ function inputGroup() {
|
|
|
107
192
|
},
|
|
108
193
|
'&&-lg': {
|
|
109
194
|
'@apply text-input-large': {},
|
|
110
|
-
'@apply rounded-button-lg': {}
|
|
195
|
+
'@apply rounded-button-lg': {},
|
|
196
|
+
'@apply h-48': {}
|
|
111
197
|
},
|
|
112
198
|
'&&-md': {
|
|
113
199
|
'@apply text-input-medium': {},
|
|
114
|
-
'@apply rounded-button-md': {}
|
|
200
|
+
'@apply rounded-button-md': {},
|
|
201
|
+
'@apply h-40': {}
|
|
115
202
|
},
|
|
116
203
|
'&&-sm': {
|
|
117
204
|
'@apply text-input-small': {},
|
|
118
|
-
'@apply rounded-button-sm': {}
|
|
205
|
+
'@apply rounded-button-sm': {},
|
|
206
|
+
'@apply h-32': {}
|
|
207
|
+
},
|
|
208
|
+
'&[data-hasleftaddon="true"]': {
|
|
209
|
+
'@apply pl-0': {},
|
|
210
|
+
'@apply rounded-l-0': {},
|
|
211
|
+
'@apply border-l-0': {}
|
|
212
|
+
},
|
|
213
|
+
'&[data-hasrightaddon="true"]': {
|
|
214
|
+
'@apply pr-0': {},
|
|
215
|
+
'@apply rounded-r-0': {},
|
|
216
|
+
'@apply border-r-0': {}
|
|
119
217
|
},
|
|
120
218
|
...inputStandards(),
|
|
121
219
|
'.sk-form-input': {
|
|
@@ -246,7 +344,8 @@ const Input = ()=>({
|
|
|
246
344
|
...timeAndDatePicker(),
|
|
247
345
|
...inputStandards(),
|
|
248
346
|
...inputGroup(),
|
|
249
|
-
...addin()
|
|
347
|
+
...addin(),
|
|
348
|
+
...addon()
|
|
250
349
|
}
|
|
251
350
|
});
|
|
252
351
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/input.ts"],"sourcesContent":["function calendar() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;\r\n}\r\nfunction clock() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;\r\n}\r\n\r\nfunction inputStandards() {\r\n return {\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n\r\n '@apply placeholder:text-dark-placeholder': {},\r\n\r\n '@apply bg-input-field-surface': {},\r\n\r\n //Invalid\r\n '&:invalid, &[aria-invalid=\"true\"]': {\r\n '@apply border-2 border-error-surface-primary': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply text-dark-disabled': {},\r\n },\r\n\r\n //readOnly\r\n '&:read-only': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply placeholder:text-dark-secondary': {},\r\n },\r\n };\r\n}\r\n\r\nfunction addin() {\r\n return {\r\n '&-addin': {\r\n '@apply bg-transparent': {},\r\n '@apply flex': {},\r\n '@apply justify-start items-center': {},\r\n '&-sm': {\r\n '@apply px-6 gap-6': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-12': {},\r\n '@apply pl-10': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-12': {},\r\n '@apply pr-10': {},\r\n },\r\n svg: {\r\n '@apply w-16 h-16': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-16': {},\r\n '@apply pl-12': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-16': {},\r\n '@apply pr-12': {},\r\n },\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-20': {},\r\n '@apply pl-16': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-20': {},\r\n '@apply pr-16': {},\r\n },\r\n svg: {\r\n '@apply w-22 h-22': {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction inputGroup() {\r\n return {\r\n '&-group': {\r\n '@apply flex relative': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n },\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction timeAndDatePicker() {\r\n return {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply block': {},\r\n '@apply p-0': {},\r\n '@apply pl-6 md:pl-8': {},\r\n '@apply m-0': {},\r\n '@apply bg-none': {},\r\n '@apply bg-dark-secondary': {},\r\n '&.sk-form-input-sm': {\r\n '@apply w-16 h-16': {},\r\n '@apply -mr-2': {},\r\n },\r\n '&.sk-form-input-md': {\r\n '@apply -mr-4': {},\r\n '@apply w-18 h-18': {},\r\n },\r\n '&.sk-form-input-lg': {\r\n '@apply -mr-6': {},\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n\r\n '&[type=\"date\"]::-webkit-inner-spin-button, &[type=\"date\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"datetime-local\"]::-webkit-inner-spin-button, &[type=\"datetime-local\"]::-webkit-calendar-picker-indicator':\r\n {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"time\"]::-webkit-inner-spin-button, &[type=\"time\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply color-black-disabled': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nexport const Input = () => ({\r\n '.sk-form-input': {\r\n '@apply grow-0': {},\r\n '@apply text-dark-primary': {},\r\n\r\n '&[data-hideextra=\"true\"]': {\r\n '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\r\n '-webkit-appearance': 'none',\r\n display: 'none',\r\n margin: '0px',\r\n },\r\n '-moz-appearance': 'textfield',\r\n },\r\n\r\n '&&-lg': {\r\n '@apply rounded-button-lg': {},\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-large': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply rounded-button-md': {},\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-medium': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply rounded-button-sm': {},\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n '@apply gap-6': {},\r\n '@apply text-input-small': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-textarea': {\r\n '@apply h-auto': {},\r\n '&-warning': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n\r\n //Focus\r\n '@apply focus:ring': {},\r\n '@apply focus:ring-ring': {},\r\n '@apply focus:ring-offset': {},\r\n '@apply focus:border-input-field-surface': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply focus-within:ring-offset': {},\r\n '@apply focus-within:border-input-field-surface': {},\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus:hover:border-input-field-surface': {},\r\n },\r\n ...timeAndDatePicker(),\r\n ...inputStandards(),\r\n ...inputGroup(),\r\n ...addin(),\r\n },\r\n});\r\n"],"names":["Input","calendar","clock","inputStandards","addin","svg","inputGroup","timeAndDatePicker","mask","maskSize","display","margin"],"mappings":";;;;+BAwLaA;;;eAAAA;;;AAxLb,SAASC;IACP,OAAO,CAAC,qWAAqW,CAAC;AAChX;AACA,SAASC;IACP,OAAO,CAAC,kQAAkQ,CAAC;AAC7Q;AAEA,SAASC;IACP,OAAO;QACL,mBAAmB,CAAC;QACpB,qCAAqC,CAAC;QACtC,iDAAiD,CAAC;QAElD,4CAA4C,CAAC;QAE7C,iCAAiC,CAAC;QAElC,SAAS;QACT,qCAAqC;YACnC,gDAAgD,CAAC;QACnD;QAEA,UAAU;QACV,uCAAuC;YACrC,0CAA0C,CAAC;YAC3C,8CAA8C,CAAC;YAC/C,oDAAoD,CAAC;YACrD,6BAA6B,CAAC;QAChC;QAEA,UAAU;QACV,eAAe;YACb,iCAAiC,CAAC;YAClC,8CAA8C,CAAC;YAC/C,8BAA8B,CAAC;YAC/B,0CAA0C,CAAC;QAC7C;IACF;AACF;AAEA,SAASC;IACP,OAAO;QACL,WAAW;YACT,yBAAyB,CAAC;YAC1B,eAAe,CAAC;YAChB,qCAAqC,CAAC;YACtC,QAAQ;gBACN,qBAAqB,CAAC;gBACtB,8BAA8B;oBAC5B,iBAAiB,CAAC;oBAClB,gBAAgB,CAAC;gBACnB;gBACA,+BAA+B;oBAC7B,iBAAiB,CAAC;oBAClB,gBAAgB,CAAC;gBACnB;gBACAC,KAAK;oBACH,oBAAoB,CAAC;gBACvB;YACF;YACA,QAAQ;gBACN,2BAA2B,CAAC;gBAC5B,8BAA8B;o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S;gBACP,4BAA4B,CAAC;gBAC7B,gBAAgB,CAAC;gBACjB,eAAe,CAAC;gBAChB,gBAAgB,CAAC;gBACjB,2BAA2B,CAAC;gBAC5B,eAAe,CAAC;YAClB;YACA,eAAe;gBACb,iBAAiB,CAAC;gBAClB,aAAa;oBACX,kBAAkB,CAAC;gBACrB;YACF;YAEA,OAAO;YACP,qBAAqB,CAAC;YACtB,0BAA0B,CAAC;YAC3B,4BAA4B,CAAC;YAC7B,2CAA2C,CAAC;YAC5C,4BAA4B,CAAC;YAC7B,iCAAiC,CAAC;YAClC,mCAAmC,CAAC;YACpC,kDAAkD,CAAC;YACnD,8CAA8C;gBAC5C,iDAAiD,CAAC;YACpD;YACA,GAAGJ,mBAAmB;YACtB,GAAGJ,gBAAgB;YACnB,GAAGG,YAAY;YACf,GAAGF,OAAO;QACZ;IACF,CAAA"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/input.ts"],"sourcesContent":["function calendar() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;\r\n}\r\nfunction clock() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;\r\n}\r\n\r\nfunction inputStandards() {\r\n return {\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n\r\n '@apply placeholder:text-dark-placeholder': {},\r\n\r\n '@apply bg-input-field-surface': {},\r\n\r\n //Invalid\r\n '&:invalid, &[aria-invalid=\"true\"]': {\r\n '@apply border-2 border-error-surface-primary': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply text-dark-disabled': {},\r\n },\r\n\r\n //readOnly\r\n '&:read-only': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply placeholder:text-dark-secondary': {},\r\n },\r\n };\r\n}\r\n\r\nfunction addin() {\r\n return {\r\n '&-addin': {\r\n '@apply bg-transparent': {},\r\n '@apply flex': {},\r\n '@apply justify-start items-center': {},\r\n '&-sm': {\r\n '@apply px-6 gap-6': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-12': {},\r\n '@apply pl-10': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-12': {},\r\n '@apply pr-10': {},\r\n },\r\n svg: {\r\n '@apply w-16 h-16': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-16': {},\r\n '@apply pl-12': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-16': {},\r\n '@apply pr-12': {},\r\n },\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-20': {},\r\n '@apply pl-16': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-20': {},\r\n '@apply pr-16': {},\r\n },\r\n svg: {\r\n '@apply w-22 h-22': {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction addon() {\r\n return {\r\n '&-addon': {\r\n '@apply flex relative': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-left': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n '&&-right': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n '.sk-form-select': {\r\n '@apply rounded-0': {},\r\n '@apply border-0 hover:border-0': {},\r\n '@apply focus:ring-0 focus:z-10': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent hover:bg-transparent': {},\r\n '@apply dark:bg-transparent hover:dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n '&&-left .sk-form-select': {\r\n '@apply border-r-1 border-r-divider': {},\r\n '@apply focus:border-r-transparent': {},\r\n },\r\n '&&-right .sk-form-select': {\r\n '@apply border-l-1 border-l-divider': {},\r\n '@apply focus:border-l-transparent': {},\r\n },\r\n '.sk-form-combobox': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus-within:ring-0': {},\r\n '@apply focus-within:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n },\r\n '&&-left .sk-form-combobox': {\r\n '@apply border-r-1 border-r-divider': {},\r\n '@apply focus:border-r-transparent': {},\r\n },\r\n '&&-right .sk-form-combobox': {\r\n '@apply border-l-1 border-l-divider': {},\r\n '@apply focus:border-l-transparent': {},\r\n },\r\n },\r\n };\r\n}\r\nfunction inputGroup() {\r\n return {\r\n '&-group': {\r\n '&-wrapper': {\r\n '@apply flex gap-0': {},\r\n },\r\n '@apply flex relative': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n '@apply h-32': {},\r\n },\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '@apply pl-0': {},\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '@apply pr-0': {},\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction timeAndDatePicker() {\r\n return {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply block': {},\r\n '@apply p-0': {},\r\n '@apply pl-6 md:pl-8': {},\r\n '@apply m-0': {},\r\n '@apply bg-none': {},\r\n '@apply bg-dark-secondary': {},\r\n '&.sk-form-input-sm': {\r\n '@apply w-16 h-16': {},\r\n '@apply -mr-2': {},\r\n },\r\n '&.sk-form-input-md': {\r\n '@apply -mr-4': {},\r\n '@apply w-18 h-18': {},\r\n },\r\n '&.sk-form-input-lg': {\r\n '@apply -mr-6': {},\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n\r\n '&[type=\"date\"]::-webkit-inner-spin-button, &[type=\"date\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"datetime-local\"]::-webkit-inner-spin-button, &[type=\"datetime-local\"]::-webkit-calendar-picker-indicator':\r\n {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"time\"]::-webkit-inner-spin-button, &[type=\"time\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply color-black-disabled': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nexport const Input = () => ({\r\n '.sk-form-input': {\r\n '@apply grow-0': {},\r\n '@apply text-dark-primary': {},\r\n\r\n '&[data-hideextra=\"true\"]': {\r\n '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\r\n '-webkit-appearance': 'none',\r\n display: 'none',\r\n margin: '0px',\r\n },\r\n '-moz-appearance': 'textfield',\r\n },\r\n\r\n '&&-lg': {\r\n '@apply rounded-button-lg': {},\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-large': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply rounded-button-md': {},\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-medium': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply rounded-button-sm': {},\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n '@apply gap-6': {},\r\n '@apply text-input-small': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-textarea': {\r\n '@apply h-auto': {},\r\n '&-warning': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n\r\n //Focus\r\n '@apply focus:ring': {},\r\n '@apply focus:ring-ring': {},\r\n '@apply focus:ring-offset': {},\r\n '@apply focus:border-input-field-surface': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply focus-within:ring-offset': {},\r\n '@apply focus-within:border-input-field-surface': {},\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus:hover:border-input-field-surface': {},\r\n },\r\n ...timeAndDatePicker(),\r\n ...inputStandards(),\r\n ...inputGroup(),\r\n ...addin(),\r\n ...addon(),\r\n },\r\n});\r\n"],"names":["Input","calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","display","margin"],"mappings":";;;;+BA4RaA;;;eAAAA;;;AA5Rb,SAASC;IACP,OAAO,CAAC,qWAAqW,CAAC;AAChX;AACA,SAASC;IACP,OAAO,CAAC,kQAAkQ,CAAC;AAC7Q;AAEA,SAASC;IACP,OAAO;QACL,m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C;gBAC5B,eAAe,CAAC;YAClB;YACA,eAAe;gBACb,iBAAiB,CAAC;gBAClB,aAAa;oBACX,kBAAkB,CAAC;gBACrB;YACF;YAEA,OAAO;YACP,qBAAqB,CAAC;YACtB,0BAA0B,CAAC;YAC3B,4BAA4B,CAAC;YAC7B,2CAA2C,CAAC;YAC5C,4BAA4B,CAAC;YAC7B,iCAAiC,CAAC;YAClC,mCAAmC,CAAC;YACpC,kDAAkD,CAAC;YACnD,8CAA8C;gBAC5C,iDAAiD,CAAC;YACpD;YACA,GAAGJ,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;QACZ;IACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/logo.ts"],"sourcesContent":["export const Logo = () => ({\r\n '.sk-logo': {\r\n '@apply flex w-auto h-auto': {},\r\n '@apply items-center': {},\r\n '@apply text-dark-primary': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-light-primary': {},\r\n '.sk-logo-divider': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n\r\n '&-figure': {\r\n '@apply w-full h-full': {},\r\n },\r\n '&[data-variant=\"service\"]': {\r\n '@apply flex-row gap-6': {},\r\n '@apply w-max': {},\r\n '@apply h-60': {},\r\n '@apply pb-4': {},\r\n '.sk-logo-figure': {\r\n '@apply w-
|
|
1
|
+
{"version":3,"sources":["../../../src/components/logo.ts"],"sourcesContent":["export const Logo = () => ({\r\n '.sk-logo': {\r\n '@apply flex w-auto h-auto': {},\r\n '@apply items-center': {},\r\n '@apply text-dark-primary': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-light-primary': {},\r\n '.sk-logo-divider': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n\r\n '&-figure': {\r\n '@apply w-full h-full': {},\r\n },\r\n '&[data-variant=\"service\"]': {\r\n '@apply flex-row gap-6': {},\r\n '@apply w-max': {},\r\n '@apply h-60': {},\r\n '@apply pb-4': {},\r\n '.sk-logo-figure': {\r\n '@apply w-34 h-56': {},\r\n },\r\n },\r\n 'a:focus-within &': {\r\n '@apply outline outline-2 outline-ring': {},\r\n },\r\n 'a &': {\r\n '@apply no-underline': {},\r\n },\r\n 'a:hover &': {\r\n '@apply underline': {},\r\n },\r\n '&-service-content': {\r\n '@apply h-full w-max': {},\r\n '@apply flex flex-col justify-center': {},\r\n '@apply pl-2 pt-2 pr-8 pb-0': {},\r\n },\r\n '&-title': {\r\n '@apply font-header text-logo-header': {},\r\n },\r\n '&-subtitle': {\r\n '@apply text-small font-normal block': {},\r\n },\r\n '&-divider': {\r\n '@apply pt-8 pb-4': {},\r\n },\r\n },\r\n});\r\n"],"names":["Logo"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,OAAO,IAAO,CAAA;QACzB,YAAY;YACV,6BAA6B,CAAC;YAC9B,uBAAuB,CAAC;YACxB,4BAA4B,CAAC;YAC7B,2BAA2B;gBACzB,6BAA6B,CAAC;gBAC9B,oBAAoB;oBAClB,kCAAkC,CAAC;gBACrC;YACF;YAEA,YAAY;gBACV,wBAAwB,CAAC;YAC3B;YACA,6BAA6B;gBAC3B,yBAAyB,CAAC;gBAC1B,gBAAgB,CAAC;gBACjB,eAAe,CAAC;gBAChB,eAAe,CAAC;gBAChB,mBAAmB;oBACjB,oBAAoB,CAAC;gBACvB;YACF;YACA,oBAAoB;gBAClB,yCAAyC,CAAC;YAC5C;YACA,OAAO;gBACL,uBAAuB,CAAC;YAC1B;YACA,aAAa;gBACX,oBAAoB,CAAC;YACvB;YACA,qBAAqB;gBACnB,uBAAuB,CAAC;gBACxB,uCAAuC,CAAC;gBACxC,8BAA8B,CAAC;YACjC;YACA,WAAW;gBACT,uCAAuC,CAAC;YAC1C;YACA,cAAc;gBACZ,uCAAuC,CAAC;YAC1C;YACA,aAAa;gBACX,oBAAoB,CAAC;YACvB;QACF;IACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/tabs.ts"],"sourcesContent":["export const Tabs = (colors: string[]) => ({\r\n '.sk-tabs': {\r\n '@apply w-full': {},\r\n\r\n '&-list': {\r\n '@apply flex items-center gap-20 border-b-1 border-transparent': {},\r\n\r\n '&[data-underline=\"true\"]': {\r\n '@apply border-divider': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply flex flex-col gap-y-10': {},\r\n\r\n '&[data-size=\"sm\"]': {\r\n '> button': {\r\n '@apply text-small': {},\r\n },\r\n },\r\n\r\n '&:hover': {\r\n // hover\r\n '.sk-tabs-list-item-divider': {\r\n '@apply opacity-90': {},\r\n },\r\n },\r\n\r\n '&-button': {\r\n '@apply h-auto border-0 py-0 px-2': {},\r\n // ring\r\n '@apply rounded-4': {},\r\n\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply text-dark-disabled cursor-default': {},\r\n },\r\n\r\n '&:focus-visible': {\r\n // focus\r\n '@apply ring-[.3rem]': {},\r\n '@apply ring-ring': {},\r\n '@apply ring-offset-background-content': {},\r\n '@apply outline-0': {},\r\n },\r\n\r\n '.sk-callout': {\r\n '@apply absolute self-end': {},\r\n },\r\n },\r\n\r\n '.sk-tabs-list-item-divider': {\r\n '@apply m-0 min-h-2 h-2
|
|
1
|
+
{"version":3,"sources":["../../../src/components/tabs.ts"],"sourcesContent":["export const Tabs = (colors: string[]) => ({\r\n '.sk-tabs': {\r\n '@apply w-full': {},\r\n\r\n '&-list': {\r\n '@apply flex items-center gap-20 border-b-1 border-transparent': {},\r\n\r\n '&[data-underline=\"true\"]': {\r\n '@apply border-divider': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply flex flex-col gap-y-10': {},\r\n\r\n '&[data-size=\"sm\"]': {\r\n '> button': {\r\n '@apply text-small': {},\r\n },\r\n },\r\n\r\n '&:hover': {\r\n // hover\r\n '.sk-tabs-list-item-divider': {\r\n '@apply opacity-90': {},\r\n },\r\n },\r\n\r\n '&-button': {\r\n '@apply h-auto border-0 py-0 px-2': {},\r\n // ring\r\n '@apply rounded-4': {},\r\n\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply text-dark-disabled cursor-default': {},\r\n },\r\n\r\n '&:focus-visible': {\r\n // focus\r\n '@apply ring-[.3rem]': {},\r\n '@apply ring-ring': {},\r\n '@apply ring-offset-background-content': {},\r\n '@apply outline-0': {},\r\n },\r\n\r\n '.sk-callout': {\r\n '@apply absolute self-end': {},\r\n },\r\n },\r\n\r\n '.sk-tabs-list-item-divider': {\r\n '@apply m-0 min-h-2 h-2 opacity-0': {},\r\n },\r\n\r\n '&[data-current=\"true\"]': {\r\n '.sk-tabs-list-item-divider': {\r\n '@apply opacity-100': {},\r\n },\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-tabs-list-item-divider': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n \"&[data-color='tertiary']\": {\r\n '.sk-tabs-list-item-divider': {\r\n '@apply bg-primary-surface': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&-panels': {\r\n '@apply mt-20': {},\r\n },\r\n\r\n '&-content': {\r\n '&:not([data-selected=\"true\"])': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Tabs","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,OAAO,CAACC,SAAsB,CAAA;QACzC,YAAY;YACV,iBAAiB,CAAC;YAElB,UAAU;gBACR,iEAAiE,CAAC;gBAElE,4BAA4B;oBAC1B,yBAAyB,CAAC;gBAC5B;gBAEA,UAAU;oBACR,iCAAiC,CAAC;oBAElC,qBAAqB;wBACnB,YAAY;4BACV,qBAAqB,CAAC;wBACxB;oBACF;oBAEA,WAAW;wBACT,QAAQ;wBACR,8BAA8B;4BAC5B,qBAAqB,CAAC;wBACxB;o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