@sk-web-gui/core 4.1.1 → 4.2.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/components/accordion.js +113 -111
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/ai/chat-input.js +91 -0
- package/dist/cjs/components/ai/chat-input.js.map +1 -0
- package/dist/cjs/components/alert.js +80 -0
- package/dist/cjs/components/alert.js.map +1 -0
- package/dist/cjs/components/forms.js +9 -0
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/input.js +41 -1
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +6 -0
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components.js +12 -1
- package/dist/cjs/components.js.map +1 -1
- package/dist/esm/components/accordion.js +113 -111
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/ai/chat-input.js +81 -0
- package/dist/esm/components/ai/chat-input.js.map +1 -0
- package/dist/esm/components/alert.js +70 -0
- package/dist/esm/components/alert.js.map +1 -0
- package/dist/esm/components/forms.js +9 -0
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/input.js +41 -1
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/progress-bar.js +6 -0
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components.js +12 -1
- package/dist/esm/components.js.map +1 -1
- package/dist/types/components/accordion.d.ts +108 -106
- package/dist/types/components/ai/chat-input.d.ts +79 -0
- package/dist/types/components/alert.d.ts +68 -0
- package/dist/types/components/forms.d.ts +9 -0
- package/dist/types/components/input.d.ts +106 -0
- package/dist/types/components/progress-bar.d.ts +6 -0
- package/package.json +2 -2
|
@@ -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\nexport const Input = () => ({\r\n '.sk-form-input': {\r\n '@apply grow-0': {},\r\n '@apply text-dark-primary': {},\r\n\r\n '&[data-hideextra=\"true\"]': {\r\n '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\r\n '-webkit-appearance': 'none',\r\n display: 'none',\r\n margin: '0px',\r\n },\r\n '-moz-appearance': 'textfield',\r\n },\r\n\r\n '&&-lg': {\r\n '@apply rounded-button-lg': {},\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-large': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply rounded-button-md': {},\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-medium': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply rounded-button-sm': {},\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n '@apply gap-6': {},\r\n '@apply text-input-small': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-textarea': {\r\n '@apply h-auto': {},\r\n '&-warning': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n\r\n //Focus\r\n '@apply focus:ring': {},\r\n '@apply focus:ring-ring': {},\r\n '@apply focus:ring-offset': {},\r\n '@apply focus:border-input-field-surface': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply focus-within:ring-offset': {},\r\n '@apply focus-within:border-input-field-surface': {},\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus:hover:border-input-field-surface': {},\r\n },\r\n ...timeAndDatePicker(),\r\n ...inputStandards(),\r\n ...inputGroup(),\r\n ...addin(),\r\n ...addon(),\r\n },\r\n});\r\n"],"names":["Input","calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","display","margin"],"mappings":";;;;+BAiSaA;;;eAAAA;;;AAjSb,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,+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,UAAU;YACV,qBAAqB;QACvB;QAEA,uCAAuC;YACrC,sEAAsE;gBACpE,+BAA+B,CAAC;YAClC;QACF;IACF;AACF;AAEO,MAAMV,QAAQ,IAAO,CAAA;QAC1B,kBAAkB;YAChB,iBAAiB,CAAC;YAClB,4BAA4B,CAAC;YAE7B,4BAA4B;gBAC1B,8DAA8D;oBAC5D,sBAAsB;oBACtBW,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,GAAGJ,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;QACZ;IACF,CAAA"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/input.ts"],"sourcesContent":["function calendar() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;\r\n}\r\nfunction clock() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;\r\n}\r\n\r\nfunction inputStandards() {\r\n return {\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n\r\n '@apply placeholder:text-dark-placeholder': {},\r\n\r\n '@apply bg-input-field-surface': {},\r\n\r\n //Invalid\r\n '&:invalid, &[aria-invalid=\"true\"]': {\r\n '@apply border-2 border-error-surface-primary': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply text-dark-disabled': {},\r\n },\r\n\r\n //readOnly\r\n '&:read-only': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply placeholder:text-dark-secondary': {},\r\n },\r\n };\r\n}\r\n\r\nfunction addin() {\r\n return {\r\n '&-addin': {\r\n '@apply bg-transparent': {},\r\n '@apply flex': {},\r\n '@apply justify-start items-center': {},\r\n '&-sm': {\r\n '@apply px-6 gap-6': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-12': {},\r\n '@apply pl-10': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-12': {},\r\n '@apply pr-10': {},\r\n },\r\n svg: {\r\n '@apply w-16 h-16': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-16': {},\r\n '@apply pl-12': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-16': {},\r\n '@apply pr-12': {},\r\n },\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-20': {},\r\n '@apply pl-16': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-20': {},\r\n '@apply pr-16': {},\r\n },\r\n svg: {\r\n '@apply w-22 h-22': {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction addon() {\r\n return {\r\n '&-addon': {\r\n '@apply flex 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,CAA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BAAgB,CAAC;wBACjB,eAAe,CAAC;oBAClB;gBACF;YACF;QACF;IACF;AACF;AAEO,MAAMP,QAAQ,IAAO,CAAA;QAC1B,kBAAkB;YAChB,iBAAiB,CAAC;YAClB,4BAA4B,CAAC;YAE7B,4BAA4B;gBAC1B,8DAA8D;oBAC5D,sBAAsB;oBACtBY,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,GAAGL,mBAAmB;YACtB,GAAGL,gBAAgB;YACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;YACV,GAAGK,eAAe;QACpB;IACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/progress-bar.ts"],"sourcesContent":["export const ProgressBar = (colors: string[]) => ({\r\n '.sk-progress-bar': {\r\n '@apply flex h-4 rounded-circular bg-background-color-mixin-2': {},\r\n\r\n '&-fill': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n },\r\n\r\n '&[data-accent=\"true\"]': {\r\n [`@apply bg-inverted-${color}-surface-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-primary-surface`]: {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["ProgressBar","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,cAAc,CAACC,SAAsB,CAAA;QAChD,oBAAoB;YAClB,gEAAgE,CAAC;YAEjE,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,yBAAyB;4BACvB,CAAC,CAAC,UAAU,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBAC3C;wBAEA,yBAAyB;4BACvB,CAAC,CAAC,mBAAmB,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBACpD;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,yBAAyB;oBACvB,CAAC,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC;gBAClC;YACF;QACF;IACF,CAAA"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/progress-bar.ts"],"sourcesContent":["export const ProgressBar = (colors: string[]) => ({\r\n '.sk-progress-bar': {\r\n '@apply flex h-4 rounded-circular bg-background-color-mixin-2': {},\r\n\r\n '&-fill': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n },\r\n\r\n '&[data-accent=\"true\"]': {\r\n [`@apply bg-inverted-${color}-surface-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-primary-surface`]: {},\r\n },\r\n },\r\n '&-sm': {\r\n '@apply h-[4px]': {},\r\n },\r\n '&-md': {\r\n '@apply h-[8px]': {},\r\n },\r\n },\r\n});\r\n"],"names":["ProgressBar","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,cAAc,CAACC,SAAsB,CAAA;QAChD,oBAAoB;YAClB,gEAAgE,CAAC;YAEjE,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,yBAAyB;4BACvB,CAAC,CAAC,UAAU,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBAC3C;wBAEA,yBAAyB;4BACvB,CAAC,CAAC,mBAAmB,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBACpD;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,yBAAyB;oBACvB,CAAC,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC;gBAClC;YACF;YACA,QAAQ;gBACN,kBAAkB,CAAC;YACrB;YACA,QAAQ;gBACN,kBAAkB,CAAC;YACrB;QACF;IACF,CAAA"}
|
package/dist/cjs/components.js
CHANGED
|
@@ -59,6 +59,7 @@ const _aiservicemodule = require("./components/ai/ai-service-module");
|
|
|
59
59
|
const _assistantpresentation = require("./components/ai/assistant-presentation");
|
|
60
60
|
const _assistantswitch = require("./components/ai/assistant-switch");
|
|
61
61
|
const _bubble = require("./components/ai/bubble");
|
|
62
|
+
const _chatinput = require("./components/ai/chat-input");
|
|
62
63
|
const _feedback = require("./components/ai/feedback");
|
|
63
64
|
const _inputsection = require("./components/ai/input-section");
|
|
64
65
|
const _markdownrendered = require("./components/ai/markdown-rendered");
|
|
@@ -386,6 +387,15 @@ const components = [
|
|
|
386
387
|
_icon.Icon
|
|
387
388
|
]
|
|
388
389
|
},
|
|
390
|
+
{
|
|
391
|
+
comp: _chatinput.ChatInput,
|
|
392
|
+
deps: [
|
|
393
|
+
_forms.Forms,
|
|
394
|
+
_icon.Icon,
|
|
395
|
+
_button.Button,
|
|
396
|
+
_divider.Divider
|
|
397
|
+
]
|
|
398
|
+
},
|
|
389
399
|
{
|
|
390
400
|
comp: _feedback.Feedback,
|
|
391
401
|
deps: [
|
|
@@ -398,7 +408,8 @@ const components = [
|
|
|
398
408
|
deps: [
|
|
399
409
|
_forms.Forms,
|
|
400
410
|
_button.Button,
|
|
401
|
-
_icon.Icon
|
|
411
|
+
_icon.Icon,
|
|
412
|
+
_chatinput.ChatInput
|
|
402
413
|
]
|
|
403
414
|
},
|
|
404
415
|
{
|
|
@@ -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 { CountryCode } from './components/countrycode';\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 { NavigationBar } from './components/navigation-bar';\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: CountryCode, deps: [Forms, 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: NavigationBar, 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, NavigationBar] },\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: [\r\n AIFeed,\r\n AssistantPresentation,\r\n InputSection,\r\n Avatar,\r\n Bubble,\r\n Link,\r\n Button,\r\n Divider,\r\n Icon,\r\n Tooltip,\r\n NavigationBar,\r\n ],\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":["components","comp","Accordion","deps","Button","Divider","Icon","Label","Avatar","Badge","Breadcrumb","Link","Spinner","ButtonGroup","Callout","Card","Checkbox","Chip","ComboBox","CountryCode","Forms","CookieConsent","Dialog","Modal","Dot","FileUpload","PopupMenu","Filter","Footer","Logo","Select","Input","Radio","Switch","Header","List","NavigationBar","MenuVertical","Pagination","ProgressBar","ProgressStepper","SearchField","Snackbar","TextEditor","Table","Tabs","Tooltip","UserMenu","AIFeed","TypingBubble","Feedback","MarkdownRendered","AICornerModule","AssistantPresentation","InputSection","Bubble","AIServiceModule","AssistantSwitch","NewSessionButton","TypingSequence"],"mappings":";;;;+BAoEaA;;;eAAAA;;;2BAjEa;wBACH;uBACD;4BACK;wBACJ;6BACK;yBACJ;sBACH;0BACI;sBACJ;0BACI;6BACG;+BACE;wBACP;yBACC;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d;IACH;IACA;QAAEnC,MAAMuD,gCAAe;QAAErD,MAAM;YAAC6C,cAAM;YAAEO,cAAM;YAAED,0BAAY;YAAElC,YAAK;YAAET,UAAI;YAAEP,cAAM;YAAEE,UAAI;SAAC;IAAC;IACzF;QAAEL,MAAMoD,4CAAqB;QAAElD,MAAM;YAACK,cAAM;SAAC;IAAC;IAC9C;QAAEP,MAAMwD,gCAAe;QAAEtD,MAAM;YAACK,cAAM;YAAEF,UAAI;SAAC;IAAC;IAC9C;QAAEL,MAAMsD,cAAM;QAAEpD,MAAM;YAACG,UAAI;SAAC;IAAC;IAC7B;QAAEL,MAAMiD,kBAAQ;QAAE/C,MAAM;YAACC,cAAM;YAAEE,UAAI;SAAC;IAAC;IACvC;QAAEL,MAAMqD,0BAAY;QAAEnD,MAAM;YAACiB,YAAK;YAAEhB,cAAM;YAAEE,UAAI;SAAC;IAAC;IAClD;QAAEL,MAAMkD,kCAAgB;QAAEhD,MAAM;YAACQ,UAAI;SAAC;IAAC;IACvC;QAAEV,MAAMyD,kCAAgB;QAAEvD,MAAM;YAACC,cAAM;YAAEE,UAAI;SAAC;IAAC;IAC/C;QAAEL,MAAMgD,0BAAY;QAAE9C,MAAM;YAACwD,8BAAc;SAAC;IAAC;IAC7C;QAAE1D,MAAM0D,8BAAc;IAAC;CACxB"}
|
|
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 { CountryCode } from './components/countrycode';\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 { NavigationBar } from './components/navigation-bar';\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 { ChatInput } from './components/ai/chat-input';\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: CountryCode, deps: [Forms, 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: NavigationBar, 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, NavigationBar] },\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: [\r\n AIFeed,\r\n AssistantPresentation,\r\n InputSection,\r\n Avatar,\r\n Bubble,\r\n Link,\r\n Button,\r\n Divider,\r\n Icon,\r\n Tooltip,\r\n NavigationBar,\r\n ],\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: ChatInput, deps: [Forms, Icon, Button, Divider] },\r\n { comp: Feedback, deps: [Button, Icon] },\r\n { comp: InputSection, deps: [Forms, Button, Icon, ChatInput] },\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":["components","comp","Accordion","deps","Button","Divider","Icon","Label","Avatar","Badge","Breadcrumb","Link","Spinner","ButtonGroup","Callout","Card","Checkbox","Chip","ComboBox","CountryCode","Forms","CookieConsent","Dialog","Modal","Dot","FileUpload","PopupMenu","Filter","Footer","Logo","Select","Input","Radio","Switch","Header","List","NavigationBar","MenuVertical","Pagination","ProgressBar","ProgressStepper","SearchField","Snackbar","TextEditor","Table","Tabs","Tooltip","UserMenu","AIFeed","TypingBubble","Feedback","MarkdownRendered","AICornerModule","AssistantPresentation","InputSection","Bubble","AIServiceModule","AssistantSwitch","ChatInput","NewSessionButton","TypingSequence"],"mappings":";;;;+BAqEaA;;;eAAAA;;;2BAlEa;wBACH;uBACD;4BACK;wBACJ;6BACK;yBACJ;sBACH;0BACI;sBACJ;0BACI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;YACJwC,gBAAO;YACPV,4BAAa;SACd;IACH;IACA;QAAEnC,MAAMuD,gCAAe;QAAErD,MAAM;YAAC6C,cAAM;YAAEO,cAAM;YAAED,0BAAY;YAAElC,YAAK;YAAET,UAAI;YAAEP,cAAM;YAAEE,UAAI;SAAC;IAAC;IACzF;QAAEL,MAAMoD,4CAAqB;QAAElD,MAAM;YAACK,cAAM;SAAC;IAAC;IAC9C;QAAEP,MAAMwD,gCAAe;QAAEtD,MAAM;YAACK,cAAM;YAAEF,UAAI;SAAC;IAAC;IAC9C;QAAEL,MAAMsD,cAAM;QAAEpD,MAAM;YAACG,UAAI;SAAC;IAAC;IAC7B;QAAEL,MAAMyD,oBAAS;QAAEvD,MAAM;YAACiB,YAAK;YAAEd,UAAI;YAAEF,cAAM;YAAEC,gBAAO;SAAC;IAAC;IACxD;QAAEJ,MAAMiD,kBAAQ;QAAE/C,MAAM;YAACC,cAAM;YAAEE,UAAI;SAAC;IAAC;IACvC;QAAEL,MAAMqD,0BAAY;QAAEnD,MAAM;YAACiB,YAAK;YAAEhB,cAAM;YAAEE,UAAI;YAAEoD,oBAAS;SAAC;IAAC;IAC7D;QAAEzD,MAAMkD,kCAAgB;QAAEhD,MAAM;YAACQ,UAAI;SAAC;IAAC;IACvC;QAAEV,MAAM0D,kCAAgB;QAAExD,MAAM;YAACC,cAAM;YAAEE,UAAI;SAAC;IAAC;IAC/C;QAAEL,MAAMgD,0BAAY;QAAE9C,MAAM;YAACyD,8BAAc;SAAC;IAAC;IAC7C;QAAE3D,MAAM2D,8BAAc;IAAC;CACxB"}
|
|
@@ -1,120 +1,140 @@
|
|
|
1
1
|
export const Accordion = ()=>({
|
|
2
2
|
'.sk-disclosure': {
|
|
3
|
+
'@apply mt-6 mb-8': {},
|
|
4
|
+
'@apply text-dark-secondary': {},
|
|
5
|
+
'&[data-inverted="true"]': {
|
|
6
|
+
'@apply text-inverted-dark-secondary': {}
|
|
7
|
+
},
|
|
3
8
|
'&-icon': {
|
|
4
9
|
'@apply flex self-center': {}
|
|
5
10
|
},
|
|
6
11
|
'&-header': {
|
|
7
|
-
'@apply
|
|
8
|
-
'@apply flex flex-
|
|
12
|
+
'@apply py-8': {},
|
|
13
|
+
'@apply flex flex-row text-left': {},
|
|
9
14
|
'@apply cursor-pointer': {},
|
|
10
|
-
'
|
|
11
|
-
|
|
15
|
+
'@apply items-center justify-between': {},
|
|
16
|
+
'@apply gap-16': {},
|
|
17
|
+
'&-icon': {
|
|
18
|
+
'@apply w-32 h-32': {},
|
|
19
|
+
'&-sm': {
|
|
20
|
+
'@apply w-20 min-h-20': {}
|
|
21
|
+
},
|
|
22
|
+
'&-md': {
|
|
23
|
+
'@apply w-24 min-h-24': {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
'&-title': {
|
|
27
|
+
'@apply text-dark-primary': {},
|
|
28
|
+
'@apply w-full': {},
|
|
29
|
+
'@apply flex flex-row': {},
|
|
30
|
+
'@apply items-center': {},
|
|
31
|
+
'@apply grow shrink': {},
|
|
32
|
+
'&[data-inverted="true"]': {
|
|
33
|
+
'@apply text-inverted-dark-primary': {}
|
|
34
|
+
},
|
|
35
|
+
'*': {
|
|
36
|
+
'@apply m-0': {},
|
|
37
|
+
'@apply text-inherit': {},
|
|
38
|
+
fontSize: 'inherit',
|
|
39
|
+
FontFamily: 'inherit',
|
|
40
|
+
lineHeight: 'inherit'
|
|
41
|
+
},
|
|
42
|
+
'&-disabled': {
|
|
43
|
+
'@apply text-dark-disabled': {},
|
|
44
|
+
'&[data-inverted="true"]': {
|
|
45
|
+
'@apply text-inverted-dark-disabled': {}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
'&-sm': {
|
|
49
|
+
'@apply gap-16': {},
|
|
50
|
+
'@apply text-h4-sm': {},
|
|
51
|
+
'&[data-variant="alt"]': {
|
|
52
|
+
'@apply gap-12': {}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
'&-md': {
|
|
56
|
+
'@apply gap-16': {},
|
|
57
|
+
'@apply text-h4-md': {},
|
|
58
|
+
'&[data-variant="alt"]': {
|
|
59
|
+
'@apply gap-12': {}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
'&-lg': {
|
|
63
|
+
'@apply gap-16': {},
|
|
64
|
+
'&[data-variant="alt"]': {
|
|
65
|
+
'@apply gap-16': {},
|
|
66
|
+
'@apply text-h3-md': {}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
'&-divider': {
|
|
70
|
+
'@apply border-divider': {},
|
|
71
|
+
'&[data-inverted="true"]': {
|
|
72
|
+
'@apply border-inverted-divider': {}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
12
75
|
},
|
|
13
76
|
'&:focus-visible': {
|
|
14
77
|
'@apply outline-0': {}
|
|
15
78
|
},
|
|
16
|
-
'
|
|
17
|
-
'@apply ml-auto': {},
|
|
18
|
-
'@apply text-dark-secondary': {},
|
|
19
|
-
svg: {
|
|
20
|
-
'@apply w-20 h-20': {}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
'&[data-disabled="true"]': {
|
|
79
|
+
'&[aria-disabled="true"]': {
|
|
24
80
|
'@apply text-dark-disabled': {},
|
|
25
|
-
'.sk-disclosure-title': {
|
|
26
|
-
'@apply text-dark-disabled': {}
|
|
27
|
-
},
|
|
28
81
|
'@apply cursor-default': {},
|
|
29
82
|
'*': {
|
|
30
83
|
'@apply cursor-default': {}
|
|
84
|
+
},
|
|
85
|
+
'&[data-inverted="true"]': {
|
|
86
|
+
'@apply text-inverted-dark-disabled': {}
|
|
31
87
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'&-toggle': {
|
|
38
|
-
'@apply flex items-center justify-between': {},
|
|
39
|
-
'@apply gap-16': {},
|
|
40
|
-
'.sk-icon': {
|
|
41
|
-
'@apply w-32 h-32': {}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
'&-title': {
|
|
45
|
-
'@apply text-dark-primary': {},
|
|
46
|
-
'&-wrapper': {
|
|
47
|
-
'@apply w-full': {},
|
|
48
|
-
'@apply flex flex-row': {},
|
|
49
|
-
'@apply items-center': {}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
'&-sm': {
|
|
53
|
-
'.sk-disclosure-title': {
|
|
54
|
-
'@apply text-h4-sm font-bold': {},
|
|
55
|
-
'&-wrapper': {
|
|
88
|
+
},
|
|
89
|
+
'&-sm': {
|
|
90
|
+
'@apply gap-16': {},
|
|
91
|
+
'@apply h-32': {},
|
|
92
|
+
'&[data-variant="alt"]': {
|
|
56
93
|
'@apply gap-12': {}
|
|
94
|
+
},
|
|
95
|
+
'&[data-variant="default"]': {
|
|
96
|
+
'@apply min-h-40': {}
|
|
57
97
|
}
|
|
58
98
|
},
|
|
59
|
-
'
|
|
60
|
-
'@apply gap-
|
|
61
|
-
'
|
|
62
|
-
'@apply
|
|
99
|
+
'&-md': {
|
|
100
|
+
'@apply gap-16': {},
|
|
101
|
+
'&[data-variant="alt"]': {
|
|
102
|
+
'@apply gap-12': {}
|
|
103
|
+
},
|
|
104
|
+
'&[data-variant="default"]': {
|
|
105
|
+
'@apply min-h-56': {}
|
|
63
106
|
}
|
|
64
107
|
},
|
|
65
|
-
'
|
|
66
|
-
'@apply
|
|
67
|
-
},
|
|
68
|
-
'&[data-variant="default"]': {
|
|
69
|
-
'.sk-disclosure-toggle': {
|
|
70
|
-
'@apply py-4': {},
|
|
71
|
-
'@apply min-h-40': {}
|
|
72
|
-
},
|
|
108
|
+
'&-lg': {
|
|
109
|
+
'@apply gap-16': {},
|
|
73
110
|
'.sk-disclosure-header-icon': {
|
|
74
|
-
'@apply w-32 h-32': {}
|
|
111
|
+
'@apply w-32 min-h-32': {}
|
|
112
|
+
},
|
|
113
|
+
'&[data-variant="alt"]': {
|
|
114
|
+
'@apply gap-16': {}
|
|
75
115
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
'&[data-variant="alt"]': {
|
|
119
|
+
'.sk-disclosure-header': {
|
|
120
|
+
'@apply py-0': {},
|
|
121
|
+
'@apply h-32': {}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
'&-label': {
|
|
125
|
+
'@apply shrink-0': {}
|
|
78
126
|
},
|
|
79
127
|
'&-md': {
|
|
80
|
-
'.sk-disclosure-title': {
|
|
81
|
-
'@apply text-h4-md font-bold': {},
|
|
82
|
-
'&-wrapper': {
|
|
83
|
-
'@apply gap-12': {}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
'.sk-disclosure-toggle': {
|
|
87
|
-
'@apply gap-12': {},
|
|
88
|
-
'.sk-icon': {
|
|
89
|
-
'@apply w-24 min-h-24': {}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
'.sk-disclosure-support': {
|
|
93
|
-
'@apply text-body': {}
|
|
94
|
-
},
|
|
95
128
|
'&[data-variant="default"]': {
|
|
96
|
-
'.sk-disclosure-
|
|
129
|
+
'.sk-disclosure-header': {
|
|
97
130
|
'@apply py-8': {},
|
|
98
131
|
'@apply min-h-56': {}
|
|
99
132
|
},
|
|
100
|
-
'.sk-disclosure-header-
|
|
133
|
+
'.sk-disclosure-header-button': {
|
|
101
134
|
'@apply w-40 h-40': {}
|
|
102
135
|
}
|
|
103
136
|
}
|
|
104
137
|
},
|
|
105
|
-
'&-lg': {
|
|
106
|
-
'&[data-variant="alt"]': {
|
|
107
|
-
'.sk-disclosure-support': {
|
|
108
|
-
'@apply text-large': {}
|
|
109
|
-
},
|
|
110
|
-
'.sk-disclosure-title': {
|
|
111
|
-
'@apply text-h3-md font-bold': {},
|
|
112
|
-
'&-wrapper': {
|
|
113
|
-
'@apply gap-16': {}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
138
|
'&-body': {
|
|
119
139
|
'&[data-size="sm"]': {
|
|
120
140
|
'@apply pr-12': {}
|
|
@@ -131,13 +151,13 @@ export const Accordion = ()=>({
|
|
|
131
151
|
'@apply mr-32': {},
|
|
132
152
|
'@apply gap-8': {},
|
|
133
153
|
'@apply py-0': {},
|
|
134
|
-
transitionProperty: '
|
|
154
|
+
transitionProperty: 'height, opacity, padding, margin',
|
|
135
155
|
transitionDuration: '180ms',
|
|
136
|
-
'&[aria-hidden="true"]
|
|
137
|
-
'@apply my-0
|
|
156
|
+
'&[aria-hidden="true"]': {
|
|
157
|
+
'@apply my-0 overflow-hidden max-h-0 opacity-0': {}
|
|
138
158
|
},
|
|
139
|
-
'&[aria-hidden="false"]
|
|
140
|
-
'@apply block opacity-100
|
|
159
|
+
'&[aria-hidden="false"]': {
|
|
160
|
+
'@apply block opacity-100': {}
|
|
141
161
|
},
|
|
142
162
|
'&[data-variant="alt"]': {
|
|
143
163
|
'@apply mt-24': {},
|
|
@@ -169,33 +189,15 @@ export const Accordion = ()=>({
|
|
|
169
189
|
'.sk-disclosure': {
|
|
170
190
|
transitionProperty: 'margin',
|
|
171
191
|
transitionDuration: '180ms',
|
|
172
|
-
'@apply border-b-1 border-divider': {}
|
|
192
|
+
'@apply border-b-1 border-divider': {},
|
|
193
|
+
'&[data-inverted="true"]': {
|
|
194
|
+
'@apply border-inverted-divider': {}
|
|
195
|
+
}
|
|
173
196
|
},
|
|
174
197
|
'&:last-child .sk-disclosure': {
|
|
175
198
|
'@apply border-b-transparent': {}
|
|
176
199
|
}
|
|
177
200
|
}
|
|
178
|
-
},
|
|
179
|
-
'&[data-inverted="true"]': {
|
|
180
|
-
'&.sk-disclosure': {
|
|
181
|
-
'&-icon': {
|
|
182
|
-
'@apply text-inverted-dark-secondary': {}
|
|
183
|
-
},
|
|
184
|
-
'&[data-disabled="true"]': {
|
|
185
|
-
'@apply text-inverted-dark-disabled': {},
|
|
186
|
-
'.sk-disclosure-title': {
|
|
187
|
-
'@apply text-inverted-dark-disabled': {}
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
'&-title': {
|
|
191
|
-
'@apply text-inverted-dark-primary': {}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
'&.sk-accordion': {
|
|
195
|
-
'&-item': {
|
|
196
|
-
'@apply border-inverted-divider': {}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
201
|
}
|
|
200
202
|
});
|
|
201
203
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/accordion.ts"],"sourcesContent":["export const Accordion = () => ({\r\n '.sk-disclosure': {\r\n '&-icon': {\r\n '@apply flex self-center': {},\r\n },\r\n '&-header': {\r\n '@apply
|
|
1
|
+
{"version":3,"sources":["../../../src/components/accordion.ts"],"sourcesContent":["export const Accordion = () => ({\r\n '.sk-disclosure': {\r\n '@apply mt-6 mb-8': {},\r\n '@apply text-dark-secondary': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n '&-icon': {\r\n '@apply flex self-center': {},\r\n },\r\n '&-header': {\r\n '@apply py-8': {},\r\n '@apply flex flex-row text-left': {},\r\n '@apply cursor-pointer': {},\r\n '@apply items-center justify-between': {},\r\n '@apply gap-16': {},\r\n '&-icon': {\r\n '@apply w-32 h-32': {},\r\n '&-sm': {\r\n '@apply w-20 min-h-20': {},\r\n },\r\n '&-md': {\r\n '@apply w-24 min-h-24': {},\r\n },\r\n },\r\n\r\n '&-title': {\r\n '@apply text-dark-primary': {},\r\n '@apply w-full': {},\r\n '@apply flex flex-row': {},\r\n '@apply items-center': {},\r\n '@apply grow shrink': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-primary': {},\r\n },\r\n '*': {\r\n '@apply m-0': {},\r\n '@apply text-inherit': {},\r\n fontSize: 'inherit',\r\n FontFamily: 'inherit',\r\n lineHeight: 'inherit',\r\n },\r\n '&-disabled': {\r\n '@apply text-dark-disabled': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-disabled': {},\r\n },\r\n },\r\n '&-sm': {\r\n '@apply gap-16': {},\r\n '@apply text-h4-sm': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply gap-16': {},\r\n '@apply text-h4-md': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply gap-16': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-16': {},\r\n '@apply text-h3-md': {},\r\n },\r\n },\r\n '&-divider': {\r\n '@apply border-divider': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n },\r\n\r\n '&:focus-visible': {\r\n '@apply outline-0': {},\r\n },\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply text-dark-disabled': {},\r\n '@apply cursor-default': {},\r\n '*': {\r\n '@apply cursor-default': {},\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-disabled': {},\r\n },\r\n },\r\n '&-sm': {\r\n '@apply gap-16': {},\r\n '@apply h-32': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '@apply min-h-40': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply gap-16': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '@apply min-h-56': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply gap-16': {},\r\n '.sk-disclosure-header-icon': {\r\n '@apply w-32 min-h-32': {},\r\n },\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-16': {},\r\n },\r\n },\r\n },\r\n '&[data-variant=\"alt\"]': {\r\n '.sk-disclosure-header': {\r\n '@apply py-0': {},\r\n '@apply h-32': {},\r\n },\r\n },\r\n '&-label': {\r\n '@apply shrink-0': {},\r\n },\r\n\r\n '&-md': {\r\n '&[data-variant=\"default\"]': {\r\n '.sk-disclosure-header': {\r\n '@apply py-8': {},\r\n '@apply min-h-56': {},\r\n },\r\n '.sk-disclosure-header-button': {\r\n '@apply w-40 h-40': {},\r\n },\r\n },\r\n },\r\n\r\n '&-body': {\r\n '&[data-size=\"sm\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply pr-16': {},\r\n },\r\n '@apply text-base': {},\r\n '@apply flex flex-col': {},\r\n '@apply mb-32': {},\r\n '@apply mr-32': {},\r\n '@apply gap-8': {},\r\n '@apply py-0': {},\r\n transitionProperty: 'height, opacity, padding, margin',\r\n\r\n transitionDuration: '180ms',\r\n\r\n '&[aria-hidden=\"true\"]': {\r\n '@apply my-0 overflow-hidden max-h-0 opacity-0': {},\r\n },\r\n\r\n '&[aria-hidden=\"false\"]': {\r\n '@apply block opacity-100': {},\r\n },\r\n\r\n '&[data-variant=\"alt\"]': {\r\n '@apply mt-24': {},\r\n '&[data-size=\"sm\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply pr-16': {},\r\n },\r\n '&[data-has-icon=\"true\"]': {\r\n '&[data-size=\"sm\"]': {\r\n '@apply ml-32': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply ml-36': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply ml-48': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n '.sk-accordion': {\r\n '&-item': {\r\n '.sk-disclosure': {\r\n transitionProperty: 'margin',\r\n transitionDuration: '180ms',\r\n '@apply border-b-1 border-divider': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n\r\n '&:last-child .sk-disclosure': {\r\n '@apply border-b-transparent': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Accordion","fontSize","FontFamily","lineHeight","transitionProperty","transitionDuration"],"mappings":"AAAA,OAAO,MAAMA,YAAY,IAAO,CAAA;QAC9B,kBAAkB;YAChB,oBAAoB,CAAC;YACrB,8BAA8B,CAAC;YAC/B,2BAA2B;gBACzB,uCAAuC,CAAC;YAC1C;YACA,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YACA,YAAY;gBACV,eAAe,CAAC;gBAChB,kCAAkC,CAAC;gBACnC,yBAAyB,CAAC;gBAC1B,uCAAuC,CAAC;gBACxC,iBAAiB,CAAC;gBAClB,UAAU;oBACR,oBAAoB,CAAC;oBACrB,QAAQ;wBACN,wBAAwB,CAAC;oBAC3B;oBACA,QAAQ;wBACN,wBAAwB,CAAC;oBAC3B;gBACF;gBAEA,WAAW;oBACT,4BAA4B,CAAC;oBAC7B,iBAAiB,CAAC;oBAClB,wBAAwB,CAAC;oBACzB,uBAAuB,CAAC;oBACxB,sBAAsB,CAAC;oBACvB,2BAA2B;wBACzB,qCAAqC,CAAC;oBACxC;oBACA,KAAK;wBACH,cAAc,CAAC;wBACf,uBAAuB,CAAC;wBACxBC,UAAU;wBACVC,YAAY;wBACZC,YAAY;oBACd;oBACA,cAAc;wBACZ,6BAA6B,CAAC;wBAC9B,2BAA2B;4BACzB,sCAAsC,CAAC;wBACzC;oBACF;oBACA,QAAQ;wBACN,iBAAiB,CAAC;wBAClB,qBAAqB,CAAC;wBACtB,yBAAyB;4BACvB,iBAAiB,CAAC;wBACpB;oBACF;oBACA,QAAQ;wBACN,iBAAiB,CAAC;wBAClB,qBAAqB,CAAC;wBACtB,yBAAyB;4BACvB,iBAAiB,CAAC;wBACpB;oBACF;oBACA,QAAQ;wBACN,iBAAiB,CAAC;wBAClB,yBAAyB;4BACvB,iBAAiB,CAAC;4BAClB,qBAAqB,CAAC;wBACxB;oBACF;oBACA,aAAa;wBACX,yBAAyB,CAAC;wBAC1B,2BAA2B;4BACzB,kCAAkC,CAAC;wBACrC;oBACF;gBAC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