@sk-web-gui/core 4.3.2 → 4.3.3
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/components/ai/bubble.js +1 -4
- package/dist/cjs/components/ai/bubble.js.map +1 -1
- package/dist/cjs/components/input.js +13 -13
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/esm/components/ai/bubble.js +1 -4
- package/dist/esm/components/ai/bubble.js.map +1 -1
- package/dist/esm/components/input.js +13 -13
- package/dist/esm/components/input.js.map +1 -1
- package/dist/types/components/ai/bubble.d.ts +0 -3
- package/dist/types/components/input.d.ts +12 -12
- package/package.json +2 -2
- package/dist/cjs/components/menubar.js +0 -72
- package/dist/cjs/components/menubar.js.map +0 -1
- package/dist/cjs/components/segmented-control.js +0 -57
- package/dist/cjs/components/segmented-control.js.map +0 -1
- package/dist/esm/components/menubar.js +0 -62
- package/dist/esm/components/menubar.js.map +0 -1
- package/dist/esm/components/segmented-control.js +0 -47
- package/dist/esm/components/segmented-control.js.map +0 -1
- package/dist/types/components/countrycode-select.d.ts +0 -5
- package/dist/types/components/menubar.d.ts +0 -44
- package/dist/types/components/segmented-control.d.ts +0 -43
|
@@ -76,10 +76,7 @@ const Bubble = (colors)=>({
|
|
|
76
76
|
'@apply rounded-tl-16 rounded-bl-0': {},
|
|
77
77
|
'@apply bg-transparent': {},
|
|
78
78
|
'@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {},
|
|
79
|
-
'@apply scale-y-[25%]': {}
|
|
80
|
-
'&:before': {
|
|
81
|
-
'&[data-shadow="true"]': {}
|
|
82
|
-
}
|
|
79
|
+
'@apply scale-y-[25%]': {}
|
|
83
80
|
},
|
|
84
81
|
'&[data-shadow="true"]': {
|
|
85
82
|
'@apply shadow-[0_1px_0_0_rgba(0,0,0,0.2)]': {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ai/bubble.ts"],"sourcesContent":["export const Bubble = (colors: string[]) => ({\r\n '.sk-ai-bubble': {\r\n '@apply inline-flex text-left items-center justify-start': {},\r\n '@apply w-fit': {},\r\n '@apply focus-visible:ring ring-ring': {},\r\n '@apply relative': {},\r\n '@apply rounded-t-button rounded-br-button': {},\r\n '@apply pt-10 pr-12 pb-10 pl-14': {},\r\n '@apply gap-16': {},\r\n\r\n '@apply text-small': {},\r\n '@apply text-dark-secondary': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-accent hover:bg-${color}-surface-accent-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n [`@apply bg-${color}-surface-primary hover:bg-${color}-surface-primary-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n '&[data-color=\"primary\"]': {\r\n '@apply bg-inverted-primary-surface hover:bg-inverted-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '@apply bg-primary-surface hover:bg-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n '&-tail': {\r\n '@apply text-base': {},\r\n '@apply absolute left-0 bottom-[-1.25em]': {},\r\n '@apply w-32 h-32': {},\r\n '@apply rounded-tl-16 rounded-bl-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {},\r\n '@apply scale-y-[25%]': {},\r\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ai/bubble.ts"],"sourcesContent":["export const Bubble = (colors: string[]) => ({\r\n '.sk-ai-bubble': {\r\n '@apply inline-flex text-left items-center justify-start': {},\r\n '@apply w-fit': {},\r\n '@apply focus-visible:ring ring-ring': {},\r\n '@apply relative': {},\r\n '@apply rounded-t-button rounded-br-button': {},\r\n '@apply pt-10 pr-12 pb-10 pl-14': {},\r\n '@apply gap-16': {},\r\n\r\n '@apply text-small': {},\r\n '@apply text-dark-secondary': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-accent hover:bg-${color}-surface-accent-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n [`@apply bg-${color}-surface-primary hover:bg-${color}-surface-primary-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n '&[data-color=\"primary\"]': {\r\n '@apply bg-inverted-primary-surface hover:bg-inverted-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '@apply bg-primary-surface hover:bg-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n '&-tail': {\r\n '@apply text-base': {},\r\n '@apply absolute left-0 bottom-[-1.25em]': {},\r\n '@apply w-32 h-32': {},\r\n '@apply rounded-tl-16 rounded-bl-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {},\r\n '@apply scale-y-[25%]': {},\r\n },\r\n\r\n '&[data-shadow=\"true\"]': {\r\n '@apply shadow-[0_1px_0_0_rgba(0,0,0,0.2)]': {},\r\n '.sk-ai-bubble-tail:before': {\r\n '@apply content-[\"\"]': {},\r\n '@apply absolute left-0 bottom-[-0.15625em]': {},\r\n '@apply w-32 h-32': {},\r\n '@apply rounded-tl-16 rounded-bl-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply shadow-[0_-0.15625em_0_0_rgb(0,0,0,0.2)]': {},\r\n 'clip-path': 'polygon(0 0, 0 1em, 0.25em 1em, 0.59375em 0)',\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Bubble","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,SAAS,CAACC,SAAsB,CAAA;QAC3C,iBAAiB;YACf,2DAA2D,CAAC;YAC5D,gBAAgB,CAAC;YACjB,uCAAuC,CAAC;YACxC,mBAAmB,CAAC;YACpB,6CAA6C,CAAC;Y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BACA,WAAW;wBACT,sBAAsB;4BACpB,CAAC,CAAC,mCAAmC,CAAC,CAAC,EAAE,CAAC;wBAC5C;oBACF;gBACF;YACF;YACA,UAAU;gBACR,oBAAoB,CAAC;gBACrB,2CAA2C,CAAC;gBAC5C,oBAAoB,CAAC;gBACrB,qCAAqC,CAAC;gBACtC,yBAAyB,CAAC;gBAC1B,qDAAqD,CAAC;gBACtD,wBAAwB,CAAC;YAC3B;YAEA,yBAAyB;gBACvB,6CAA6C,CAAC;gBAC9C,6BAA6B;oBAC3B,uBAAuB,CAAC;oBACxB,8CAA8C,CAAC;oBAC/C,oBAAoB,CAAC;oBACrB,qCAAqC,CAAC;oBACtC,yBAAyB,CAAC;oBAC1B,mDAAmD,CAAC;oBACpD,aAAa;gBACf;YACF;QACF;IACF,CAAA"}
|
|
@@ -240,19 +240,19 @@ function timeAndDatePicker() {
|
|
|
240
240
|
'@apply pl-6 md:pl-8': {},
|
|
241
241
|
'@apply m-0': {},
|
|
242
242
|
'@apply bg-none': {},
|
|
243
|
-
'@apply bg-dark-secondary': {}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
243
|
+
'@apply bg-dark-secondary': {}
|
|
244
|
+
},
|
|
245
|
+
'&.sk-form-input-sm::-webkit-inner-spin-button, &.sk-form-input-sm::-webkit-calendar-picker-indicator': {
|
|
246
|
+
'@apply w-16 h-16': {},
|
|
247
|
+
'@apply -mr-2': {}
|
|
248
|
+
},
|
|
249
|
+
'&.sk-form-input-md::-webkit-inner-spin-button, &.sk-form-input-md::-webkit-calendar-picker-indicator': {
|
|
250
|
+
'@apply -mr-4': {},
|
|
251
|
+
'@apply w-18 h-18': {}
|
|
252
|
+
},
|
|
253
|
+
'&.sk-form-input-lg::-webkit-inner-spin-button, &.sk-form-input-lg::-webkit-calendar-picker-indicator': {
|
|
254
|
+
'@apply -mr-6': {},
|
|
255
|
+
'@apply w-20 h-20': {}
|
|
256
256
|
},
|
|
257
257
|
'&[type="date"]::-webkit-inner-spin-button, &[type="date"]::-webkit-calendar-picker-indicator': {
|
|
258
258
|
mask: [
|
|
@@ -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 addon() {\r\n return {\r\n '&-addon': {\r\n '@apply flex flex-none 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 '&-outer': {\r\n '@apply flex gap-0 max-w-full': {},\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n },\r\n },\r\n '&-inner': {\r\n '@apply flex relative grow': {},\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\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\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\nfunction textareaGroup() {\r\n return {\r\n '&-textarea': {\r\n ...inputGroup(),\r\n '&-group-inner': {\r\n '@apply h-auto': {},\r\n '@apply flex-wrap': {},\r\n '.sk-form-input-textarea': {\r\n '@apply w-full': {},\r\n },\r\n '.sk-form-textarea-counter': {\r\n '@apply w-full': {},\r\n '@apply border-t-divider border-t-1': {},\r\n },\r\n '&&-lg': {\r\n '@apply min-h-48 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n },\r\n },\r\n '&&-md': {\r\n '@apply min-h-40 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n },\r\n },\r\n '&&-sm': {\r\n '@apply min-h-32 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n },\r\n },\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 ...textareaGroup(),\r\n },\r\n});\r\n"],"names":["Input","calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","textareaGroup","display","margin"],"mappings":";;;;+BAyUaA;;;eAAAA;;;AAzUb,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;oBAC5B,iBAAiB,CAAC;oBAClB,gBAAgB,CAAC;gBACnB;gBACA,+BAA+B;oBAC7B,iBAAiB,CAAC;oBAClB,gBAAgB,CAAC;gBACnB;gBACAA,KAAK;oBACH,oBAAoB,CAAC;gBAC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D,8CAA8C;gBAC5C,iDAAiD,CAAC;YACpD;YACA,GAAGL,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;YACV,GAAGK,eAAe;QACpB;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 flex-none 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 '&-outer': {\r\n '@apply flex gap-0 max-w-full': {},\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n },\r\n },\r\n '&-inner': {\r\n '@apply flex relative grow': {},\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\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\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 },\r\n '&.sk-form-input-sm::-webkit-inner-spin-button, &.sk-form-input-sm::-webkit-calendar-picker-indicator': {\r\n '@apply w-16 h-16': {},\r\n '@apply -mr-2': {},\r\n },\r\n '&.sk-form-input-md::-webkit-inner-spin-button, &.sk-form-input-md::-webkit-calendar-picker-indicator': {\r\n '@apply -mr-4': {},\r\n '@apply w-18 h-18': {},\r\n },\r\n '&.sk-form-input-lg::-webkit-inner-spin-button, &.sk-form-input-lg::-webkit-calendar-picker-indicator': {\r\n '@apply -mr-6': {},\r\n '@apply w-20 h-20': {},\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\nfunction textareaGroup() {\r\n return {\r\n '&-textarea': {\r\n ...inputGroup(),\r\n '&-group-inner': {\r\n '@apply h-auto': {},\r\n '@apply flex-wrap': {},\r\n '.sk-form-input-textarea': {\r\n '@apply w-full': {},\r\n },\r\n '.sk-form-textarea-counter': {\r\n '@apply w-full': {},\r\n '@apply border-t-divider border-t-1': {},\r\n },\r\n '&&-lg': {\r\n '@apply min-h-48 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n },\r\n },\r\n '&&-md': {\r\n '@apply min-h-40 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n },\r\n },\r\n '&&-sm': {\r\n '@apply min-h-32 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n },\r\n },\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 ...textareaGroup(),\r\n },\r\n});\r\n"],"names":["Input","calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","textareaGroup","display","margin"],"mappings":";;;;+BAyUaA;;;eAAAA;;;AAzUb,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;oBAC5B,iBAAiB,CAAC;oB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BAA4B,CAAC;YAC7B,2CAA2C,CAAC;YAC5C,4BAA4B,CAAC;YAC7B,iCAAiC,CAAC;YAClC,mCAAmC,CAAC;YACpC,kDAAkD,CAAC;YACnD,8CAA8C;gBAC5C,iDAAiD,CAAC;YACpD;YACA,GAAGL,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;YACV,GAAGK,eAAe;QACpB;IACF,CAAA"}
|
|
@@ -66,10 +66,7 @@ export const Bubble = (colors)=>({
|
|
|
66
66
|
'@apply rounded-tl-16 rounded-bl-0': {},
|
|
67
67
|
'@apply bg-transparent': {},
|
|
68
68
|
'@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {},
|
|
69
|
-
'@apply scale-y-[25%]': {}
|
|
70
|
-
'&:before': {
|
|
71
|
-
'&[data-shadow="true"]': {}
|
|
72
|
-
}
|
|
69
|
+
'@apply scale-y-[25%]': {}
|
|
73
70
|
},
|
|
74
71
|
'&[data-shadow="true"]': {
|
|
75
72
|
'@apply shadow-[0_1px_0_0_rgba(0,0,0,0.2)]': {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ai/bubble.ts"],"sourcesContent":["export const Bubble = (colors: string[]) => ({\r\n '.sk-ai-bubble': {\r\n '@apply inline-flex text-left items-center justify-start': {},\r\n '@apply w-fit': {},\r\n '@apply focus-visible:ring ring-ring': {},\r\n '@apply relative': {},\r\n '@apply rounded-t-button rounded-br-button': {},\r\n '@apply pt-10 pr-12 pb-10 pl-14': {},\r\n '@apply gap-16': {},\r\n\r\n '@apply text-small': {},\r\n '@apply text-dark-secondary': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-accent hover:bg-${color}-surface-accent-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n [`@apply bg-${color}-surface-primary hover:bg-${color}-surface-primary-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n '&[data-color=\"primary\"]': {\r\n '@apply bg-inverted-primary-surface hover:bg-inverted-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '@apply bg-primary-surface hover:bg-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n '&-tail': {\r\n '@apply text-base': {},\r\n '@apply absolute left-0 bottom-[-1.25em]': {},\r\n '@apply w-32 h-32': {},\r\n '@apply rounded-tl-16 rounded-bl-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {},\r\n '@apply scale-y-[25%]': {},\r\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ai/bubble.ts"],"sourcesContent":["export const Bubble = (colors: string[]) => ({\r\n '.sk-ai-bubble': {\r\n '@apply inline-flex text-left items-center justify-start': {},\r\n '@apply w-fit': {},\r\n '@apply focus-visible:ring ring-ring': {},\r\n '@apply relative': {},\r\n '@apply rounded-t-button rounded-br-button': {},\r\n '@apply pt-10 pr-12 pb-10 pl-14': {},\r\n '@apply gap-16': {},\r\n\r\n '@apply text-small': {},\r\n '@apply text-dark-secondary': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-accent hover:bg-${color}-surface-accent-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-accent-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n [`@apply bg-${color}-surface-primary hover:bg-${color}-surface-primary-hover`]: {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-${color}-surface-primary-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n '&[data-color=\"primary\"]': {\r\n '@apply bg-inverted-primary-surface hover:bg-inverted-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-inverted-primary-surface-hover`]: {},\r\n },\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '@apply bg-primary-surface hover:bg-primary-surface-hover': {},\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface`]: {},\r\n },\r\n '&:hover': {\r\n '.sk-ai-bubble-tail': {\r\n [`@apply shadow-primary-surface-hover`]: {},\r\n },\r\n },\r\n },\r\n },\r\n '&-tail': {\r\n '@apply text-base': {},\r\n '@apply absolute left-0 bottom-[-1.25em]': {},\r\n '@apply w-32 h-32': {},\r\n '@apply rounded-tl-16 rounded-bl-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {},\r\n '@apply scale-y-[25%]': {},\r\n },\r\n\r\n '&[data-shadow=\"true\"]': {\r\n '@apply shadow-[0_1px_0_0_rgba(0,0,0,0.2)]': {},\r\n '.sk-ai-bubble-tail:before': {\r\n '@apply content-[\"\"]': {},\r\n '@apply absolute left-0 bottom-[-0.15625em]': {},\r\n '@apply w-32 h-32': {},\r\n '@apply rounded-tl-16 rounded-bl-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply shadow-[0_-0.15625em_0_0_rgb(0,0,0,0.2)]': {},\r\n 'clip-path': 'polygon(0 0, 0 1em, 0.25em 1em, 0.59375em 0)',\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Bubble","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,SAAS,CAACC,SAAsB,CAAA;QAC3C,iBAAiB;YACf,2DAA2D,CAAC;YAC5D,gBAAgB,CAAC;YACjB,uCAAuC,CAAC;YACxC,mBAAmB,CAAC;YACpB,6CAA6C,CAAC;YAC9C,kCAAkC,CAAC;YACnC,iBAAiB,CAAC;YAElB,qBAAqB,CAAC;YACtB,8BAA8B,CAAC;YAE/B,2BAA2B;gBACzB,uCAAuC,CAAC;YAC1C;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBAET,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,CAAC,CAAC,UAAU,EAAEA,MAAM,yBAAyB,EAAEA,MAAM,qBAAqB,CAAC,CAAC,EAAE,CAAC;wBAC/E,sBAAsB;4BACpB,CAAC,CAAC,cAAc,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBAC9C;wBACA,WAAW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pD,aAAa;gBACf;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -230,19 +230,19 @@ function timeAndDatePicker() {
|
|
|
230
230
|
'@apply pl-6 md:pl-8': {},
|
|
231
231
|
'@apply m-0': {},
|
|
232
232
|
'@apply bg-none': {},
|
|
233
|
-
'@apply bg-dark-secondary': {}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
233
|
+
'@apply bg-dark-secondary': {}
|
|
234
|
+
},
|
|
235
|
+
'&.sk-form-input-sm::-webkit-inner-spin-button, &.sk-form-input-sm::-webkit-calendar-picker-indicator': {
|
|
236
|
+
'@apply w-16 h-16': {},
|
|
237
|
+
'@apply -mr-2': {}
|
|
238
|
+
},
|
|
239
|
+
'&.sk-form-input-md::-webkit-inner-spin-button, &.sk-form-input-md::-webkit-calendar-picker-indicator': {
|
|
240
|
+
'@apply -mr-4': {},
|
|
241
|
+
'@apply w-18 h-18': {}
|
|
242
|
+
},
|
|
243
|
+
'&.sk-form-input-lg::-webkit-inner-spin-button, &.sk-form-input-lg::-webkit-calendar-picker-indicator': {
|
|
244
|
+
'@apply -mr-6': {},
|
|
245
|
+
'@apply w-20 h-20': {}
|
|
246
246
|
},
|
|
247
247
|
'&[type="date"]::-webkit-inner-spin-button, &[type="date"]::-webkit-calendar-picker-indicator': {
|
|
248
248
|
mask: [
|
|
@@ -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 addon() {\r\n return {\r\n '&-addon': {\r\n '@apply flex flex-none 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 '&-outer': {\r\n '@apply flex gap-0 max-w-full': {},\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n },\r\n },\r\n '&-inner': {\r\n '@apply flex relative grow': {},\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\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\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\nfunction textareaGroup() {\r\n return {\r\n '&-textarea': {\r\n ...inputGroup(),\r\n '&-group-inner': {\r\n '@apply h-auto': {},\r\n '@apply flex-wrap': {},\r\n '.sk-form-input-textarea': {\r\n '@apply w-full': {},\r\n },\r\n '.sk-form-textarea-counter': {\r\n '@apply w-full': {},\r\n '@apply border-t-divider border-t-1': {},\r\n },\r\n '&&-lg': {\r\n '@apply min-h-48 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n },\r\n },\r\n '&&-md': {\r\n '@apply min-h-40 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n },\r\n },\r\n '&&-sm': {\r\n '@apply min-h-32 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n },\r\n },\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 ...textareaGroup(),\r\n },\r\n});\r\n"],"names":["calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","textareaGroup","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;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AAsB;oBACtBC,SAAS;oBACTC,QAAQ;gBACV;gBACA,mBAAmB;YACrB;YAEA,SAAS;gBACP,4BAA4B,CAAC;gBAC7B,gBAAgB,CAAC;gBACjB,gBAAgB,CAAC;gBACjB,gBAAgB,CAAC;gBACjB,2BAA2B,CAAC;gBAC5B,eAAe,CAAC;YAClB;YACA,SAAS;gBACP,4BAA4B,CAAC;gBAC7B,gBAAgB,CAAC;gBACjB,eAAe,CAAC;gBAChB,gBAAgB,CAAC;gBACjB,4BAA4B,CAAC;gBAC7B,eAAe,CAAC;YAClB;YACA,SAAS;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,GAAGN,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;YACV,GAAGK,eAAe;QACpB;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 flex-none 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 '&-outer': {\r\n '@apply flex gap-0 max-w-full': {},\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n },\r\n },\r\n '&-inner': {\r\n '@apply flex relative grow': {},\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\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\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 },\r\n '&.sk-form-input-sm::-webkit-inner-spin-button, &.sk-form-input-sm::-webkit-calendar-picker-indicator': {\r\n '@apply w-16 h-16': {},\r\n '@apply -mr-2': {},\r\n },\r\n '&.sk-form-input-md::-webkit-inner-spin-button, &.sk-form-input-md::-webkit-calendar-picker-indicator': {\r\n '@apply -mr-4': {},\r\n '@apply w-18 h-18': {},\r\n },\r\n '&.sk-form-input-lg::-webkit-inner-spin-button, &.sk-form-input-lg::-webkit-calendar-picker-indicator': {\r\n '@apply -mr-6': {},\r\n '@apply w-20 h-20': {},\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\nfunction textareaGroup() {\r\n return {\r\n '&-textarea': {\r\n ...inputGroup(),\r\n '&-group-inner': {\r\n '@apply h-auto': {},\r\n '@apply flex-wrap': {},\r\n '.sk-form-input-textarea': {\r\n '@apply w-full': {},\r\n },\r\n '.sk-form-textarea-counter': {\r\n '@apply w-full': {},\r\n '@apply border-t-divider border-t-1': {},\r\n },\r\n '&&-lg': {\r\n '@apply min-h-48 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n },\r\n },\r\n '&&-md': {\r\n '@apply min-h-40 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n },\r\n },\r\n '&&-sm': {\r\n '@apply min-h-32 h-auto': {},\r\n '.sk-form-textarea-counter': {\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n },\r\n },\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 ...textareaGroup(),\r\n },\r\n});\r\n"],"names":["calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","textareaGroup","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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O,CAAA;QAC1B,kBAAkB;YAChB,iBAAiB,CAAC;YAClB,4BAA4B,CAAC;YAE7B,4BAA4B;gBAC1B,8DAA8D;oBAC5D,sBAAsB;oBACtBC,SAAS;oBACTC,QAAQ;gBACV;gBACA,mBAAmB;YACrB;YAEA,SAAS;gBACP,4BAA4B,CAAC;gBAC7B,gBAAgB,CAAC;gBACjB,gBAAgB,CAAC;gBACjB,gBAAgB,CAAC;gBACjB,2BAA2B,CAAC;gBAC5B,eAAe,CAAC;YAClB;YACA,SAAS;gBACP,4BAA4B,CAAC;gBAC7B,gBAAgB,CAAC;gBACjB,eAAe,CAAC;gBAChB,gBAAgB,CAAC;gBACjB,4BAA4B,CAAC;gBAC7B,eAAe,CAAC;YAClB;YACA,SAAS;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,GAAGN,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;YACV,GAAGK,eAAe;QACpB;IACF,CAAA,EAAG"}
|
|
@@ -30,9 +30,6 @@ export declare const Bubble: (colors: string[]) => {
|
|
|
30
30
|
'@apply bg-transparent': {};
|
|
31
31
|
'@apply shadow-[0_-1em_0_0_var(--tw-shadow-color)]': {};
|
|
32
32
|
'@apply scale-y-[25%]': {};
|
|
33
|
-
'&:before': {
|
|
34
|
-
'&[data-shadow="true"]': {};
|
|
35
|
-
};
|
|
36
33
|
};
|
|
37
34
|
'&[data-shadow="true"]': {
|
|
38
35
|
'@apply shadow-[0_1px_0_0_rgba(0,0,0,0.2)]': {};
|
|
@@ -348,18 +348,18 @@ export declare const Input: () => {
|
|
|
348
348
|
'@apply m-0': {};
|
|
349
349
|
'@apply bg-none': {};
|
|
350
350
|
'@apply bg-dark-secondary': {};
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
};
|
|
351
|
+
};
|
|
352
|
+
'&.sk-form-input-sm::-webkit-inner-spin-button, &.sk-form-input-sm::-webkit-calendar-picker-indicator': {
|
|
353
|
+
'@apply w-16 h-16': {};
|
|
354
|
+
'@apply -mr-2': {};
|
|
355
|
+
};
|
|
356
|
+
'&.sk-form-input-md::-webkit-inner-spin-button, &.sk-form-input-md::-webkit-calendar-picker-indicator': {
|
|
357
|
+
'@apply -mr-4': {};
|
|
358
|
+
'@apply w-18 h-18': {};
|
|
359
|
+
};
|
|
360
|
+
'&.sk-form-input-lg::-webkit-inner-spin-button, &.sk-form-input-lg::-webkit-calendar-picker-indicator': {
|
|
361
|
+
'@apply -mr-6': {};
|
|
362
|
+
'@apply w-20 h-20': {};
|
|
363
363
|
};
|
|
364
364
|
'&[type="date"]::-webkit-inner-spin-button, &[type="date"]::-webkit-calendar-picker-indicator': {
|
|
365
365
|
mask: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sk-web-gui/core",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"mini-svg-data-uri": "^1.4.4",
|
|
42
42
|
"tailwindcss": "^3.4.17"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "10dd42fac8dd2865644931207cdd50c4c5a51ac2"
|
|
45
45
|
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "MenuBar", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return MenuBar;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const MenuBar = (colors)=>({
|
|
12
|
-
'.sk-menubar': {
|
|
13
|
-
'@apply flex flex-row': {},
|
|
14
|
-
'@apply rounded-cards': {},
|
|
15
|
-
'&[data-background="true"]': {
|
|
16
|
-
'@apply bg-background-color-mixin-1': {}
|
|
17
|
-
},
|
|
18
|
-
// sizes
|
|
19
|
-
'&[data-size="md"]': {
|
|
20
|
-
'@apply p-6 gap-8 rounded-groups': {}
|
|
21
|
-
},
|
|
22
|
-
'&[data-size="lg"]': {
|
|
23
|
-
'@apply p-8 gap-16 rounded-cards': {}
|
|
24
|
-
},
|
|
25
|
-
'&-item': {
|
|
26
|
-
'@apply inline-block': {},
|
|
27
|
-
'@apply relative': {},
|
|
28
|
-
// sizes
|
|
29
|
-
'&[data-size="md"]': {
|
|
30
|
-
'@apply h-34': {},
|
|
31
|
-
'> *': {
|
|
32
|
-
'@apply text-small leading-[1.8rem]': {}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
'&[data-size="lg"]': {
|
|
36
|
-
'@apply h-40': {}
|
|
37
|
-
},
|
|
38
|
-
'> *:first-child': {
|
|
39
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
|
|
40
|
-
'@apply cursor-pointer': {},
|
|
41
|
-
'@apply bg-transparent text-dark-primary': {},
|
|
42
|
-
'@apply hover:bg-tertiary-surface': {},
|
|
43
|
-
'@apply font-bold': {},
|
|
44
|
-
'@apply gap-2 px-14 py-8': {},
|
|
45
|
-
'@apply h-full min-h-full': {},
|
|
46
|
-
'@apply inline-flex shrink-0 flex-nowrap': {},
|
|
47
|
-
'@apply border-0': {},
|
|
48
|
-
'@apply focus-visible:bg-background-content focus-visible:ring': {},
|
|
49
|
-
'&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover), ': {
|
|
50
|
-
'@apply bg-primary-surface text-light-primary': {},
|
|
51
|
-
'@apply focus-visible:ring': {}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
...colors.reduce((styles, color)=>({
|
|
55
|
-
...styles,
|
|
56
|
-
[`&[data-color="${color}"]`]: {
|
|
57
|
-
'> *:first-child': {
|
|
58
|
-
[`@apply hover:bg-${color}-surface-accent`]: {},
|
|
59
|
-
[`@apply hover:text-${color}-text-primary`]: {},
|
|
60
|
-
'@apply focus-visible:bg-background-content focus-visible:ring': {},
|
|
61
|
-
'&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover)': {
|
|
62
|
-
[`@apply bg-${color}-surface-primary`]: {},
|
|
63
|
-
'@apply focus-visible:ring': {}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}), {})
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
//# sourceMappingURL=menubar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/menubar.ts"],"sourcesContent":["export const MenuBar = (colors: string[]) => ({\r\n '.sk-menubar': {\r\n '@apply flex flex-row': {},\r\n '@apply rounded-cards': {},\r\n\r\n '&[data-background=\"true\"]': {\r\n '@apply bg-background-color-mixin-1': {},\r\n },\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply p-6 gap-8 rounded-groups': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply p-8 gap-16 rounded-cards': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply inline-block': {},\r\n '@apply relative': {},\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply h-34': {},\r\n\r\n '> *': {\r\n '@apply text-small leading-[1.8rem]': {},\r\n },\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply h-40': {},\r\n },\r\n\r\n '> *:first-child': {\r\n '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},\r\n '@apply cursor-pointer': {},\r\n '@apply bg-transparent text-dark-primary': {},\r\n '@apply hover:bg-tertiary-surface': {},\r\n '@apply font-bold': {},\r\n '@apply gap-2 px-14 py-8': {},\r\n '@apply h-full min-h-full': {},\r\n '@apply inline-flex shrink-0 flex-nowrap': {},\r\n\r\n '@apply border-0': {},\r\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\r\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover), ': {\r\n '@apply bg-primary-surface text-light-primary': {},\r\n '@apply focus-visible:ring': {},\r\n },\r\n },\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '> *:first-child': {\r\n [`@apply hover:bg-${color}-surface-accent`]: {},\r\n [`@apply hover:text-${color}-text-primary`]: {},\r\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\r\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover)': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n '@apply focus-visible:ring': {},\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n },\r\n },\r\n});\r\n"],"names":["MenuBar","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,UAAU,CAACC,SAAsB,CAAA;QAC5C,eAAe;YACb,wBAAwB,CAAC;YACzB,wBAAwB,CAAC;YAEzB,6BAA6B;gBAC3B,sCAAsC,CAAC;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.defineProperty(exports, "SegmentedControl", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return SegmentedControl;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const SegmentedControl = ()=>({
|
|
12
|
-
'.sk-segmentedcontrol': {
|
|
13
|
-
'@apply flex flex-row items-center': {},
|
|
14
|
-
'@apply rounded-groups': {},
|
|
15
|
-
'@apply bg-tertiary-surface': {},
|
|
16
|
-
'@apply max-w-fit': {},
|
|
17
|
-
// sizes
|
|
18
|
-
'&[data-size="md"]': {
|
|
19
|
-
'@apply p-6 gap-8': {}
|
|
20
|
-
},
|
|
21
|
-
'&[data-size="lg"]': {
|
|
22
|
-
'@apply p-6 gap-16': {}
|
|
23
|
-
},
|
|
24
|
-
'&-item': {
|
|
25
|
-
'@apply inline-block relative': {},
|
|
26
|
-
// sizes
|
|
27
|
-
'&[data-size="md"]': {
|
|
28
|
-
'@apply h-34': {},
|
|
29
|
-
'> *': {
|
|
30
|
-
'@apply text-small leading-[1.8rem]': {}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
'&[data-size="lg"]': {
|
|
34
|
-
'@apply h-40': {}
|
|
35
|
-
},
|
|
36
|
-
'> *:first-child': {
|
|
37
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
|
|
38
|
-
'@apply bg-transparent text-dark-primary font-bold cursor-pointer': {},
|
|
39
|
-
'@apply gap-2 px-14 py-8 h-full min-h-full': {},
|
|
40
|
-
'@apply inline-flex shrink-0 flex-nowrap border-0': {},
|
|
41
|
-
'@apply hover:bg-tertiary-surface': {},
|
|
42
|
-
'@apply focus-visible:outline-none focus-visible:bg-background-content focus-visible:ring focus-visible:ring-offset-0 focus-visible:shadow-none': {},
|
|
43
|
-
'&[aria-pressed="true"]:not(:hover):not([aria-disabled="true"])': {
|
|
44
|
-
'@apply bg-background-content text-dark-primary focus-visible:ring': {}
|
|
45
|
-
},
|
|
46
|
-
'&[aria-disabled="true"]': {
|
|
47
|
-
'@apply text-dark-disabled cursor-default hover:bg-transparent': {}
|
|
48
|
-
},
|
|
49
|
-
'&.sk-btn[aria-disabled="true"], &.sk-btn-disabled': {
|
|
50
|
-
'@apply bg-transparent border-transparent !important': {}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=segmented-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/segmented-control.ts"],"sourcesContent":["export const SegmentedControl = () => ({\r\n '.sk-segmentedcontrol': {\r\n '@apply flex flex-row items-center': {},\r\n '@apply rounded-groups': {},\r\n '@apply bg-tertiary-surface': {},\r\n '@apply max-w-fit': {},\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply p-6 gap-8': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply p-6 gap-16': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply inline-block relative': {},\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply h-34': {},\r\n '> *': {\r\n '@apply text-small leading-[1.8rem]': {},\r\n },\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply h-40': {},\r\n },\r\n\r\n '> *:first-child': {\r\n '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},\r\n '@apply bg-transparent text-dark-primary font-bold cursor-pointer': {},\r\n '@apply gap-2 px-14 py-8 h-full min-h-full': {},\r\n '@apply inline-flex shrink-0 flex-nowrap border-0': {},\r\n '@apply hover:bg-tertiary-surface': {},\r\n '@apply focus-visible:outline-none focus-visible:bg-background-content focus-visible:ring focus-visible:ring-offset-0 focus-visible:shadow-none': {},\r\n\r\n '&[aria-pressed=\"true\"]:not(:hover):not([aria-disabled=\"true\"])': {\r\n '@apply bg-background-content text-dark-primary focus-visible:ring': {},\r\n },\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply text-dark-disabled cursor-default hover:bg-transparent': {},\r\n },\r\n '&.sk-btn[aria-disabled=\"true\"], &.sk-btn-disabled': {\r\n '@apply bg-transparent border-transparent !important': {},\r\n },\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["SegmentedControl"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,mBAAmB,IAAO,CAAA;QACrC,wBAAwB;YACtB,qCAAqC,CAAC;YACtC,yBAAyB,CAAC;YAC1B,8BAA8B,CAAC;YAC/B,oBAAoB,CAAC;YAErB,QAAQ;YACR,qBAAqB;gBACnB,oBAAoB,CAAC;YACvB;YACA,qBAAqB;gBACnB,qBAAqB,CAAC;YACxB;YAEA,UAAU;gBACR,gCAAgC,CAAC;gBAEjC,QAAQ;gBACR,qBAAqB;oBACnB,eAAe,CAAC;oBAChB,OAAO;wBACL,sCAAsC,CAAC;oBACzC;gBACF;gBACA,qBAAqB;oBACnB,eAAe,CAAC;gBAClB;gBAEA,mBAAmB;oBACjB,sEAAsE,CAAC;oBACvE,oEAAoE,CAAC;oBACrE,6CAA6C,CAAC;oBAC9C,oDAAoD,CAAC;oBACrD,oCAAoC,CAAC;oBACrC,kJAAkJ,CAAC;oBAEnJ,kEAAkE;wBAChE,qEAAqE,CAAC;oBACxE;oBACA,2BAA2B;wBACzB,iEAAiE,CAAC;oBACpE;oBACA,qDAAqD;wBACnD,uDAAuD,CAAC;oBAC1D;gBACF;YACF;QACF;IACF,CAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export const MenuBar = (colors)=>({
|
|
2
|
-
'.sk-menubar': {
|
|
3
|
-
'@apply flex flex-row': {},
|
|
4
|
-
'@apply rounded-cards': {},
|
|
5
|
-
'&[data-background="true"]': {
|
|
6
|
-
'@apply bg-background-color-mixin-1': {}
|
|
7
|
-
},
|
|
8
|
-
// sizes
|
|
9
|
-
'&[data-size="md"]': {
|
|
10
|
-
'@apply p-6 gap-8 rounded-groups': {}
|
|
11
|
-
},
|
|
12
|
-
'&[data-size="lg"]': {
|
|
13
|
-
'@apply p-8 gap-16 rounded-cards': {}
|
|
14
|
-
},
|
|
15
|
-
'&-item': {
|
|
16
|
-
'@apply inline-block': {},
|
|
17
|
-
'@apply relative': {},
|
|
18
|
-
// sizes
|
|
19
|
-
'&[data-size="md"]': {
|
|
20
|
-
'@apply h-34': {},
|
|
21
|
-
'> *': {
|
|
22
|
-
'@apply text-small leading-[1.8rem]': {}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
'&[data-size="lg"]': {
|
|
26
|
-
'@apply h-40': {}
|
|
27
|
-
},
|
|
28
|
-
'> *:first-child': {
|
|
29
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
|
|
30
|
-
'@apply cursor-pointer': {},
|
|
31
|
-
'@apply bg-transparent text-dark-primary': {},
|
|
32
|
-
'@apply hover:bg-tertiary-surface': {},
|
|
33
|
-
'@apply font-bold': {},
|
|
34
|
-
'@apply gap-2 px-14 py-8': {},
|
|
35
|
-
'@apply h-full min-h-full': {},
|
|
36
|
-
'@apply inline-flex shrink-0 flex-nowrap': {},
|
|
37
|
-
'@apply border-0': {},
|
|
38
|
-
'@apply focus-visible:bg-background-content focus-visible:ring': {},
|
|
39
|
-
'&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover), ': {
|
|
40
|
-
'@apply bg-primary-surface text-light-primary': {},
|
|
41
|
-
'@apply focus-visible:ring': {}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
...colors.reduce((styles, color)=>({
|
|
45
|
-
...styles,
|
|
46
|
-
[`&[data-color="${color}"]`]: {
|
|
47
|
-
'> *:first-child': {
|
|
48
|
-
[`@apply hover:bg-${color}-surface-accent`]: {},
|
|
49
|
-
[`@apply hover:text-${color}-text-primary`]: {},
|
|
50
|
-
'@apply focus-visible:bg-background-content focus-visible:ring': {},
|
|
51
|
-
'&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover)': {
|
|
52
|
-
[`@apply bg-${color}-surface-primary`]: {},
|
|
53
|
-
'@apply focus-visible:ring': {}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}), {})
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
//# sourceMappingURL=menubar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/menubar.ts"],"sourcesContent":["export const MenuBar = (colors: string[]) => ({\r\n '.sk-menubar': {\r\n '@apply flex flex-row': {},\r\n '@apply rounded-cards': {},\r\n\r\n '&[data-background=\"true\"]': {\r\n '@apply bg-background-color-mixin-1': {},\r\n },\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply p-6 gap-8 rounded-groups': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply p-8 gap-16 rounded-cards': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply inline-block': {},\r\n '@apply relative': {},\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply h-34': {},\r\n\r\n '> *': {\r\n '@apply text-small leading-[1.8rem]': {},\r\n },\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply h-40': {},\r\n },\r\n\r\n '> *:first-child': {\r\n '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},\r\n '@apply cursor-pointer': {},\r\n '@apply bg-transparent text-dark-primary': {},\r\n '@apply hover:bg-tertiary-surface': {},\r\n '@apply font-bold': {},\r\n '@apply gap-2 px-14 py-8': {},\r\n '@apply h-full min-h-full': {},\r\n '@apply inline-flex shrink-0 flex-nowrap': {},\r\n\r\n '@apply border-0': {},\r\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\r\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover), ': {\r\n '@apply bg-primary-surface text-light-primary': {},\r\n '@apply focus-visible:ring': {},\r\n },\r\n },\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '> *:first-child': {\r\n [`@apply hover:bg-${color}-surface-accent`]: {},\r\n [`@apply hover:text-${color}-text-primary`]: {},\r\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\r\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover)': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n '@apply focus-visible:ring': {},\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n },\r\n },\r\n});\r\n"],"names":["MenuBar","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,UAAU,CAACC,SAAsB,CAAA;QAC5C,eAAe;YACb,wBAAwB,CAAC;YACzB,wBAAwB,CAAC;YAEzB,6BAA6B;gBAC3B,sCAAsC,CAAC;YACzC;YAEA,QAAQ;YACR,qBAAqB;gBACnB,mCAAmC,CAAC;YACtC;YACA,qBAAqB;gBACnB,mCAAmC,CAAC;YACtC;YAEA,UAAU;gBACR,uBAAuB,CAAC;gBACxB,mBAAmB,CAAC;gBAEpB,QAAQ;gBACR,qBAAqB;oBACnB,eAAe,CAAC;oBAEhB,OAAO;wBACL,sCAAsC,CAAC;oBACzC;gBACF;gBACA,qBAAqB;oBACnB,eAAe,CAAC;gBAClB;gBAEA,mBAAmB;oBACjB,sEAAsE,CAAC;oBACvE,yBAAyB,CAAC;oBAC1B,2CAA2C,CAAC;oBAC5C,oCAAoC,CAAC;oBACrC,oBAAoB,CAAC;oBACrB,2BAA2B,CAAC;oBAC5B,4BAA4B,CAAC;oBAC7B,2CAA2C,CAAC;oBAE5C,mBAAmB,CAAC;oBACpB,iEAAiE,CAAC;oBAClE,4EAA4E;wBAC1E,gDAAgD,CAAC;wBACjD,6BAA6B,CAAC;oBAChC;gBACF;gBACA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;wBAClB,GAAGD,MAAM;wBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;4BAC5B,mBAAmB;gCACjB,CAAC,CAAC,gBAAgB,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;gCAC9C,CAAC,CAAC,kBAAkB,EAAEA,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC;gCAC9C,iEAAiE,CAAC;gCAClE,0EAA0E;oCACxE,CAAC,CAAC,UAAU,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;oCACzC,6BAA6B,CAAC;gCAChC;4BACF;wBACF;oBACF,CAAA,GACA,CAAC,EACF;YACH;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export const SegmentedControl = ()=>({
|
|
2
|
-
'.sk-segmentedcontrol': {
|
|
3
|
-
'@apply flex flex-row items-center': {},
|
|
4
|
-
'@apply rounded-groups': {},
|
|
5
|
-
'@apply bg-tertiary-surface': {},
|
|
6
|
-
'@apply max-w-fit': {},
|
|
7
|
-
// sizes
|
|
8
|
-
'&[data-size="md"]': {
|
|
9
|
-
'@apply p-6 gap-8': {}
|
|
10
|
-
},
|
|
11
|
-
'&[data-size="lg"]': {
|
|
12
|
-
'@apply p-6 gap-16': {}
|
|
13
|
-
},
|
|
14
|
-
'&-item': {
|
|
15
|
-
'@apply inline-block relative': {},
|
|
16
|
-
// sizes
|
|
17
|
-
'&[data-size="md"]': {
|
|
18
|
-
'@apply h-34': {},
|
|
19
|
-
'> *': {
|
|
20
|
-
'@apply text-small leading-[1.8rem]': {}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
'&[data-size="lg"]': {
|
|
24
|
-
'@apply h-40': {}
|
|
25
|
-
},
|
|
26
|
-
'> *:first-child': {
|
|
27
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
|
|
28
|
-
'@apply bg-transparent text-dark-primary font-bold cursor-pointer': {},
|
|
29
|
-
'@apply gap-2 px-14 py-8 h-full min-h-full': {},
|
|
30
|
-
'@apply inline-flex shrink-0 flex-nowrap border-0': {},
|
|
31
|
-
'@apply hover:bg-tertiary-surface': {},
|
|
32
|
-
'@apply focus-visible:outline-none focus-visible:bg-background-content focus-visible:ring focus-visible:ring-offset-0 focus-visible:shadow-none': {},
|
|
33
|
-
'&[aria-pressed="true"]:not(:hover):not([aria-disabled="true"])': {
|
|
34
|
-
'@apply bg-background-content text-dark-primary focus-visible:ring': {}
|
|
35
|
-
},
|
|
36
|
-
'&[aria-disabled="true"]': {
|
|
37
|
-
'@apply text-dark-disabled cursor-default hover:bg-transparent': {}
|
|
38
|
-
},
|
|
39
|
-
'&.sk-btn[aria-disabled="true"], &.sk-btn-disabled': {
|
|
40
|
-
'@apply bg-transparent border-transparent !important': {}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=segmented-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/segmented-control.ts"],"sourcesContent":["export const SegmentedControl = () => ({\r\n '.sk-segmentedcontrol': {\r\n '@apply flex flex-row items-center': {},\r\n '@apply rounded-groups': {},\r\n '@apply bg-tertiary-surface': {},\r\n '@apply max-w-fit': {},\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply p-6 gap-8': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply p-6 gap-16': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply inline-block relative': {},\r\n\r\n // sizes\r\n '&[data-size=\"md\"]': {\r\n '@apply h-34': {},\r\n '> *': {\r\n '@apply text-small leading-[1.8rem]': {},\r\n },\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply h-40': {},\r\n },\r\n\r\n '> *:first-child': {\r\n '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},\r\n '@apply bg-transparent text-dark-primary font-bold cursor-pointer': {},\r\n '@apply gap-2 px-14 py-8 h-full min-h-full': {},\r\n '@apply inline-flex shrink-0 flex-nowrap border-0': {},\r\n '@apply hover:bg-tertiary-surface': {},\r\n '@apply focus-visible:outline-none focus-visible:bg-background-content focus-visible:ring focus-visible:ring-offset-0 focus-visible:shadow-none': {},\r\n\r\n '&[aria-pressed=\"true\"]:not(:hover):not([aria-disabled=\"true\"])': {\r\n '@apply bg-background-content text-dark-primary focus-visible:ring': {},\r\n },\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply text-dark-disabled cursor-default hover:bg-transparent': {},\r\n },\r\n '&.sk-btn[aria-disabled=\"true\"], &.sk-btn-disabled': {\r\n '@apply bg-transparent border-transparent !important': {},\r\n },\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["SegmentedControl"],"mappings":"AAAA,OAAO,MAAMA,mBAAmB,IAAO,CAAA;QACrC,wBAAwB;YACtB,qCAAqC,CAAC;YACtC,yBAAyB,CAAC;YAC1B,8BAA8B,CAAC;YAC/B,oBAAoB,CAAC;YAErB,QAAQ;YACR,qBAAqB;gBACnB,oBAAoB,CAAC;YACvB;YACA,qBAAqB;gBACnB,qBAAqB,CAAC;YACxB;YAEA,UAAU;gBACR,gCAAgC,CAAC;gBAEjC,QAAQ;gBACR,qBAAqB;oBACnB,eAAe,CAAC;oBAChB,OAAO;wBACL,sCAAsC,CAAC;oBACzC;gBACF;gBACA,qBAAqB;oBACnB,eAAe,CAAC;gBAClB;gBAEA,mBAAmB;oBACjB,sEAAsE,CAAC;oBACvE,oEAAoE,CAAC;oBACrE,6CAA6C,CAAC;oBAC9C,oDAAoD,CAAC;oBACrD,oCAAoC,CAAC;oBACrC,kJAAkJ,CAAC;oBAEnJ,kEAAkE;wBAChE,qEAAqE,CAAC;oBACxE;oBACA,2BAA2B;wBACzB,iEAAiE,CAAC;oBACpE;oBACA,qDAAqD;wBACnD,uDAAuD,CAAC;oBAC1D;gBACF;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const MenuBar: (colors: string[]) => {
|
|
2
|
-
'.sk-menubar': {
|
|
3
|
-
'@apply flex flex-row': {};
|
|
4
|
-
'@apply rounded-cards': {};
|
|
5
|
-
'&[data-background="true"]': {
|
|
6
|
-
'@apply bg-background-color-mixin-1': {};
|
|
7
|
-
};
|
|
8
|
-
'&[data-size="md"]': {
|
|
9
|
-
'@apply p-6 gap-8 rounded-groups': {};
|
|
10
|
-
};
|
|
11
|
-
'&[data-size="lg"]': {
|
|
12
|
-
'@apply p-8 gap-16 rounded-cards': {};
|
|
13
|
-
};
|
|
14
|
-
'&-item': {
|
|
15
|
-
'@apply inline-block': {};
|
|
16
|
-
'@apply relative': {};
|
|
17
|
-
'&[data-size="md"]': {
|
|
18
|
-
'@apply h-34': {};
|
|
19
|
-
'> *': {
|
|
20
|
-
'@apply text-small leading-[1.8rem]': {};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
'&[data-size="lg"]': {
|
|
24
|
-
'@apply h-40': {};
|
|
25
|
-
};
|
|
26
|
-
'> *:first-child': {
|
|
27
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {};
|
|
28
|
-
'@apply cursor-pointer': {};
|
|
29
|
-
'@apply bg-transparent text-dark-primary': {};
|
|
30
|
-
'@apply hover:bg-tertiary-surface': {};
|
|
31
|
-
'@apply font-bold': {};
|
|
32
|
-
'@apply gap-2 px-14 py-8': {};
|
|
33
|
-
'@apply h-full min-h-full': {};
|
|
34
|
-
'@apply inline-flex shrink-0 flex-nowrap': {};
|
|
35
|
-
'@apply border-0': {};
|
|
36
|
-
'@apply focus-visible:bg-background-content focus-visible:ring': {};
|
|
37
|
-
'&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover), ': {
|
|
38
|
-
'@apply bg-primary-surface text-light-primary': {};
|
|
39
|
-
'@apply focus-visible:ring': {};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare const SegmentedControl: () => {
|
|
2
|
-
'.sk-segmentedcontrol': {
|
|
3
|
-
'@apply flex flex-row items-center': {};
|
|
4
|
-
'@apply rounded-groups': {};
|
|
5
|
-
'@apply bg-tertiary-surface': {};
|
|
6
|
-
'@apply max-w-fit': {};
|
|
7
|
-
'&[data-size="md"]': {
|
|
8
|
-
'@apply p-6 gap-8': {};
|
|
9
|
-
};
|
|
10
|
-
'&[data-size="lg"]': {
|
|
11
|
-
'@apply p-6 gap-16': {};
|
|
12
|
-
};
|
|
13
|
-
'&-item': {
|
|
14
|
-
'@apply inline-block relative': {};
|
|
15
|
-
'&[data-size="md"]': {
|
|
16
|
-
'@apply h-34': {};
|
|
17
|
-
'> *': {
|
|
18
|
-
'@apply text-small leading-[1.8rem]': {};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
'&[data-size="lg"]': {
|
|
22
|
-
'@apply h-40': {};
|
|
23
|
-
};
|
|
24
|
-
'> *:first-child': {
|
|
25
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {};
|
|
26
|
-
'@apply bg-transparent text-dark-primary font-bold cursor-pointer': {};
|
|
27
|
-
'@apply gap-2 px-14 py-8 h-full min-h-full': {};
|
|
28
|
-
'@apply inline-flex shrink-0 flex-nowrap border-0': {};
|
|
29
|
-
'@apply hover:bg-tertiary-surface': {};
|
|
30
|
-
'@apply focus-visible:outline-none focus-visible:bg-background-content focus-visible:ring focus-visible:ring-offset-0 focus-visible:shadow-none': {};
|
|
31
|
-
'&[aria-pressed="true"]:not(:hover):not([aria-disabled="true"])': {
|
|
32
|
-
'@apply bg-background-content text-dark-primary focus-visible:ring': {};
|
|
33
|
-
};
|
|
34
|
-
'&[aria-disabled="true"]': {
|
|
35
|
-
'@apply text-dark-disabled cursor-default hover:bg-transparent': {};
|
|
36
|
-
};
|
|
37
|
-
'&.sk-btn[aria-disabled="true"], &.sk-btn-disabled': {
|
|
38
|
-
'@apply bg-transparent border-transparent !important': {};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|