@lukso/web-components 1.115.2 → 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 -12
- package/dist/components/index.js +9 -12
- package/dist/components/lukso-button/index.cjs +28 -31
- package/dist/components/lukso-button/index.js +11 -14
- package/dist/components/lukso-card/index.cjs +39 -29
- package/dist/components/lukso-card/index.js +30 -20
- 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 -33
- package/dist/components/lukso-color-picker/index.js +16 -19
- package/dist/components/lukso-dropdown/index.cjs +9 -12
- package/dist/components/lukso-dropdown/index.js +9 -12
- 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/index.cjs +8 -8
- package/dist/components/lukso-icon/index.js +4 -4
- 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 -49
- package/dist/components/lukso-input/index.js +22 -25
- 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 -16
- package/dist/components/lukso-pagination/index.js +8 -11
- 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 -13
- package/dist/components/lukso-progress/index.js +5 -8
- 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 -44
- package/dist/components/lukso-search/index.js +17 -20
- package/dist/components/lukso-select/index.cjs +38 -41
- package/dist/components/lukso-select/index.js +20 -23
- 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 -38
- package/dist/components/lukso-textarea/index.js +17 -20
- 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 -21
- package/dist/components/lukso-username/index.js +7 -10
- 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 -12
- package/dist/index.js +9 -12
- 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/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,18 +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('
|
|
40
|
-
require('node:path');
|
|
41
|
-
require('../style-map-54c139bb.cjs');
|
|
38
|
+
require('../style-map-552ab28f.cjs');
|
|
42
39
|
require('../directive-8278ab14.cjs');
|
|
43
|
-
require('../index-
|
|
40
|
+
require('../index-f564f46f.cjs');
|
|
44
41
|
require('../index-e9668573.cjs');
|
|
45
42
|
|
|
46
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,16 +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 '
|
|
36
|
-
import 'node:path';
|
|
37
|
-
import '../style-map-7a555e98.js';
|
|
34
|
+
import '../style-map-15dde65e.js';
|
|
38
35
|
import '../directive-2bb7789e.js';
|
|
39
|
-
import '../index-
|
|
36
|
+
import '../index-eb08047e.js';
|
|
40
37
|
import '../index-5e194caf.js';
|
|
@@ -2,15 +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
|
-
require('
|
|
11
|
-
require('node:path');
|
|
12
|
-
const cn = require('../../cn-fc6d6aa9.cjs');
|
|
13
|
-
require('../../bundle-mjs-d58a83c6.cjs');
|
|
10
|
+
const cn = require('../../cn-b6daa995.cjs');
|
|
14
11
|
|
|
15
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}";
|
|
16
13
|
|
|
@@ -213,7 +210,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
213
210
|
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
214
211
|
class=${icon()}
|
|
215
212
|
></lukso-icon>
|
|
216
|
-
${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}`;
|
|
217
214
|
}
|
|
218
215
|
counterTemplate() {
|
|
219
216
|
const counterStyles = this.counterStyles({
|
|
@@ -246,7 +243,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
246
243
|
@mouseleave=${this.handleMouseUp}
|
|
247
244
|
>
|
|
248
245
|
${this.isLoading ? this.loadingTemplate() : shared_tailwindElement_index.x`<slot></slot>`}
|
|
249
|
-
${this.count ? this.counterTemplate() : shared_tailwindElement_index.
|
|
246
|
+
${this.count ? this.counterTemplate() : shared_tailwindElement_index.E}
|
|
250
247
|
</button>
|
|
251
248
|
`;
|
|
252
249
|
}
|
|
@@ -277,65 +274,65 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
277
274
|
}
|
|
278
275
|
};
|
|
279
276
|
__decorateClass([
|
|
280
|
-
|
|
277
|
+
property.n({ type: String })
|
|
281
278
|
], exports.LuksoButton.prototype, "variant", 2);
|
|
282
279
|
__decorateClass([
|
|
283
|
-
|
|
280
|
+
property.n({ type: String })
|
|
284
281
|
], exports.LuksoButton.prototype, "size", 2);
|
|
285
282
|
__decorateClass([
|
|
286
|
-
|
|
283
|
+
property.n({ type: Boolean })
|
|
287
284
|
], exports.LuksoButton.prototype, "disabled", 2);
|
|
288
285
|
__decorateClass([
|
|
289
|
-
|
|
286
|
+
property.n({ type: Boolean, attribute: "is-full-width" })
|
|
290
287
|
], exports.LuksoButton.prototype, "isFullWidth", 2);
|
|
291
288
|
__decorateClass([
|
|
292
|
-
|
|
289
|
+
property.n({ type: Boolean, attribute: "is-long-press" })
|
|
293
290
|
], exports.LuksoButton.prototype, "isLongPress", 2);
|
|
294
291
|
__decorateClass([
|
|
295
|
-
|
|
292
|
+
property.n({ type: Boolean, attribute: "is-link" })
|
|
296
293
|
], exports.LuksoButton.prototype, "isLink", 2);
|
|
297
294
|
__decorateClass([
|
|
298
|
-
|
|
295
|
+
property.n({ type: Boolean, attribute: "is-loading" })
|
|
299
296
|
], exports.LuksoButton.prototype, "isLoading", 2);
|
|
300
297
|
__decorateClass([
|
|
301
|
-
|
|
298
|
+
property.n({ type: String })
|
|
302
299
|
], exports.LuksoButton.prototype, "type", 2);
|
|
303
300
|
__decorateClass([
|
|
304
|
-
|
|
301
|
+
property.n({ type: String })
|
|
305
302
|
], exports.LuksoButton.prototype, "href", 2);
|
|
306
303
|
__decorateClass([
|
|
307
|
-
|
|
304
|
+
property.n({ type: String })
|
|
308
305
|
], exports.LuksoButton.prototype, "target", 2);
|
|
309
306
|
__decorateClass([
|
|
310
|
-
|
|
307
|
+
property.n({ type: String })
|
|
311
308
|
], exports.LuksoButton.prototype, "rel", 2);
|
|
312
309
|
__decorateClass([
|
|
313
|
-
|
|
310
|
+
property.n({ type: String, attribute: "loading-text" })
|
|
314
311
|
], exports.LuksoButton.prototype, "loadingText", 2);
|
|
315
312
|
__decorateClass([
|
|
316
|
-
|
|
313
|
+
property.n({ type: String, attribute: "custom-class" })
|
|
317
314
|
], exports.LuksoButton.prototype, "customClass", 2);
|
|
318
315
|
__decorateClass([
|
|
319
|
-
|
|
316
|
+
property.n({ type: Boolean, attribute: "is-active" })
|
|
320
317
|
], exports.LuksoButton.prototype, "isActive", 2);
|
|
321
318
|
__decorateClass([
|
|
322
|
-
|
|
319
|
+
property.n({ type: Number })
|
|
323
320
|
], exports.LuksoButton.prototype, "count", 2);
|
|
324
321
|
__decorateClass([
|
|
325
|
-
|
|
322
|
+
property.n({ type: Boolean, attribute: "is-icon" })
|
|
326
323
|
], exports.LuksoButton.prototype, "isIcon", 2);
|
|
327
324
|
__decorateClass([
|
|
328
|
-
|
|
325
|
+
property.n({ type: String })
|
|
329
326
|
], exports.LuksoButton.prototype, "label", 2);
|
|
330
327
|
__decorateClass([
|
|
331
|
-
state.
|
|
328
|
+
state.r()
|
|
332
329
|
], exports.LuksoButton.prototype, "isPressed", 2);
|
|
333
330
|
__decorateClass([
|
|
334
|
-
state.
|
|
331
|
+
state.r()
|
|
335
332
|
], exports.LuksoButton.prototype, "noTransition", 2);
|
|
336
333
|
__decorateClass([
|
|
337
|
-
state.
|
|
334
|
+
state.r()
|
|
338
335
|
], exports.LuksoButton.prototype, "timer", 2);
|
|
339
336
|
exports.LuksoButton = __decorateClass([
|
|
340
|
-
|
|
337
|
+
property.t("lukso-button")
|
|
341
338
|
], exports.LuksoButton);
|
|
@@ -1,12 +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 '
|
|
7
|
-
import 'node:path';
|
|
8
|
-
import { c as cn } from '../../cn-01b2d42a.js';
|
|
9
|
-
import '../../bundle-mjs-fbc6e2a8.js';
|
|
6
|
+
import { c as cn } from '../../cn-90c03edf.js';
|
|
10
7
|
|
|
11
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}";
|
|
12
9
|
|
|
@@ -209,7 +206,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
209
206
|
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
210
207
|
class=${icon()}
|
|
211
208
|
></lukso-icon>
|
|
212
|
-
${this.loadingText ? x`<span class=${text()}>${this.loadingText}</span>` :
|
|
209
|
+
${this.loadingText ? x`<span class=${text()}>${this.loadingText}</span>` : E}`;
|
|
213
210
|
}
|
|
214
211
|
counterTemplate() {
|
|
215
212
|
const counterStyles = this.counterStyles({
|
|
@@ -242,7 +239,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
242
239
|
@mouseleave=${this.handleMouseUp}
|
|
243
240
|
>
|
|
244
241
|
${this.isLoading ? this.loadingTemplate() : x`<slot></slot>`}
|
|
245
|
-
${this.count ? this.counterTemplate() :
|
|
242
|
+
${this.count ? this.counterTemplate() : E}
|
|
246
243
|
</button>
|
|
247
244
|
`;
|
|
248
245
|
}
|
|
@@ -324,16 +321,16 @@ __decorateClass([
|
|
|
324
321
|
n({ type: String })
|
|
325
322
|
], LuksoButton.prototype, "label", 2);
|
|
326
323
|
__decorateClass([
|
|
327
|
-
|
|
324
|
+
r()
|
|
328
325
|
], LuksoButton.prototype, "isPressed", 2);
|
|
329
326
|
__decorateClass([
|
|
330
|
-
|
|
327
|
+
r()
|
|
331
328
|
], LuksoButton.prototype, "noTransition", 2);
|
|
332
329
|
__decorateClass([
|
|
333
|
-
|
|
330
|
+
r()
|
|
334
331
|
], LuksoButton.prototype, "timer", 2);
|
|
335
332
|
LuksoButton = __decorateClass([
|
|
336
|
-
|
|
333
|
+
t("lukso-button")
|
|
337
334
|
], LuksoButton);
|
|
338
335
|
|
|
339
336
|
export { LuksoButton };
|
|
@@ -2,20 +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
|
-
require('
|
|
13
|
-
require('
|
|
14
|
-
const cn = require('../../cn-fc6d6aa9.cjs');
|
|
15
|
-
const index$1 = require('../../index-0917a814.cjs');
|
|
12
|
+
const cn = require('../../cn-b6daa995.cjs');
|
|
13
|
+
const index$1 = require('../../index-f564f46f.cjs');
|
|
16
14
|
require('../lukso-image/index.cjs');
|
|
17
15
|
require('../../directive-8278ab14.cjs');
|
|
18
|
-
|
|
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)))}})}}
|
|
19
29
|
|
|
20
30
|
const style = ":host {\n display: inline-flex;\n width: 100%;\n}\n\n:host([width]) {\n width: inherit;\n}";
|
|
21
31
|
|
|
@@ -180,7 +190,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
180
190
|
</div>`}
|
|
181
191
|
${this.hasOverlay ? shared_tailwindElement_index.x`<div
|
|
182
192
|
class="h-full full rounded-t-[inherit] rounded-b-0 bg-neutral-20/10 absolute"
|
|
183
|
-
></div>` : shared_tailwindElement_index.
|
|
193
|
+
></div>` : shared_tailwindElement_index.E}
|
|
184
194
|
<div class="relative h-full">
|
|
185
195
|
<slot name="header"></slot>
|
|
186
196
|
</div>
|
|
@@ -306,7 +316,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
306
316
|
</div>`}
|
|
307
317
|
${this.hasOverlay && this.backgroundUrl ? shared_tailwindElement_index.x`<div
|
|
308
318
|
class="h-full w-full rounded-[inherit] bg-neutral-20/10 absolute"
|
|
309
|
-
></div>` : shared_tailwindElement_index.
|
|
319
|
+
></div>` : shared_tailwindElement_index.E}
|
|
310
320
|
<div
|
|
311
321
|
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
312
322
|
>
|
|
@@ -373,50 +383,50 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
373
383
|
}
|
|
374
384
|
};
|
|
375
385
|
__decorateClass([
|
|
376
|
-
|
|
386
|
+
property.n({ type: String })
|
|
377
387
|
], exports.LuksoCard.prototype, "variant", 2);
|
|
378
388
|
__decorateClass([
|
|
379
|
-
|
|
389
|
+
property.n({ type: String, attribute: "background-url" })
|
|
380
390
|
], exports.LuksoCard.prototype, "backgroundUrl", 2);
|
|
381
391
|
__decorateClass([
|
|
382
|
-
|
|
392
|
+
property.n({ type: String, attribute: "profile-url" })
|
|
383
393
|
], exports.LuksoCard.prototype, "profileUrl", 2);
|
|
384
394
|
__decorateClass([
|
|
385
|
-
|
|
395
|
+
property.n({ type: String, attribute: "profile-address" })
|
|
386
396
|
], exports.LuksoCard.prototype, "profileAddress", 2);
|
|
387
397
|
__decorateClass([
|
|
388
|
-
|
|
398
|
+
property.n({ type: Number })
|
|
389
399
|
], exports.LuksoCard.prototype, "width", 2);
|
|
390
400
|
__decorateClass([
|
|
391
|
-
|
|
401
|
+
property.n({ type: Number })
|
|
392
402
|
], exports.LuksoCard.prototype, "height", 2);
|
|
393
403
|
__decorateClass([
|
|
394
|
-
|
|
404
|
+
property.n({ type: String, attribute: "custom-class" })
|
|
395
405
|
], exports.LuksoCard.prototype, "customClass", 2);
|
|
396
406
|
__decorateClass([
|
|
397
|
-
|
|
407
|
+
property.n({ type: String, attribute: "header-class" })
|
|
398
408
|
], exports.LuksoCard.prototype, "headerClass", 2);
|
|
399
409
|
__decorateClass([
|
|
400
|
-
|
|
410
|
+
property.n({ type: String, attribute: "border-radius" })
|
|
401
411
|
], exports.LuksoCard.prototype, "borderRadius", 2);
|
|
402
412
|
__decorateClass([
|
|
403
|
-
|
|
413
|
+
property.n({ type: String })
|
|
404
414
|
], exports.LuksoCard.prototype, "shadow", 2);
|
|
405
415
|
__decorateClass([
|
|
406
|
-
|
|
416
|
+
property.n({ type: Boolean, attribute: "is-hoverable" })
|
|
407
417
|
], exports.LuksoCard.prototype, "isHoverable", 2);
|
|
408
418
|
__decorateClass([
|
|
409
|
-
|
|
419
|
+
property.n({ type: Boolean, attribute: "has-overlay" })
|
|
410
420
|
], exports.LuksoCard.prototype, "hasOverlay", 2);
|
|
411
421
|
__decorateClass([
|
|
412
|
-
|
|
422
|
+
property.n({ type: Boolean, attribute: "is-eoa" })
|
|
413
423
|
], exports.LuksoCard.prototype, "isEoa", 2);
|
|
414
424
|
__decorateClass([
|
|
415
|
-
|
|
425
|
+
o({ slot: "bottom", flatten: true })
|
|
416
426
|
], exports.LuksoCard.prototype, "bottomNodes", 2);
|
|
417
427
|
__decorateClass([
|
|
418
|
-
state.
|
|
428
|
+
state.r()
|
|
419
429
|
], exports.LuksoCard.prototype, "hasBottom", 2);
|
|
420
430
|
exports.LuksoCard = __decorateClass([
|
|
421
|
-
|
|
431
|
+
property.t("lukso-card")
|
|
422
432
|
], exports.LuksoCard);
|
|
@@ -1,17 +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 '
|
|
9
|
-
import '
|
|
10
|
-
import { c as cn } from '../../cn-01b2d42a.js';
|
|
11
|
-
import { c as customStyleMap } from '../../index-adf2fc92.js';
|
|
8
|
+
import { c as cn } from '../../cn-90c03edf.js';
|
|
9
|
+
import { c as customStyleMap } from '../../index-eb08047e.js';
|
|
12
10
|
import '../lukso-image/index.js';
|
|
13
11
|
import '../../directive-2bb7789e.js';
|
|
14
|
-
|
|
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)))}})}}
|
|
15
25
|
|
|
16
26
|
const style = ":host {\n display: inline-flex;\n width: 100%;\n}\n\n:host([width]) {\n width: inherit;\n}";
|
|
17
27
|
|
|
@@ -126,7 +136,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
126
136
|
return x`
|
|
127
137
|
<div
|
|
128
138
|
data-testid="card"
|
|
129
|
-
style=${o({
|
|
139
|
+
style=${o$1({
|
|
130
140
|
minHeight: `${this.height}px`,
|
|
131
141
|
width: `${this.width}px`
|
|
132
142
|
})}
|
|
@@ -161,7 +171,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
161
171
|
class=${cn(cardStyles, this.customClass)}
|
|
162
172
|
>
|
|
163
173
|
<div
|
|
164
|
-
style=${o({
|
|
174
|
+
style=${o$1({
|
|
165
175
|
backgroundImage: this.backgroundGradient()
|
|
166
176
|
})}
|
|
167
177
|
class=${cn(
|
|
@@ -176,7 +186,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
176
186
|
</div>`}
|
|
177
187
|
${this.hasOverlay ? x`<div
|
|
178
188
|
class="h-full full rounded-t-[inherit] rounded-b-0 bg-neutral-20/10 absolute"
|
|
179
|
-
></div>` :
|
|
189
|
+
></div>` : E}
|
|
180
190
|
<div class="relative h-full">
|
|
181
191
|
<slot name="header"></slot>
|
|
182
192
|
</div>
|
|
@@ -225,7 +235,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
225
235
|
class=${cn(cardStyles, this.customClass)}
|
|
226
236
|
>
|
|
227
237
|
<div
|
|
228
|
-
style=${o({
|
|
238
|
+
style=${o$1({
|
|
229
239
|
backgroundImage: this.backgroundGradient()
|
|
230
240
|
})}
|
|
231
241
|
class=${cn(
|
|
@@ -302,7 +312,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
302
312
|
</div>`}
|
|
303
313
|
${this.hasOverlay && this.backgroundUrl ? x`<div
|
|
304
314
|
class="h-full w-full rounded-[inherit] bg-neutral-20/10 absolute"
|
|
305
|
-
></div>` :
|
|
315
|
+
></div>` : E}
|
|
306
316
|
<div
|
|
307
317
|
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
308
318
|
>
|
|
@@ -330,7 +340,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
330
340
|
class=${cn(cardStyles, this.customClass)}
|
|
331
341
|
>
|
|
332
342
|
<div
|
|
333
|
-
style=${o({
|
|
343
|
+
style=${o$1({
|
|
334
344
|
backgroundImage: this.backgroundGradient()
|
|
335
345
|
})}
|
|
336
346
|
class=${cn(
|
|
@@ -408,13 +418,13 @@ __decorateClass([
|
|
|
408
418
|
n({ type: Boolean, attribute: "is-eoa" })
|
|
409
419
|
], LuksoCard.prototype, "isEoa", 2);
|
|
410
420
|
__decorateClass([
|
|
411
|
-
|
|
421
|
+
o({ slot: "bottom", flatten: true })
|
|
412
422
|
], LuksoCard.prototype, "bottomNodes", 2);
|
|
413
423
|
__decorateClass([
|
|
414
|
-
|
|
424
|
+
r()
|
|
415
425
|
], LuksoCard.prototype, "hasBottom", 2);
|
|
416
426
|
LuksoCard = __decorateClass([
|
|
417
|
-
|
|
427
|
+
t("lukso-card")
|
|
418
428
|
], LuksoCard);
|
|
419
429
|
|
|
420
430
|
export { LuksoCard };
|