@lukso/web-components 1.114.0 → 1.115.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/{bundle-mjs-d58a83c6.cjs → cn-90c03edf.js} +35 -4
- package/dist/{bundle-mjs-fbc6e2a8.js → cn-b6daa995.cjs} +39 -2
- package/dist/components/index.cjs +9 -10
- package/dist/components/index.js +9 -10
- package/dist/components/lukso-button/index.cjs +28 -29
- package/dist/components/lukso-button/index.js +11 -12
- package/dist/components/lukso-card/index.cjs +39 -27
- package/dist/components/lukso-card/index.js +30 -18
- package/dist/components/lukso-checkbox/index.cjs +18 -18
- package/dist/components/lukso-checkbox/index.js +8 -8
- package/dist/components/lukso-color-picker/index.cjs +30 -31
- package/dist/components/lukso-color-picker/index.js +16 -17
- package/dist/components/lukso-dropdown/index.cjs +9 -10
- package/dist/components/lukso-dropdown/index.js +9 -10
- package/dist/components/lukso-dropdown-option/index.cjs +10 -11
- package/dist/components/lukso-dropdown-option/index.js +4 -5
- package/dist/components/lukso-footer/index.cjs +4 -4
- package/dist/components/lukso-footer/index.js +3 -3
- package/dist/components/lukso-icon/icons/minus-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/minus-filled.d.ts.map +1 -0
- package/dist/components/lukso-icon/index.cjs +32 -9
- package/dist/components/lukso-icon/index.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.js +28 -5
- package/dist/components/lukso-image/index.cjs +11 -12
- package/dist/components/lukso-image/index.js +9 -10
- package/dist/components/lukso-input/index.cjs +46 -47
- package/dist/components/lukso-input/index.js +22 -23
- package/dist/components/lukso-modal/index.cjs +7 -8
- package/dist/components/lukso-modal/index.js +4 -5
- package/dist/components/lukso-navbar/index.cjs +22 -23
- package/dist/components/lukso-navbar/index.js +13 -14
- package/dist/components/lukso-pagination/index.cjs +13 -14
- package/dist/components/lukso-pagination/index.js +8 -9
- package/dist/components/lukso-profile/index.cjs +6 -7
- package/dist/components/lukso-profile/index.js +6 -7
- package/dist/components/lukso-progress/index.cjs +10 -11
- package/dist/components/lukso-progress/index.js +5 -6
- package/dist/components/lukso-sanitize/index.cjs +6 -6
- package/dist/components/lukso-sanitize/index.js +4 -4
- package/dist/components/lukso-search/index.cjs +41 -42
- package/dist/components/lukso-search/index.js +17 -18
- package/dist/components/lukso-select/index.cjs +38 -39
- package/dist/components/lukso-select/index.js +20 -21
- package/dist/components/lukso-share/index.cjs +5 -5
- package/dist/components/lukso-share/index.js +3 -3
- package/dist/components/lukso-switch/index.cjs +7 -7
- package/dist/components/lukso-switch/index.js +4 -4
- package/dist/components/lukso-tag/index.cjs +10 -11
- package/dist/components/lukso-tag/index.js +5 -6
- package/dist/components/lukso-terms/index.cjs +7 -7
- package/dist/components/lukso-terms/index.js +6 -6
- package/dist/components/lukso-test/index.cjs +12 -12
- package/dist/components/lukso-test/index.js +10 -10
- package/dist/components/lukso-textarea/index.cjs +35 -36
- package/dist/components/lukso-textarea/index.js +17 -18
- package/dist/components/lukso-tooltip/index.cjs +24 -25
- package/dist/components/lukso-tooltip/index.js +8 -9
- package/dist/components/lukso-username/index.cjs +18 -19
- package/dist/components/lukso-username/index.js +7 -8
- package/dist/components/lukso-wizard/index.cjs +9 -10
- package/dist/components/lukso-wizard/index.js +7 -8
- package/dist/index-2b104ecb.cjs +2547 -0
- package/dist/{index-ffb387db.js → index-30c74dfe.js} +4 -4
- package/dist/{index-0fbcd7f4.js → index-40811e43.js} +6 -6
- package/dist/index-86a3fdc1.js +37 -0
- package/dist/{index-1b37efea.cjs → index-9f282d35.cjs} +10 -10
- package/dist/index-d14b6a34.js +2545 -0
- package/dist/{index-73fbf718.cjs → index-dbfb7d50.cjs} +14 -14
- package/dist/index-dda1809d.cjs +46 -0
- package/dist/{index-adf2fc92.js → index-eb08047e.js} +2 -2
- package/dist/{index-0917a814.cjs → index-f564f46f.cjs} +2 -2
- package/dist/index.cjs +9 -10
- package/dist/index.js +9 -10
- package/dist/property-140ef335.js +16 -0
- package/dist/property-46482bf7.cjs +19 -0
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/state-876605e4.js +9 -0
- package/dist/state-94c1d585.cjs +11 -0
- package/dist/style-map-15dde65e.js +10 -0
- package/dist/style-map-552ab28f.cjs +12 -0
- package/package.json +2 -14
- package/tools/copy-assets.cjs +18 -18
- package/tools/copy-assets.d.ts +1 -1
- package/tools/copy-assets.d.ts.map +1 -1
- package/tools/copy-assets.js +18 -18
- package/tools/index.cjs +0 -4
- package/tools/index.d.ts +0 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +0 -3
- package/dist/cn-01b2d42a.js +0 -37
- package/dist/cn-fc6d6aa9.cjs +0 -40
- package/dist/index-0590cf31.js +0 -37
- package/dist/index-1d3f4a5a.cjs +0 -9
- package/dist/index-6457c2f8.cjs +0 -44
- package/dist/index-ca8e900d.js +0 -7
- package/dist/query-assigned-elements-1c8c9e90.js +0 -28
- package/dist/query-assigned-elements-d5e45650.cjs +0 -32
- package/dist/state-b9ca4e74.js +0 -9
- package/dist/state-d9fb972b.cjs +0 -11
- package/dist/style-map-54c139bb.cjs +0 -12
- package/dist/style-map-7a555e98.js +0 -10
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { colorPalette, borderRadius, boxShadows, fontSizes, fontWeights, scales, heights, lineHeights } from './tailwind-config.js';
|
|
2
|
+
|
|
3
|
+
import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
4
|
+
|
|
5
|
+
import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
6
|
+
|
|
7
|
+
import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
2
8
|
|
|
3
9
|
const CLASS_PART_SEPARATOR = '-';
|
|
4
10
|
function createClassUtils(config) {
|
|
@@ -2562,7 +2568,32 @@ function mergeConfigProperties(baseObject, mergeObject) {
|
|
|
2562
2568
|
function extendTailwindMerge(configExtension, ...createConfig) {
|
|
2563
2569
|
return typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
2564
2570
|
}
|
|
2565
|
-
const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
2566
2571
|
|
|
2567
|
-
|
|
2568
|
-
|
|
2572
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2573
|
+
|
|
2574
|
+
const customTwMerge = extendTailwindMerge({
|
|
2575
|
+
extend: {
|
|
2576
|
+
theme: {
|
|
2577
|
+
colors: Object.entries(colorPalette).reduce((acc, currentVal) => {
|
|
2578
|
+
const colors = Object.keys(currentVal[1]).map(
|
|
2579
|
+
(c) => `text-${currentVal[0]}-${c}`
|
|
2580
|
+
);
|
|
2581
|
+
return acc.concat(colors);
|
|
2582
|
+
}, []),
|
|
2583
|
+
borderRadius: Object.keys(borderRadius).map((s) => `rounded-${s}`)
|
|
2584
|
+
},
|
|
2585
|
+
classGroups: {
|
|
2586
|
+
shadow: [{ shadow: Object.keys(boxShadows).map((s) => `shadow-${s}`) }],
|
|
2587
|
+
"font-size": Object.keys(fontSizes).map((s) => `text-${s}`),
|
|
2588
|
+
"font-weight": Object.keys(fontWeights).map((s) => `font-${s}`),
|
|
2589
|
+
scale: Object.keys(scales).map((s) => `scale-${s}`),
|
|
2590
|
+
h: Object.keys(heights).map((s) => `h-${s}`),
|
|
2591
|
+
leading: Object.keys(lineHeights).map((s) => `leading-${s}`)
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
});
|
|
2595
|
+
const cn = (...inputs) => {
|
|
2596
|
+
return customTwMerge(clsx(inputs));
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2599
|
+
export { cn as c };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const tailwindConfig = require('./tailwind-config.cjs');
|
|
4
|
+
|
|
5
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('cn-b6daa995.cjs', document.baseURI).href)).replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
7
|
+
|
|
8
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('cn-b6daa995.cjs', document.baseURI).href)).replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
9
|
+
|
|
10
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('cn-b6daa995.cjs', document.baseURI).href)).replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
11
|
+
|
|
1
12
|
const CLASS_PART_SEPARATOR = '-';
|
|
2
13
|
function createClassUtils(config) {
|
|
3
14
|
const classMap = createClassMap(config);
|
|
@@ -2560,6 +2571,32 @@ function mergeConfigProperties(baseObject, mergeObject) {
|
|
|
2560
2571
|
function extendTailwindMerge(configExtension, ...createConfig) {
|
|
2561
2572
|
return typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
2562
2573
|
}
|
|
2563
|
-
const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
2564
2574
|
|
|
2565
|
-
|
|
2575
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2576
|
+
|
|
2577
|
+
const customTwMerge = extendTailwindMerge({
|
|
2578
|
+
extend: {
|
|
2579
|
+
theme: {
|
|
2580
|
+
colors: Object.entries(tailwindConfig.colorPalette).reduce((acc, currentVal) => {
|
|
2581
|
+
const colors = Object.keys(currentVal[1]).map(
|
|
2582
|
+
(c) => `text-${currentVal[0]}-${c}`
|
|
2583
|
+
);
|
|
2584
|
+
return acc.concat(colors);
|
|
2585
|
+
}, []),
|
|
2586
|
+
borderRadius: Object.keys(tailwindConfig.borderRadius).map((s) => `rounded-${s}`)
|
|
2587
|
+
},
|
|
2588
|
+
classGroups: {
|
|
2589
|
+
shadow: [{ shadow: Object.keys(tailwindConfig.boxShadows).map((s) => `shadow-${s}`) }],
|
|
2590
|
+
"font-size": Object.keys(tailwindConfig.fontSizes).map((s) => `text-${s}`),
|
|
2591
|
+
"font-weight": Object.keys(tailwindConfig.fontWeights).map((s) => `font-${s}`),
|
|
2592
|
+
scale: Object.keys(tailwindConfig.scales).map((s) => `scale-${s}`),
|
|
2593
|
+
h: Object.keys(tailwindConfig.heights).map((s) => `h-${s}`),
|
|
2594
|
+
leading: Object.keys(tailwindConfig.lineHeights).map((s) => `leading-${s}`)
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
});
|
|
2598
|
+
const cn = (...inputs) => {
|
|
2599
|
+
return customTwMerge(clsx(inputs));
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
exports.cn = cn;
|
|
@@ -6,7 +6,7 @@ const components_luksoButton_index = require('./lukso-button/index.cjs');
|
|
|
6
6
|
const components_luksoCard_index = require('./lukso-card/index.cjs');
|
|
7
7
|
const components_luksoCheckbox_index = require('./lukso-checkbox/index.cjs');
|
|
8
8
|
const components_luksoColorPicker_index = require('./lukso-color-picker/index.cjs');
|
|
9
|
-
const components_luksoDropdown_index = require('../index-
|
|
9
|
+
const components_luksoDropdown_index = require('../index-dbfb7d50.cjs');
|
|
10
10
|
const components_luksoDropdownOption_index = require('./lukso-dropdown-option/index.cjs');
|
|
11
11
|
const components_luksoFooter_index = require('./lukso-footer/index.cjs');
|
|
12
12
|
const components_luksoIcon_index = require('./lukso-icon/index.cjs');
|
|
@@ -15,7 +15,7 @@ const components_luksoInput_index = require('./lukso-input/index.cjs');
|
|
|
15
15
|
const components_luksoModal_index = require('./lukso-modal/index.cjs');
|
|
16
16
|
const components_luksoNavbar_index = require('./lukso-navbar/index.cjs');
|
|
17
17
|
const components_luksoPagination_index = require('./lukso-pagination/index.cjs');
|
|
18
|
-
const components_luksoProfile_index = require('../index-
|
|
18
|
+
const components_luksoProfile_index = require('../index-9f282d35.cjs');
|
|
19
19
|
const components_luksoProgress_index = require('./lukso-progress/index.cjs');
|
|
20
20
|
const components_luksoSanitize_index = require('./lukso-sanitize/index.cjs');
|
|
21
21
|
const components_luksoSearch_index = require('./lukso-search/index.cjs');
|
|
@@ -29,16 +29,15 @@ const components_luksoTextarea_index = require('./lukso-textarea/index.cjs');
|
|
|
29
29
|
const components_luksoTooltip_index = require('./lukso-tooltip/index.cjs');
|
|
30
30
|
const components_luksoUsername_index = require('./lukso-username/index.cjs');
|
|
31
31
|
const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
|
|
32
|
-
const shared_tailwindElement_index = require('../index-
|
|
33
|
-
require('../cn-
|
|
34
|
-
require('../
|
|
35
|
-
require('../state-
|
|
36
|
-
require('../index-
|
|
37
|
-
require('../bundle-mjs-d58a83c6.cjs');
|
|
32
|
+
const shared_tailwindElement_index = require('../index-dda1809d.cjs');
|
|
33
|
+
require('../cn-b6daa995.cjs');
|
|
34
|
+
require('../property-46482bf7.cjs');
|
|
35
|
+
require('../state-94c1d585.cjs');
|
|
36
|
+
require('../index-2b104ecb.cjs');
|
|
38
37
|
require('../tailwind-config.cjs');
|
|
39
|
-
require('../style-map-
|
|
38
|
+
require('../style-map-552ab28f.cjs');
|
|
40
39
|
require('../directive-8278ab14.cjs');
|
|
41
|
-
require('../index-
|
|
40
|
+
require('../index-f564f46f.cjs');
|
|
42
41
|
require('../index-e9668573.cjs');
|
|
43
42
|
|
|
44
43
|
|
package/dist/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { LuksoButton } from './lukso-button/index.js';
|
|
|
2
2
|
export { LuksoCard } from './lukso-card/index.js';
|
|
3
3
|
export { LuksoCheckbox } from './lukso-checkbox/index.js';
|
|
4
4
|
export { LuksoColorPicker } from './lukso-color-picker/index.js';
|
|
5
|
-
export { L as LuksoDropdown } from '../index-
|
|
5
|
+
export { L as LuksoDropdown } from '../index-40811e43.js';
|
|
6
6
|
export { LuksoDropdownOption } from './lukso-dropdown-option/index.js';
|
|
7
7
|
export { LuksoFooter } from './lukso-footer/index.js';
|
|
8
8
|
export { LuksoIcon } from './lukso-icon/index.js';
|
|
@@ -11,7 +11,7 @@ export { LuksoInput } from './lukso-input/index.js';
|
|
|
11
11
|
export { LuksoModal } from './lukso-modal/index.js';
|
|
12
12
|
export { LuksoNavbar } from './lukso-navbar/index.js';
|
|
13
13
|
export { LuksoPagination } from './lukso-pagination/index.js';
|
|
14
|
-
export { L as LuksoProfile } from '../index-
|
|
14
|
+
export { L as LuksoProfile } from '../index-30c74dfe.js';
|
|
15
15
|
export { LuksoProgress } from './lukso-progress/index.js';
|
|
16
16
|
export { LuksoSanitize } from './lukso-sanitize/index.js';
|
|
17
17
|
export { LuksoSearch } from './lukso-search/index.js';
|
|
@@ -25,14 +25,13 @@ export { LuksoTextarea } from './lukso-textarea/index.js';
|
|
|
25
25
|
export { LuksoTooltip } from './lukso-tooltip/index.js';
|
|
26
26
|
export { LuksoUsername } from './lukso-username/index.js';
|
|
27
27
|
export { LuksoWizard } from './lukso-wizard/index.js';
|
|
28
|
-
export { a as TailwindElement, T as TailwindStyledElement } from '../index-
|
|
29
|
-
import '../cn-
|
|
30
|
-
import '../
|
|
31
|
-
import '../state-
|
|
32
|
-
import '../index-
|
|
33
|
-
import '../bundle-mjs-fbc6e2a8.js';
|
|
28
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-86a3fdc1.js';
|
|
29
|
+
import '../cn-90c03edf.js';
|
|
30
|
+
import '../property-140ef335.js';
|
|
31
|
+
import '../state-876605e4.js';
|
|
32
|
+
import '../index-d14b6a34.js';
|
|
34
33
|
import '../tailwind-config.js';
|
|
35
|
-
import '../style-map-
|
|
34
|
+
import '../style-map-15dde65e.js';
|
|
36
35
|
import '../directive-2bb7789e.js';
|
|
37
|
-
import '../index-
|
|
36
|
+
import '../index-eb08047e.js';
|
|
38
37
|
import '../index-5e194caf.js';
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const state = require('../../state-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
|
|
6
|
+
const property = require('../../property-46482bf7.cjs');
|
|
7
|
+
const state = require('../../state-94c1d585.cjs');
|
|
8
|
+
const index = require('../../index-2b104ecb.cjs');
|
|
9
9
|
require('../../tailwind-config.cjs');
|
|
10
|
-
const cn = require('../../cn-
|
|
11
|
-
require('../../bundle-mjs-d58a83c6.cjs');
|
|
10
|
+
const cn = require('../../cn-b6daa995.cjs');
|
|
12
11
|
|
|
13
12
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
14
13
|
|
|
@@ -211,7 +210,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
211
210
|
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
212
211
|
class=${icon()}
|
|
213
212
|
></lukso-icon>
|
|
214
|
-
${this.loadingText ? shared_tailwindElement_index.x`<span class=${text()}>${this.loadingText}</span>` : shared_tailwindElement_index.
|
|
213
|
+
${this.loadingText ? shared_tailwindElement_index.x`<span class=${text()}>${this.loadingText}</span>` : shared_tailwindElement_index.E}`;
|
|
215
214
|
}
|
|
216
215
|
counterTemplate() {
|
|
217
216
|
const counterStyles = this.counterStyles({
|
|
@@ -244,7 +243,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
244
243
|
@mouseleave=${this.handleMouseUp}
|
|
245
244
|
>
|
|
246
245
|
${this.isLoading ? this.loadingTemplate() : shared_tailwindElement_index.x`<slot></slot>`}
|
|
247
|
-
${this.count ? this.counterTemplate() : shared_tailwindElement_index.
|
|
246
|
+
${this.count ? this.counterTemplate() : shared_tailwindElement_index.E}
|
|
248
247
|
</button>
|
|
249
248
|
`;
|
|
250
249
|
}
|
|
@@ -275,65 +274,65 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
275
274
|
}
|
|
276
275
|
};
|
|
277
276
|
__decorateClass([
|
|
278
|
-
|
|
277
|
+
property.n({ type: String })
|
|
279
278
|
], exports.LuksoButton.prototype, "variant", 2);
|
|
280
279
|
__decorateClass([
|
|
281
|
-
|
|
280
|
+
property.n({ type: String })
|
|
282
281
|
], exports.LuksoButton.prototype, "size", 2);
|
|
283
282
|
__decorateClass([
|
|
284
|
-
|
|
283
|
+
property.n({ type: Boolean })
|
|
285
284
|
], exports.LuksoButton.prototype, "disabled", 2);
|
|
286
285
|
__decorateClass([
|
|
287
|
-
|
|
286
|
+
property.n({ type: Boolean, attribute: "is-full-width" })
|
|
288
287
|
], exports.LuksoButton.prototype, "isFullWidth", 2);
|
|
289
288
|
__decorateClass([
|
|
290
|
-
|
|
289
|
+
property.n({ type: Boolean, attribute: "is-long-press" })
|
|
291
290
|
], exports.LuksoButton.prototype, "isLongPress", 2);
|
|
292
291
|
__decorateClass([
|
|
293
|
-
|
|
292
|
+
property.n({ type: Boolean, attribute: "is-link" })
|
|
294
293
|
], exports.LuksoButton.prototype, "isLink", 2);
|
|
295
294
|
__decorateClass([
|
|
296
|
-
|
|
295
|
+
property.n({ type: Boolean, attribute: "is-loading" })
|
|
297
296
|
], exports.LuksoButton.prototype, "isLoading", 2);
|
|
298
297
|
__decorateClass([
|
|
299
|
-
|
|
298
|
+
property.n({ type: String })
|
|
300
299
|
], exports.LuksoButton.prototype, "type", 2);
|
|
301
300
|
__decorateClass([
|
|
302
|
-
|
|
301
|
+
property.n({ type: String })
|
|
303
302
|
], exports.LuksoButton.prototype, "href", 2);
|
|
304
303
|
__decorateClass([
|
|
305
|
-
|
|
304
|
+
property.n({ type: String })
|
|
306
305
|
], exports.LuksoButton.prototype, "target", 2);
|
|
307
306
|
__decorateClass([
|
|
308
|
-
|
|
307
|
+
property.n({ type: String })
|
|
309
308
|
], exports.LuksoButton.prototype, "rel", 2);
|
|
310
309
|
__decorateClass([
|
|
311
|
-
|
|
310
|
+
property.n({ type: String, attribute: "loading-text" })
|
|
312
311
|
], exports.LuksoButton.prototype, "loadingText", 2);
|
|
313
312
|
__decorateClass([
|
|
314
|
-
|
|
313
|
+
property.n({ type: String, attribute: "custom-class" })
|
|
315
314
|
], exports.LuksoButton.prototype, "customClass", 2);
|
|
316
315
|
__decorateClass([
|
|
317
|
-
|
|
316
|
+
property.n({ type: Boolean, attribute: "is-active" })
|
|
318
317
|
], exports.LuksoButton.prototype, "isActive", 2);
|
|
319
318
|
__decorateClass([
|
|
320
|
-
|
|
319
|
+
property.n({ type: Number })
|
|
321
320
|
], exports.LuksoButton.prototype, "count", 2);
|
|
322
321
|
__decorateClass([
|
|
323
|
-
|
|
322
|
+
property.n({ type: Boolean, attribute: "is-icon" })
|
|
324
323
|
], exports.LuksoButton.prototype, "isIcon", 2);
|
|
325
324
|
__decorateClass([
|
|
326
|
-
|
|
325
|
+
property.n({ type: String })
|
|
327
326
|
], exports.LuksoButton.prototype, "label", 2);
|
|
328
327
|
__decorateClass([
|
|
329
|
-
state.
|
|
328
|
+
state.r()
|
|
330
329
|
], exports.LuksoButton.prototype, "isPressed", 2);
|
|
331
330
|
__decorateClass([
|
|
332
|
-
state.
|
|
331
|
+
state.r()
|
|
333
332
|
], exports.LuksoButton.prototype, "noTransition", 2);
|
|
334
333
|
__decorateClass([
|
|
335
|
-
state.
|
|
334
|
+
state.r()
|
|
336
335
|
], exports.LuksoButton.prototype, "timer", 2);
|
|
337
336
|
exports.LuksoButton = __decorateClass([
|
|
338
|
-
|
|
337
|
+
property.t("lukso-button")
|
|
339
338
|
], exports.LuksoButton);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x,
|
|
2
|
-
import { n,
|
|
3
|
-
import {
|
|
4
|
-
import { c as ce } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x, E } from '../../index-86a3fdc1.js';
|
|
2
|
+
import { n, t } from '../../property-140ef335.js';
|
|
3
|
+
import { r } from '../../state-876605e4.js';
|
|
4
|
+
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
5
|
import '../../tailwind-config.js';
|
|
6
|
-
import { c as cn } from '../../cn-
|
|
7
|
-
import '../../bundle-mjs-fbc6e2a8.js';
|
|
6
|
+
import { c as cn } from '../../cn-90c03edf.js';
|
|
8
7
|
|
|
9
8
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
10
9
|
|
|
@@ -207,7 +206,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
207
206
|
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
208
207
|
class=${icon()}
|
|
209
208
|
></lukso-icon>
|
|
210
|
-
${this.loadingText ? x`<span class=${text()}>${this.loadingText}</span>` :
|
|
209
|
+
${this.loadingText ? x`<span class=${text()}>${this.loadingText}</span>` : E}`;
|
|
211
210
|
}
|
|
212
211
|
counterTemplate() {
|
|
213
212
|
const counterStyles = this.counterStyles({
|
|
@@ -240,7 +239,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
240
239
|
@mouseleave=${this.handleMouseUp}
|
|
241
240
|
>
|
|
242
241
|
${this.isLoading ? this.loadingTemplate() : x`<slot></slot>`}
|
|
243
|
-
${this.count ? this.counterTemplate() :
|
|
242
|
+
${this.count ? this.counterTemplate() : E}
|
|
244
243
|
</button>
|
|
245
244
|
`;
|
|
246
245
|
}
|
|
@@ -322,16 +321,16 @@ __decorateClass([
|
|
|
322
321
|
n({ type: String })
|
|
323
322
|
], LuksoButton.prototype, "label", 2);
|
|
324
323
|
__decorateClass([
|
|
325
|
-
|
|
324
|
+
r()
|
|
326
325
|
], LuksoButton.prototype, "isPressed", 2);
|
|
327
326
|
__decorateClass([
|
|
328
|
-
|
|
327
|
+
r()
|
|
329
328
|
], LuksoButton.prototype, "noTransition", 2);
|
|
330
329
|
__decorateClass([
|
|
331
|
-
|
|
330
|
+
r()
|
|
332
331
|
], LuksoButton.prototype, "timer", 2);
|
|
333
332
|
LuksoButton = __decorateClass([
|
|
334
|
-
|
|
333
|
+
t("lukso-button")
|
|
335
334
|
], LuksoButton);
|
|
336
335
|
|
|
337
336
|
export { LuksoButton };
|
|
@@ -2,18 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const components_luksoProfile_index = require('../../index-
|
|
6
|
-
const shared_tailwindElement_index = require('../../index-
|
|
7
|
-
const
|
|
8
|
-
const state = require('../../state-
|
|
9
|
-
const styleMap = require('../../style-map-
|
|
10
|
-
const index = require('../../index-
|
|
5
|
+
const components_luksoProfile_index = require('../../index-9f282d35.cjs');
|
|
6
|
+
const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
|
|
7
|
+
const property = require('../../property-46482bf7.cjs');
|
|
8
|
+
const state = require('../../state-94c1d585.cjs');
|
|
9
|
+
const styleMap = require('../../style-map-552ab28f.cjs');
|
|
10
|
+
const index = require('../../index-2b104ecb.cjs');
|
|
11
11
|
require('../../tailwind-config.cjs');
|
|
12
|
-
const cn = require('../../cn-
|
|
13
|
-
const index$1 = require('../../index-
|
|
12
|
+
const cn = require('../../cn-b6daa995.cjs');
|
|
13
|
+
const index$1 = require('../../index-f564f46f.cjs');
|
|
14
14
|
require('../lukso-image/index.cjs');
|
|
15
15
|
require('../../directive-8278ab14.cjs');
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2017 Google LLC
|
|
20
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
+
*/
|
|
22
|
+
const e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,c),c);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2021 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
+
*/function o(o){return (e$1,n)=>{const{slot:r,selector:s}=o??{},c="slot"+(r?`[name=${r}]`:":not([name])");return e(e$1,n,{get(){const t=this.renderRoot?.querySelector(c),e=t?.assignedElements(o)??[];return void 0===s?e:e.filter((t=>t.matches(s)))}})}}
|
|
17
29
|
|
|
18
30
|
const style = ":host {\n display: inline-flex;\n width: 100%;\n}\n\n:host([width]) {\n width: inherit;\n}";
|
|
19
31
|
|
|
@@ -178,7 +190,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
178
190
|
</div>`}
|
|
179
191
|
${this.hasOverlay ? shared_tailwindElement_index.x`<div
|
|
180
192
|
class="h-full full rounded-t-[inherit] rounded-b-0 bg-neutral-20/10 absolute"
|
|
181
|
-
></div>` : shared_tailwindElement_index.
|
|
193
|
+
></div>` : shared_tailwindElement_index.E}
|
|
182
194
|
<div class="relative h-full">
|
|
183
195
|
<slot name="header"></slot>
|
|
184
196
|
</div>
|
|
@@ -304,7 +316,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
304
316
|
</div>`}
|
|
305
317
|
${this.hasOverlay && this.backgroundUrl ? shared_tailwindElement_index.x`<div
|
|
306
318
|
class="h-full w-full rounded-[inherit] bg-neutral-20/10 absolute"
|
|
307
|
-
></div>` : shared_tailwindElement_index.
|
|
319
|
+
></div>` : shared_tailwindElement_index.E}
|
|
308
320
|
<div
|
|
309
321
|
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
310
322
|
>
|
|
@@ -371,50 +383,50 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
371
383
|
}
|
|
372
384
|
};
|
|
373
385
|
__decorateClass([
|
|
374
|
-
|
|
386
|
+
property.n({ type: String })
|
|
375
387
|
], exports.LuksoCard.prototype, "variant", 2);
|
|
376
388
|
__decorateClass([
|
|
377
|
-
|
|
389
|
+
property.n({ type: String, attribute: "background-url" })
|
|
378
390
|
], exports.LuksoCard.prototype, "backgroundUrl", 2);
|
|
379
391
|
__decorateClass([
|
|
380
|
-
|
|
392
|
+
property.n({ type: String, attribute: "profile-url" })
|
|
381
393
|
], exports.LuksoCard.prototype, "profileUrl", 2);
|
|
382
394
|
__decorateClass([
|
|
383
|
-
|
|
395
|
+
property.n({ type: String, attribute: "profile-address" })
|
|
384
396
|
], exports.LuksoCard.prototype, "profileAddress", 2);
|
|
385
397
|
__decorateClass([
|
|
386
|
-
|
|
398
|
+
property.n({ type: Number })
|
|
387
399
|
], exports.LuksoCard.prototype, "width", 2);
|
|
388
400
|
__decorateClass([
|
|
389
|
-
|
|
401
|
+
property.n({ type: Number })
|
|
390
402
|
], exports.LuksoCard.prototype, "height", 2);
|
|
391
403
|
__decorateClass([
|
|
392
|
-
|
|
404
|
+
property.n({ type: String, attribute: "custom-class" })
|
|
393
405
|
], exports.LuksoCard.prototype, "customClass", 2);
|
|
394
406
|
__decorateClass([
|
|
395
|
-
|
|
407
|
+
property.n({ type: String, attribute: "header-class" })
|
|
396
408
|
], exports.LuksoCard.prototype, "headerClass", 2);
|
|
397
409
|
__decorateClass([
|
|
398
|
-
|
|
410
|
+
property.n({ type: String, attribute: "border-radius" })
|
|
399
411
|
], exports.LuksoCard.prototype, "borderRadius", 2);
|
|
400
412
|
__decorateClass([
|
|
401
|
-
|
|
413
|
+
property.n({ type: String })
|
|
402
414
|
], exports.LuksoCard.prototype, "shadow", 2);
|
|
403
415
|
__decorateClass([
|
|
404
|
-
|
|
416
|
+
property.n({ type: Boolean, attribute: "is-hoverable" })
|
|
405
417
|
], exports.LuksoCard.prototype, "isHoverable", 2);
|
|
406
418
|
__decorateClass([
|
|
407
|
-
|
|
419
|
+
property.n({ type: Boolean, attribute: "has-overlay" })
|
|
408
420
|
], exports.LuksoCard.prototype, "hasOverlay", 2);
|
|
409
421
|
__decorateClass([
|
|
410
|
-
|
|
422
|
+
property.n({ type: Boolean, attribute: "is-eoa" })
|
|
411
423
|
], exports.LuksoCard.prototype, "isEoa", 2);
|
|
412
424
|
__decorateClass([
|
|
413
|
-
|
|
425
|
+
o({ slot: "bottom", flatten: true })
|
|
414
426
|
], exports.LuksoCard.prototype, "bottomNodes", 2);
|
|
415
427
|
__decorateClass([
|
|
416
|
-
state.
|
|
428
|
+
state.r()
|
|
417
429
|
], exports.LuksoCard.prototype, "hasBottom", 2);
|
|
418
430
|
exports.LuksoCard = __decorateClass([
|
|
419
|
-
|
|
431
|
+
property.t("lukso-card")
|
|
420
432
|
], exports.LuksoCard);
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import { m as makeBlockie } from '../../index-
|
|
2
|
-
import { T as TailwindStyledElement, x,
|
|
3
|
-
import { n,
|
|
4
|
-
import {
|
|
5
|
-
import { o } from '../../style-map-
|
|
6
|
-
import { c as ce } from '../../index-
|
|
1
|
+
import { m as makeBlockie } from '../../index-30c74dfe.js';
|
|
2
|
+
import { T as TailwindStyledElement, x, E } from '../../index-86a3fdc1.js';
|
|
3
|
+
import { n, t } from '../../property-140ef335.js';
|
|
4
|
+
import { r } from '../../state-876605e4.js';
|
|
5
|
+
import { o as o$1 } from '../../style-map-15dde65e.js';
|
|
6
|
+
import { c as ce } from '../../index-d14b6a34.js';
|
|
7
7
|
import '../../tailwind-config.js';
|
|
8
|
-
import { c as cn } from '../../cn-
|
|
9
|
-
import { c as customStyleMap } from '../../index-
|
|
8
|
+
import { c as cn } from '../../cn-90c03edf.js';
|
|
9
|
+
import { c as customStyleMap } from '../../index-eb08047e.js';
|
|
10
10
|
import '../lukso-image/index.js';
|
|
11
11
|
import '../../directive-2bb7789e.js';
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2017 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/
|
|
18
|
+
const e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,c),c);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @license
|
|
22
|
+
* Copyright 2021 Google LLC
|
|
23
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
+
*/function o(o){return (e$1,n)=>{const{slot:r,selector:s}=o??{},c="slot"+(r?`[name=${r}]`:":not([name])");return e(e$1,n,{get(){const t=this.renderRoot?.querySelector(c),e=t?.assignedElements(o)??[];return void 0===s?e:e.filter((t=>t.matches(s)))}})}}
|
|
13
25
|
|
|
14
26
|
const style = ":host {\n display: inline-flex;\n width: 100%;\n}\n\n:host([width]) {\n width: inherit;\n}";
|
|
15
27
|
|
|
@@ -124,7 +136,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
124
136
|
return x`
|
|
125
137
|
<div
|
|
126
138
|
data-testid="card"
|
|
127
|
-
style=${o({
|
|
139
|
+
style=${o$1({
|
|
128
140
|
minHeight: `${this.height}px`,
|
|
129
141
|
width: `${this.width}px`
|
|
130
142
|
})}
|
|
@@ -159,7 +171,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
159
171
|
class=${cn(cardStyles, this.customClass)}
|
|
160
172
|
>
|
|
161
173
|
<div
|
|
162
|
-
style=${o({
|
|
174
|
+
style=${o$1({
|
|
163
175
|
backgroundImage: this.backgroundGradient()
|
|
164
176
|
})}
|
|
165
177
|
class=${cn(
|
|
@@ -174,7 +186,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
174
186
|
</div>`}
|
|
175
187
|
${this.hasOverlay ? x`<div
|
|
176
188
|
class="h-full full rounded-t-[inherit] rounded-b-0 bg-neutral-20/10 absolute"
|
|
177
|
-
></div>` :
|
|
189
|
+
></div>` : E}
|
|
178
190
|
<div class="relative h-full">
|
|
179
191
|
<slot name="header"></slot>
|
|
180
192
|
</div>
|
|
@@ -223,7 +235,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
223
235
|
class=${cn(cardStyles, this.customClass)}
|
|
224
236
|
>
|
|
225
237
|
<div
|
|
226
|
-
style=${o({
|
|
238
|
+
style=${o$1({
|
|
227
239
|
backgroundImage: this.backgroundGradient()
|
|
228
240
|
})}
|
|
229
241
|
class=${cn(
|
|
@@ -300,7 +312,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
300
312
|
</div>`}
|
|
301
313
|
${this.hasOverlay && this.backgroundUrl ? x`<div
|
|
302
314
|
class="h-full w-full rounded-[inherit] bg-neutral-20/10 absolute"
|
|
303
|
-
></div>` :
|
|
315
|
+
></div>` : E}
|
|
304
316
|
<div
|
|
305
317
|
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
306
318
|
>
|
|
@@ -328,7 +340,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
328
340
|
class=${cn(cardStyles, this.customClass)}
|
|
329
341
|
>
|
|
330
342
|
<div
|
|
331
|
-
style=${o({
|
|
343
|
+
style=${o$1({
|
|
332
344
|
backgroundImage: this.backgroundGradient()
|
|
333
345
|
})}
|
|
334
346
|
class=${cn(
|
|
@@ -406,13 +418,13 @@ __decorateClass([
|
|
|
406
418
|
n({ type: Boolean, attribute: "is-eoa" })
|
|
407
419
|
], LuksoCard.prototype, "isEoa", 2);
|
|
408
420
|
__decorateClass([
|
|
409
|
-
|
|
421
|
+
o({ slot: "bottom", flatten: true })
|
|
410
422
|
], LuksoCard.prototype, "bottomNodes", 2);
|
|
411
423
|
__decorateClass([
|
|
412
|
-
|
|
424
|
+
r()
|
|
413
425
|
], LuksoCard.prototype, "hasBottom", 2);
|
|
414
426
|
LuksoCard = __decorateClass([
|
|
415
|
-
|
|
427
|
+
t("lukso-card")
|
|
416
428
|
], LuksoCard);
|
|
417
429
|
|
|
418
430
|
export { LuksoCard };
|