@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
|
@@ -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":"AAAA,O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ACRC,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,EAAG"}
|
|
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":"AAAA,OAAO,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;w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;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,EAAG"}
|
|
@@ -82,9 +82,94 @@ function addin() {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
+
function addon() {
|
|
86
|
+
return {
|
|
87
|
+
'&-addon': {
|
|
88
|
+
'@apply flex relative': {},
|
|
89
|
+
'@apply items-center': {},
|
|
90
|
+
'@apply focus-within:ring': {},
|
|
91
|
+
'@apply focus-within:ring-ring': {},
|
|
92
|
+
'@apply text-dark-secondary': {},
|
|
93
|
+
//Focus
|
|
94
|
+
'@apply focus-within:border-input-field-surface': {},
|
|
95
|
+
'&:not(:invalid):not([aria-invalid="true"])': {
|
|
96
|
+
'@apply focus-within:border-input-field-surface': {}
|
|
97
|
+
},
|
|
98
|
+
'&&-lg': {
|
|
99
|
+
'@apply text-input-large': {},
|
|
100
|
+
'@apply rounded-button-lg': {},
|
|
101
|
+
'@apply h-48': {}
|
|
102
|
+
},
|
|
103
|
+
'&&-md': {
|
|
104
|
+
'@apply text-input-medium': {},
|
|
105
|
+
'@apply rounded-button-md': {},
|
|
106
|
+
'@apply h-40': {}
|
|
107
|
+
},
|
|
108
|
+
'&&-sm': {
|
|
109
|
+
'@apply text-input-small': {},
|
|
110
|
+
'@apply rounded-button-sm': {},
|
|
111
|
+
'@apply h-32': {}
|
|
112
|
+
},
|
|
113
|
+
'&&-left': {
|
|
114
|
+
'@apply rounded-r-0': {},
|
|
115
|
+
'@apply border-r-0': {}
|
|
116
|
+
},
|
|
117
|
+
'&&-right': {
|
|
118
|
+
'@apply rounded-l-0': {},
|
|
119
|
+
'@apply border-l-0': {}
|
|
120
|
+
},
|
|
121
|
+
...inputStandards(),
|
|
122
|
+
'.sk-form-input': {
|
|
123
|
+
'@apply rounded-0': {},
|
|
124
|
+
'@apply border-0': {},
|
|
125
|
+
'@apply focus:ring-0': {},
|
|
126
|
+
'@apply focus:ring-offset-0': {},
|
|
127
|
+
'@apply bg-transparent': {},
|
|
128
|
+
'@apply dark:bg-transparent': {},
|
|
129
|
+
'@apply grow': {}
|
|
130
|
+
},
|
|
131
|
+
'.sk-form-select': {
|
|
132
|
+
'@apply rounded-0': {},
|
|
133
|
+
'@apply border-0 hover:border-0': {},
|
|
134
|
+
'@apply focus:ring-0 focus:z-10': {},
|
|
135
|
+
'@apply focus:ring-offset-0': {},
|
|
136
|
+
'@apply bg-transparent hover:bg-transparent': {},
|
|
137
|
+
'@apply dark:bg-transparent hover:dark:bg-transparent': {},
|
|
138
|
+
'@apply grow': {}
|
|
139
|
+
},
|
|
140
|
+
'&&-left .sk-form-select': {
|
|
141
|
+
'@apply border-r-1 border-r-divider': {},
|
|
142
|
+
'@apply focus:border-r-transparent': {}
|
|
143
|
+
},
|
|
144
|
+
'&&-right .sk-form-select': {
|
|
145
|
+
'@apply border-l-1 border-l-divider': {},
|
|
146
|
+
'@apply focus:border-l-transparent': {}
|
|
147
|
+
},
|
|
148
|
+
'.sk-form-combobox': {
|
|
149
|
+
'@apply rounded-0': {},
|
|
150
|
+
'@apply border-0': {},
|
|
151
|
+
'@apply focus-within:ring-0': {},
|
|
152
|
+
'@apply focus-within:ring-offset-0': {},
|
|
153
|
+
'@apply bg-transparent': {},
|
|
154
|
+
'@apply dark:bg-transparent': {}
|
|
155
|
+
},
|
|
156
|
+
'&&-left .sk-form-combobox': {
|
|
157
|
+
'@apply border-r-1 border-r-divider': {},
|
|
158
|
+
'@apply focus:border-r-transparent': {}
|
|
159
|
+
},
|
|
160
|
+
'&&-right .sk-form-combobox': {
|
|
161
|
+
'@apply border-l-1 border-l-divider': {},
|
|
162
|
+
'@apply focus:border-l-transparent': {}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
85
167
|
function inputGroup() {
|
|
86
168
|
return {
|
|
87
169
|
'&-group': {
|
|
170
|
+
'&-wrapper': {
|
|
171
|
+
'@apply flex gap-0': {}
|
|
172
|
+
},
|
|
88
173
|
'@apply flex relative': {},
|
|
89
174
|
'@apply items-center': {},
|
|
90
175
|
'@apply focus-within:ring': {},
|
|
@@ -97,15 +182,28 @@ function inputGroup() {
|
|
|
97
182
|
},
|
|
98
183
|
'&&-lg': {
|
|
99
184
|
'@apply text-input-large': {},
|
|
100
|
-
'@apply rounded-button-lg': {}
|
|
185
|
+
'@apply rounded-button-lg': {},
|
|
186
|
+
'@apply h-48': {}
|
|
101
187
|
},
|
|
102
188
|
'&&-md': {
|
|
103
189
|
'@apply text-input-medium': {},
|
|
104
|
-
'@apply rounded-button-md': {}
|
|
190
|
+
'@apply rounded-button-md': {},
|
|
191
|
+
'@apply h-40': {}
|
|
105
192
|
},
|
|
106
193
|
'&&-sm': {
|
|
107
194
|
'@apply text-input-small': {},
|
|
108
|
-
'@apply rounded-button-sm': {}
|
|
195
|
+
'@apply rounded-button-sm': {},
|
|
196
|
+
'@apply h-32': {}
|
|
197
|
+
},
|
|
198
|
+
'&[data-hasleftaddon="true"]': {
|
|
199
|
+
'@apply pl-0': {},
|
|
200
|
+
'@apply rounded-l-0': {},
|
|
201
|
+
'@apply border-l-0': {}
|
|
202
|
+
},
|
|
203
|
+
'&[data-hasrightaddon="true"]': {
|
|
204
|
+
'@apply pr-0': {},
|
|
205
|
+
'@apply rounded-r-0': {},
|
|
206
|
+
'@apply border-r-0': {}
|
|
109
207
|
},
|
|
110
208
|
...inputStandards(),
|
|
111
209
|
'.sk-form-input': {
|
|
@@ -236,7 +334,8 @@ export const Input = ()=>({
|
|
|
236
334
|
...timeAndDatePicker(),
|
|
237
335
|
...inputStandards(),
|
|
238
336
|
...inputGroup(),
|
|
239
|
-
...addin()
|
|
337
|
+
...addin(),
|
|
338
|
+
...addon()
|
|
240
339
|
}
|
|
241
340
|
});
|
|
242
341
|
|
|
@@ -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":["calendar","clock","inputStandards","addin","svg","inputGroup","timeAndDatePicker","mask","maskSize","Input","display","margin"],"mappings":"AAAA,SAASA;IACP,OAAO,CAAC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kD,CAAC;YACnD,8CAA8C;gBAC5C,iDAAiD,CAAC;YACpD;YACA,GAAGL,mBAAmB;YACtB,GAAGJ,gBAAgB;YACnB,GAAGG,YAAY;YACf,GAAGF,OAAO;QACZ;IACF,CAAA,EAAG"}
|
|
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":["calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","Input","display","margin"],"mappings":"AAAA,SAASA;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,O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GH,OAAO;YACV,GAAGE,OAAO;QACZ;IACF,CAAA,EAAG"}
|
|
@@ -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":"AAAA,OAAO,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,EAAG"}
|
|
@@ -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":"AAAA,OAAO,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;oBACF;oBAEA,YAAY;wBACV,oCAAoC,CAAC;wBACrC,OAAO;wBACP,oBAAoB,CAAC;wBAErB,2BAA2B;4BACzB,4CAA4C,CAAC;wBAC/C;wBAEA,mBAAmB;4BACjB,QAAQ;4BACR,uBAAuB,CAAC;4BACxB,oBAAoB,CAAC;4BACrB,yCAAyC,CAAC;4BAC1C,oBAAoB,CAAC;wBACvB;wBAEA,eAAe;4BACb,4BAA4B,CAAC;wBAC/B;oBACF;oBAEA,8BAA8B;wBAC5B,oCAAoC,CAAC;oBACvC;oBAEA,0BAA0B;wBACxB,8BAA8B;4BAC5B,sBAAsB,CAAC;wBACzB;oBACF;oBAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;4BAClB,GAAGD,MAAM;4BACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;gCAC5B,8BAA8B;oCAC5B,CAAC,CAAC,UAAU,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;gCAC3C;4BACF;wBACF,CAAA,GACA,CAAC,EACF;oBACD,4BAA4B;wBAC1B,8BAA8B;4BAC5B,6BAA6B,CAAC;wBAChC;oBACF;gBACF;YACF;YAEA,YAAY;gBACV,gBAAgB,CAAC;YACnB;YAEA,aAAa;gBACX,iCAAiC;oBAC/B,iBAAiB,CAAC;gBACpB;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export 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
|
+
// Tooltip-text
|
|
94
|
+
'.ql-tooltip.ql-editing': {
|
|
95
|
+
input: {
|
|
96
|
+
'@apply rounded-0': {},
|
|
97
|
+
'&:focus-visible': {
|
|
98
|
+
'@apply rounded-0': {}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
'.ql-snow .ql-tooltip.ql-editing a.ql-action::after': {
|
|
103
|
+
content: '"Spara"'
|
|
104
|
+
},
|
|
105
|
+
'.ql-snow .ql-tooltip[data-mode=link]::before': {
|
|
106
|
+
content: '"Ange länk:"'
|
|
107
|
+
},
|
|
108
|
+
'.ql-snow .ql-tooltip::before': {
|
|
109
|
+
content: '"Besök URL:"'
|
|
110
|
+
},
|
|
111
|
+
'.ql-snow .ql-tooltip a.ql-action::after': {
|
|
112
|
+
content: '"Ändra"'
|
|
113
|
+
},
|
|
114
|
+
'.ql-snow .ql-tooltip a.ql-remove::before': {
|
|
115
|
+
content: '"Ta bort"'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=text-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/text-editor.ts"],"sourcesContent":["export const TextEditor = () => ({\r\n '.sk-texteditor': {\r\n '.ql-toolbar.ql-snow': {\r\n '@apply flex items-center bg-background-200 rounded-t-xl border-input-field-outline h-[4rem] pl-4': {},\r\n '.ql-stroke': {\r\n '@apply stroke-dark-primary': {},\r\n },\r\n '.ql-fill': {\r\n '@apply fill-dark-primary': {},\r\n },\r\n '.ql-divider': {\r\n '@apply w-[0.1rem] h-[3.2rem] bg-divider mr-[1.2rem]': {},\r\n },\r\n '.tooltip-container': {\r\n '@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':\r\n {},\r\n },\r\n '.ql-formats': {\r\n '@apply flex gap-4 mr-[1.2rem]': {},\r\n },\r\n\r\n svg: {\r\n '@apply h-[2.0rem] w-[2.0rem]': {},\r\n },\r\n\r\n button: {\r\n '@apply h-[3.2rem] w-[3.2rem] rounded-10 text-dark-primary': {},\r\n '&:hover, &:hover:focus-visible': {\r\n '@apply bg-tertiary-surface-hover': {},\r\n },\r\n '&:focus-visible': {\r\n '@apply ring-[.2rem] ring-ring ring-offset-0 outline-0 bg-background-content': {},\r\n },\r\n\r\n '&.ql-active': {\r\n '@apply bg-tertiary-surface-hover': {},\r\n '.ql-fill': {\r\n '@apply fill-dark-primary': {},\r\n },\r\n '.ql-stroke': {\r\n '@apply stroke-dark-primary': {},\r\n },\r\n },\r\n '&:hover .ql-fill, &:focus-visible .ql-fill': {\r\n '@apply fill-dark-primary': {},\r\n },\r\n '&:hover .ql-stroke, &:focus-visible .ql-stroke': {\r\n '@apply stroke-dark-primary': {},\r\n },\r\n '&:hover .tooltip-container, &:focus-visible .tooltip-container': {\r\n '@apply visible opacity-100': {},\r\n },\r\n },\r\n\r\n '&.ql-disabled': {\r\n '@apply border-input-field-outline-disabled': {},\r\n '.ql-fill': {\r\n '@apply fill-dark-disabled': {},\r\n },\r\n '.ql-stroke': {\r\n '@apply stroke-dark-disabled': {},\r\n },\r\n button: {\r\n '@apply bg-background-200 text-dark-disabled cursor-default': {},\r\n '&.ql-active': {\r\n '@apply bg-background-200 text-dark-disabled': {},\r\n },\r\n '&:hover': {\r\n '@apply bg-background-200 text-dark-disabled': {},\r\n },\r\n '&:hover .ql-fill': {\r\n '@apply fill-dark-disabled': {},\r\n },\r\n '&:hover .ql-stroke': {\r\n '@apply stroke-dark-disabled': {},\r\n },\r\n '&:hover .tooltip-container': {\r\n '@apply hidden opacity-0': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '.ql-container.ql-snow': {\r\n '@apply border-input-field-outline rounded-b-xl': {},\r\n ':focus-visible': {\r\n '@apply ring-[.2rem] ring-ring ring-offset-0 outline-0 rounded-b-xl': {},\r\n },\r\n '&.disable-toolbar': {\r\n '@apply rounded-t-xl': {},\r\n ':focus-visible': {\r\n '@apply rounded-t-xl': {},\r\n },\r\n },\r\n '&.ql-disabled': {\r\n '@apply bg-input-field-surface-disabled border-input-field-outline-disabled': {},\r\n },\r\n },\r\n\r\n // Tooltip-text\r\n '.ql-tooltip.ql-editing': {\r\n input: {\r\n '@apply rounded-0': {},\r\n '&:focus-visible': {\r\n '@apply rounded-0': {},\r\n },\r\n },\r\n },\r\n '.ql-snow .ql-tooltip.ql-editing a.ql-action::after': {\r\n content: '\"Spara\"',\r\n },\r\n '.ql-snow .ql-tooltip[data-mode=link]::before': {\r\n content: '\"Ange länk:\"',\r\n },\r\n '.ql-snow .ql-tooltip::before': {\r\n content: '\"Besök URL:\"',\r\n },\r\n '.ql-snow .ql-tooltip a.ql-action::after': {\r\n content: '\"Ändra\"',\r\n },\r\n '.ql-snow .ql-tooltip a.ql-remove::before': {\r\n content: '\"Ta bort\"',\r\n },\r\n },\r\n});\r\n"],"names":["TextEditor","svg","button","input","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;oBACxB,kBAAkB;wBAChB,uBAAuB,CAAC;oBAC1B;gBACF;gBACA,iBAAiB;oBACf,8EAA8E,CAAC;gBACjF;YACF;YAEA,eAAe;YACf,0BAA0B;gBACxBC,OAAO;oBACL,oBAAoB,CAAC;oBACrB,mBAAmB;wBACjB,oBAAoB,CAAC;oBACvB;gBACF;YACF;YACA,sDAAsD;gBACpDC,SAAS;YACX;YACA,gDAAgD;gBAC9CA,SAAS;YACX;YACA,gCAAgC;gBAC9BA,SAAS;YACX;YACA,2CAA2C;gBACzCA,SAAS;YACX;YACA,4CAA4C;gBAC1CA,SAAS;YACX;QACF;IACF,CAAA,EAAG"}
|
package/dist/esm/components.js
CHANGED
|
@@ -40,6 +40,7 @@ import { Spinner } from './components/spinner.js';
|
|
|
40
40
|
import { Switch } from './components/switch.js';
|
|
41
41
|
import { Table } from './components/table.js';
|
|
42
42
|
import { Tabs } from './components/tabs.js';
|
|
43
|
+
import { TextEditor } from './components/text-editor.js';
|
|
43
44
|
import { Tooltip } from './components/tooltip.js';
|
|
44
45
|
import { UserMenu } from './components/user-menu.js';
|
|
45
46
|
//AI COMPONENTS
|
|
@@ -272,6 +273,9 @@ export const components = [
|
|
|
272
273
|
{
|
|
273
274
|
comp: Spinner
|
|
274
275
|
},
|
|
276
|
+
{
|
|
277
|
+
comp: TextEditor
|
|
278
|
+
},
|
|
275
279
|
{
|
|
276
280
|
comp: Radio
|
|
277
281
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components.ts"],"sourcesContent":["import { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\r\n\r\n// components\r\nimport { Accordion } from './components/accordion';\r\nimport { Avatar } from './components/avatar';\r\nimport { Badge } from './components/badge';\r\nimport { Breadcrumb } from './components/breadcrumb';\r\nimport { Button } from './components/button';\r\nimport { ButtonGroup } from './components/button-group';\r\nimport { Callout } from './components/callout';\r\nimport { Card } from './components/card';\r\nimport { Checkbox } from './components/checkbox';\r\nimport { Chip } from './components/chip';\r\nimport { ComboBox } from './components/combobox';\r\nimport { CookieConsent } from './components/cookie-consent';\r\nimport { Dialog } from './components/dialog';\r\nimport { Divider } from './components/divider';\r\nimport { Dot } from './components/dot';\r\nimport { FileUpload } from './components/file-upload';\r\nimport { Filter } from './components/filter';\r\nimport { Footer } from './components/footer';\r\nimport { Forms } from './components/forms';\r\nimport { Header } from './components/header';\r\nimport { Icon } from './components/icon';\r\nimport { Input } from './components/input';\r\nimport { Label } from './components/label';\r\nimport { Link } from './components/link';\r\nimport { List } from './components/list';\r\nimport { Logo } from './components/logo';\r\nimport { MenuVertical } from './components/menu-vertical';\r\nimport { MenuBar } from './components/menubar';\r\nimport { Modal } from './components/modal';\r\nimport { Pagination } from './components/pagination';\r\nimport { PopupMenu } from './components/popup-menu';\r\nimport { ProgressBar } from './components/progress-bar';\r\nimport { ProgressStepper } from './components/progress-stepper';\r\nimport { Radio } from './components/radio';\r\nimport { SearchField } from './components/search-field';\r\nimport { Select } from './components/select';\r\nimport { Snackbar } from './components/snackbar';\r\nimport { Spinner } from './components/spinner';\r\nimport { Switch } from './components/switch';\r\nimport { Table } from './components/table';\r\nimport { Tabs } from './components/tabs';\r\nimport { Tooltip } from './components/tooltip';\r\nimport { UserMenu } from './components/user-menu';\r\n//AI COMPONENTS\r\nimport { AIFeed } from './components/ai/ai-feed';\r\nimport { AICornerModule } from './components/ai/ai-corner-module';\r\nimport { AIServiceModule } from './components/ai/ai-service-module';\r\nimport { AssistantPresentation } from './components/ai/assistant-presentation';\r\nimport { AssistantSwitch } from './components/ai/assistant-switch';\r\nimport { Bubble } from './components/ai/bubble';\r\nimport { Feedback } from './components/ai/feedback';\r\nimport { InputSection } from './components/ai/input-section';\r\nimport { MarkdownRendered } from './components/ai/markdown-rendered';\r\nimport { NewSessionButton } from './components/ai/new-session-button';\r\nimport { TypingBubble } from './components/ai/typing-bubble';\r\nimport { TypingSequence } from './components/ai/typing-sequence';\r\n\r\nexport type Component = (colors: string[], theme: PluginAPI['theme']) => CSSRuleObject;\r\ninterface ComponentWithDeps {\r\n comp: Component;\r\n deps?: Component[];\r\n}\r\n\r\nexport const components: ComponentWithDeps[] = [\r\n { comp: Accordion, deps: [Button, Divider, Icon, Label] },\r\n { comp: Avatar },\r\n { comp: Badge },\r\n { comp: Breadcrumb, deps: [Link] },\r\n { comp: Button, deps: [Link, Spinner, ButtonGroup] },\r\n { comp: ButtonGroup },\r\n { comp: Callout },\r\n { comp: Card, deps: [Button, Link] },\r\n { comp: Checkbox },\r\n { comp: Chip, deps: [Icon] },\r\n { comp: ComboBox },\r\n { comp: CookieConsent, deps: [Button, Forms] },\r\n { comp: Dialog, deps: [Modal] },\r\n { comp: Divider },\r\n { comp: Dot },\r\n { comp: FileUpload, deps: [Icon, Forms, Button, PopupMenu, Modal, Divider, Link] },\r\n { comp: Filter, deps: [Badge, Forms] },\r\n { comp: Footer, deps: [Divider, Link, Logo] },\r\n { comp: Forms, deps: [Icon, Checkbox, ComboBox, Select, Input, Radio, Switch, PopupMenu] },\r\n { comp: Header, deps: [Divider, Link, Logo] },\r\n { comp: Input },\r\n { comp: Label },\r\n { comp: Link, deps: [Icon] },\r\n { comp: List, deps: [Link] },\r\n { comp: Logo, deps: [Divider] },\r\n { comp: MenuBar, deps: [PopupMenu] },\r\n { comp: Icon },\r\n { comp: MenuVertical, deps: [Button, Divider, Icon, Logo] },\r\n { comp: Modal, deps: [Button, Icon] },\r\n { comp: Pagination, deps: [Button, Forms, Icon] },\r\n { comp: PopupMenu, deps: [Button, Link] },\r\n { comp: ProgressBar },\r\n { comp: ProgressStepper, deps: [Divider, Icon] },\r\n { comp: SearchField, deps: [Button, Forms, Icon] },\r\n { comp: Select },\r\n { comp: Snackbar, deps: [Button, Icon] },\r\n { comp: Spinner },\r\n { comp: Radio },\r\n { comp: Switch, deps: [Icon] },\r\n { comp: Table, deps: [Forms, Icon, Pagination] },\r\n { comp: Tabs, deps: [Button, MenuBar] },\r\n { comp: Tooltip },\r\n { comp: UserMenu, deps: [Avatar, Logo, PopupMenu] },\r\n\r\n //AI COMPONENTS\r\n\r\n { comp: AIFeed, deps: [Accordion, Button, Avatar, TypingBubble, Feedback, MarkdownRendered] },\r\n {\r\n comp: AICornerModule,\r\n deps: [AIFeed, AssistantPresentation, InputSection, Avatar, Bubble, Link, Button, Divider, Icon, Tooltip, MenuBar],\r\n },\r\n { comp: AIServiceModule, deps: [AIFeed, Bubble, InputSection, Forms, Link, Button, Icon] },\r\n { comp: AssistantPresentation, deps: [Avatar] },\r\n { comp: AssistantSwitch, deps: [Avatar, Icon] },\r\n { comp: Bubble, deps: [Icon] },\r\n { comp: Feedback, deps: [Button, Icon] },\r\n { comp: InputSection, deps: [Forms, Button, Icon] },\r\n { comp: MarkdownRendered, deps: [Link] },\r\n { comp: NewSessionButton, deps: [Button, Icon] },\r\n { comp: TypingBubble, deps: [TypingSequence] },\r\n { comp: TypingSequence },\r\n];\r\n"],"names":["Accordion","Avatar","Badge","Breadcrumb","Button","ButtonGroup","Callout","Card","Checkbox","Chip","ComboBox","CookieConsent","Dialog","Divider","Dot","FileUpload","Filter","Footer","Forms","Header","Icon","Input","Label","Link","List","Logo","MenuVertical","MenuBar","Modal","Pagination","PopupMenu","ProgressBar","ProgressStepper","Radio","SearchField","Select","Snackbar","Spinner","Switch","Table","Tabs","Tooltip","UserMenu","AIFeed","AICornerModule","AIServiceModule","AssistantPresentation","AssistantSwitch","Bubble","Feedback","InputSection","MarkdownRendered","NewSessionButton","TypingBubble","TypingSequence","components","comp","deps"],"mappings":"AAEA,aAAa;AACb,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,OAAO,QAAQ,uBAAuB;AAC/C,SAASC,IAAI,QAAQ,oB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components\r\nimport { Accordion } from './components/accordion';\r\nimport { Avatar } from './components/avatar';\r\nimport { Badge } from './components/badge';\r\nimport { Breadcrumb } from './components/breadcrumb';\r\nimport { Button } from './components/button';\r\nimport { ButtonGroup } from './components/button-group';\r\nimport { Callout } from './components/callout';\r\nimport { Card } from './components/card';\r\nimport { Checkbox } from './components/checkbox';\r\nimport { Chip } from './components/chip';\r\nimport { ComboBox } from './components/combobox';\r\nimport { CookieConsent } from './components/cookie-consent';\r\nimport { Dialog } from './components/dialog';\r\nimport { Divider } from './components/divider';\r\nimport { Dot } from './components/dot';\r\nimport { FileUpload } from './components/file-upload';\r\nimport { Filter } from './components/filter';\r\nimport { Footer } from './components/footer';\r\nimport { Forms } from './components/forms';\r\nimport { Header } from './components/header';\r\nimport { Icon } from './components/icon';\r\nimport { Input } from './components/input';\r\nimport { Label } from './components/label';\r\nimport { Link } from './components/link';\r\nimport { List } from './components/list';\r\nimport { Logo } from './components/logo';\r\nimport { MenuVertical } from './components/menu-vertical';\r\nimport { MenuBar } from './components/menubar';\r\nimport { Modal } from './components/modal';\r\nimport { Pagination } from './components/pagination';\r\nimport { PopupMenu } from './components/popup-menu';\r\nimport { ProgressBar } from './components/progress-bar';\r\nimport { ProgressStepper } from './components/progress-stepper';\r\nimport { Radio } from './components/radio';\r\nimport { SearchField } from './components/search-field';\r\nimport { Select } from './components/select';\r\nimport { Snackbar } from './components/snackbar';\r\nimport { Spinner } from './components/spinner';\r\nimport { Switch } from './components/switch';\r\nimport { Table } from './components/table';\r\nimport { Tabs } from './components/tabs';\r\nimport { TextEditor } from './components/text-editor';\r\nimport { Tooltip } from './components/tooltip';\r\nimport { UserMenu } from './components/user-menu';\r\n//AI COMPONENTS\r\nimport { AIFeed } from './components/ai/ai-feed';\r\nimport { AICornerModule } from './components/ai/ai-corner-module';\r\nimport { AIServiceModule } from './components/ai/ai-service-module';\r\nimport { AssistantPresentation } from './components/ai/assistant-presentation';\r\nimport { AssistantSwitch } from './components/ai/assistant-switch';\r\nimport { Bubble } from './components/ai/bubble';\r\nimport { Feedback } from './components/ai/feedback';\r\nimport { InputSection } from './components/ai/input-section';\r\nimport { MarkdownRendered } from './components/ai/markdown-rendered';\r\nimport { NewSessionButton } from './components/ai/new-session-button';\r\nimport { TypingBubble } from './components/ai/typing-bubble';\r\nimport { TypingSequence } from './components/ai/typing-sequence';\r\n\r\nexport type Component = (colors: string[], theme: PluginAPI['theme']) => CSSRuleObject;\r\ninterface ComponentWithDeps {\r\n comp: Component;\r\n deps?: Component[];\r\n}\r\n\r\nexport const components: ComponentWithDeps[] = [\r\n { comp: Accordion, deps: [Button, Divider, Icon, Label] },\r\n { comp: Avatar },\r\n { comp: Badge },\r\n { comp: Breadcrumb, deps: [Link] },\r\n { comp: Button, deps: [Link, Spinner, ButtonGroup] },\r\n { comp: ButtonGroup },\r\n { comp: Callout },\r\n { comp: Card, deps: [Button, Link] },\r\n { comp: Checkbox },\r\n { comp: Chip, deps: [Icon] },\r\n { comp: ComboBox },\r\n { comp: CookieConsent, deps: [Button, Forms] },\r\n { comp: Dialog, deps: [Modal] },\r\n { comp: Divider },\r\n { comp: Dot },\r\n { comp: FileUpload, deps: [Icon, Forms, Button, PopupMenu, Modal, Divider, Link] },\r\n { comp: Filter, deps: [Badge, Forms] },\r\n { comp: Footer, deps: [Divider, Link, Logo] },\r\n { comp: Forms, deps: [Icon, Checkbox, ComboBox, Select, Input, Radio, Switch, PopupMenu] },\r\n { comp: Header, deps: [Divider, Link, Logo] },\r\n { comp: Input },\r\n { comp: Label },\r\n { comp: Link, deps: [Icon] },\r\n { comp: List, deps: [Link] },\r\n { comp: Logo, deps: [Divider] },\r\n { comp: MenuBar, deps: [PopupMenu] },\r\n { comp: Icon },\r\n { comp: MenuVertical, deps: [Button, Divider, Icon, Logo] },\r\n { comp: Modal, deps: [Button, Icon] },\r\n { comp: Pagination, deps: [Button, Forms, Icon] },\r\n { comp: PopupMenu, deps: [Button, Link] },\r\n { comp: ProgressBar },\r\n { comp: ProgressStepper, deps: [Divider, Icon] },\r\n { comp: SearchField, deps: [Button, Forms, Icon] },\r\n { comp: Select },\r\n { comp: Snackbar, deps: [Button, Icon] },\r\n { comp: Spinner },\r\n { comp: TextEditor },\r\n { comp: Radio },\r\n { comp: Switch, deps: [Icon] },\r\n { comp: Table, deps: [Forms, Icon, Pagination] },\r\n { comp: Tabs, deps: [Button, MenuBar] },\r\n { comp: Tooltip },\r\n { comp: UserMenu, deps: [Avatar, Logo, PopupMenu] },\r\n\r\n //AI COMPONENTS\r\n\r\n { comp: AIFeed, deps: [Accordion, Button, Avatar, TypingBubble, Feedback, MarkdownRendered] },\r\n {\r\n comp: AICornerModule,\r\n deps: [AIFeed, AssistantPresentation, InputSection, Avatar, Bubble, Link, Button, Divider, Icon, Tooltip, MenuBar],\r\n },\r\n { comp: AIServiceModule, deps: [AIFeed, Bubble, InputSection, Forms, Link, Button, Icon] },\r\n { comp: AssistantPresentation, deps: [Avatar] },\r\n { comp: AssistantSwitch, deps: [Avatar, Icon] },\r\n { comp: Bubble, deps: [Icon] },\r\n { comp: Feedback, deps: [Button, Icon] },\r\n { comp: InputSection, deps: [Forms, Button, Icon] },\r\n { comp: MarkdownRendered, deps: [Link] },\r\n { comp: NewSessionButton, deps: [Button, Icon] },\r\n { comp: TypingBubble, deps: [TypingSequence] },\r\n { comp: TypingSequence },\r\n];\r\n"],"names":["Accordion","Avatar","Badge","Breadcrumb","Button","ButtonGroup","Callout","Card","Checkbox","Chip","ComboBox","CookieConsent","Dialog","Divider","Dot","FileUpload","Filter","Footer","Forms","Header","Icon","Input","Label","Link","List","Logo","MenuVertical","MenuBar","Modal","Pagination","PopupMenu","ProgressBar","ProgressStepper","Radio","SearchField","Select","Snackbar","Spinner","Switch","Table","Tabs","TextEditor","Tooltip","UserMenu","AIFeed","AICornerModule","AIServiceModule","AssistantPresentation","AssistantSwitch","Bubble","Feedback","InputSection","MarkdownRendered","NewSessionButton","TypingBubble","TypingSequence","components","comp","deps"],"mappings":"AAE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;YAAOd;YAAQgB;SAAK;IAAC;IAClD;QAAEqC,MAAML;QAAkBM,MAAM;YAACnC;SAAK;IAAC;IACvC;QAAEkC,MAAMJ;QAAkBK,MAAM;YAACtD;YAAQgB;SAAK;IAAC;IAC/C;QAAEqC,MAAMH;QAAcI,MAAM;YAACH;SAAe;IAAC;IAC7C;QAAEE,MAAMF;IAAe;CACxB,CAAC"}
|
package/dist/esm/data-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/data-plugin.ts"],"sourcesContent":["import TailwindPlugin from 'tailwindcss/plugin';\r\n\r\nexport const DataAttributes = TailwindPlugin(function ({ addVariant }) {\r\n const attributes: Record<string, Array<string>> = {\r\n open: ['true', 'false'],\r\n rounded: ['true', 'false'],\r\n inverted: ['true', 'false'],\r\n size: ['xs', 'sm', 'md', 'lg', 'xl'],\r\n variant: ['primary', 'secondary', 'tertiary', 'default', 'alt'],\r\n accent: ['true', 'false'],\r\n background: ['true', 'false'],\r\n };\r\n\r\n Object.keys(attributes).forEach((key) => {\r\n attributes[key].forEach((element) => {\r\n let selector = `data-${key}-${element}`;\r\n if (element == 'true') {\r\n selector = `data-${key}`;\r\n } else if (element == 'false') {\r\n selector = `data-!${key}`;\r\n }\r\n addVariant(selector, `&[data-${key}=\"${element}\"]`);\r\n });\r\n });\r\n});\r\n"],"names":["TailwindPlugin","DataAttributes","addVariant","attributes","open","rounded","inverted","size","variant","accent","background","Object","keys","forEach","key","element","selector"],"mappings":"AAAA,OAAOA,oBAAoB,qBAAqB;AAEhD,OAAO,MAAMC,iBAAiBD,eAAe,SAAU,
|
|
1
|
+
{"version":3,"sources":["../../src/data-plugin.ts"],"sourcesContent":["import TailwindPlugin from 'tailwindcss/plugin';\r\n\r\nexport const DataAttributes = TailwindPlugin(function ({ addVariant }) {\r\n const attributes: Record<string, Array<string>> = {\r\n open: ['true', 'false'],\r\n rounded: ['true', 'false'],\r\n inverted: ['true', 'false'],\r\n size: ['xs', 'sm', 'md', 'lg', 'xl'],\r\n variant: ['primary', 'secondary', 'tertiary', 'default', 'alt'],\r\n accent: ['true', 'false'],\r\n background: ['true', 'false'],\r\n };\r\n\r\n Object.keys(attributes).forEach((key) => {\r\n attributes[key].forEach((element) => {\r\n let selector = `data-${key}-${element}`;\r\n if (element == 'true') {\r\n selector = `data-${key}`;\r\n } else if (element == 'false') {\r\n selector = `data-!${key}`;\r\n }\r\n addVariant(selector, `&[data-${key}=\"${element}\"]`);\r\n });\r\n });\r\n});\r\n"],"names":["TailwindPlugin","DataAttributes","addVariant","attributes","open","rounded","inverted","size","variant","accent","background","Object","keys","forEach","key","element","selector"],"mappings":"AAAA,OAAOA,oBAAoB,qBAAqB;AAEhD,OAAO,MAAMC,iBAAiBD,eAAe,SAAU,EAAEE,UAAU,EAAE;IACnE,MAAMC,aAA4C;QAChDC,MAAM;YAAC;YAAQ;SAAQ;QACvBC,SAAS;YAAC;YAAQ;SAAQ;QAC1BC,UAAU;YAAC;YAAQ;SAAQ;QAC3BC,MAAM;YAAC;YAAM;YAAM;YAAM;YAAM;SAAK;QACpCC,SAAS;YAAC;YAAW;YAAa;YAAY;YAAW;SAAM;QAC/DC,QAAQ;YAAC;YAAQ;SAAQ;QACzBC,YAAY;YAAC;YAAQ;SAAQ;IAC/B;IAEAC,OAAOC,IAAI,CAACT,YAAYU,OAAO,CAAC,CAACC;QAC/BX,UAAU,CAACW,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;YACAZ,WAAWc,UAAU,CAAC,OAAO,EAAEF,IAAI,EAAE,EAAEC,QAAQ,EAAE,CAAC;QACpD;IACF;AACF,GAAG"}
|
package/dist/esm/plugin.js
CHANGED
|
@@ -56,8 +56,7 @@ const plugin = TailwindPlugin.withOptions(function(_options) {
|
|
|
56
56
|
compWithDeps.comp
|
|
57
57
|
];
|
|
58
58
|
}, []).filter((val, index, arr)=>arr.indexOf(val) === index);
|
|
59
|
-
return function(
|
|
60
|
-
let { addComponents, addBase, theme } = param;
|
|
59
|
+
return function({ addComponents, addBase, theme }) {
|
|
61
60
|
const optionColors = [
|
|
62
61
|
...defaultColors,
|
|
63
62
|
...options.colors || []
|