@descope/web-components-ui 1.0.134 → 1.0.136
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +275 -254
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +253 -231
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/{18.js → 1018.js} +2 -2
- package/dist/umd/2481.js +1 -0
- package/dist/umd/3208.js +2 -0
- package/dist/umd/3585.js +1 -0
- package/dist/umd/3878.js +1 -0
- package/dist/umd/4201.js +1 -0
- package/dist/umd/4447.js +1 -0
- package/dist/umd/{513.js → 4513.js} +1 -1
- package/dist/umd/4803.js +1 -0
- package/dist/umd/5767.js +2 -0
- package/dist/umd/{806.js → 5806.js} +2 -2
- package/dist/umd/{56.js → 7056.js} +2 -2
- package/dist/umd/{101.js → 7101.js} +2 -2
- package/dist/umd/{824.js → 7824.js} +2 -2
- package/dist/umd/7840.js +356 -0
- package/dist/umd/{725.js → 8725.js} +2 -2
- package/dist/umd/{211.js → 9211.js} +2 -2
- package/dist/umd/9241.js +1 -0
- package/dist/umd/{314.js → 9314.js} +2 -2
- package/dist/umd/{437.js → 9437.js} +2 -2
- package/dist/umd/{515.js → 9515.js} +2 -2
- package/dist/umd/{789.js → 9789.js} +1 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/descope-button-index-js.js +1 -1
- package/dist/umd/descope-combo-box-index-js.js +1 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-date-picker-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/descope-image-index-js.js +1 -1
- package/dist/umd/descope-loader-linear-index-js.js +1 -1
- package/dist/umd/descope-loader-radial-index-js.js +1 -1
- package/dist/umd/descope-logo-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/descope-phone-field-index-js.js +1 -1
- package/dist/umd/descope-text-area-index-js.js +1 -1
- package/dist/umd/descope-text-field-index-js.js +1 -1
- package/dist/umd/descope-text-index-js.js +1 -1
- package/dist/umd/descope-totp-image-index-js.js +1 -0
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/baseClasses/createCssVarImageClass.js +49 -0
- package/src/components/descope-logo/LogoClass.js +2 -51
- package/src/components/descope-totp-image/TotpImageClass.js +6 -0
- package/src/components/descope-totp-image/index.js +5 -0
- package/src/index.cjs.js +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/totpImage.js +10 -0
- package/dist/umd/201.js +0 -1
- package/dist/umd/208.js +0 -2
- package/dist/umd/241.js +0 -1
- package/dist/umd/447.js +0 -1
- package/dist/umd/481.js +0 -1
- package/dist/umd/767.js +0 -2
- package/dist/umd/803.js +0 -1
- package/dist/umd/840.js +0 -356
- package/dist/umd/878.js +0 -1
- /package/dist/umd/{18.js.LICENSE.txt → 1018.js.LICENSE.txt} +0 -0
- /package/dist/umd/{208.js.LICENSE.txt → 3208.js.LICENSE.txt} +0 -0
- /package/dist/umd/{767.js.LICENSE.txt → 5767.js.LICENSE.txt} +0 -0
- /package/dist/umd/{437.js.LICENSE.txt → 5806.js.LICENSE.txt} +0 -0
- /package/dist/umd/{56.js.LICENSE.txt → 7056.js.LICENSE.txt} +0 -0
- /package/dist/umd/{101.js.LICENSE.txt → 7101.js.LICENSE.txt} +0 -0
- /package/dist/umd/{824.js.LICENSE.txt → 7824.js.LICENSE.txt} +0 -0
- /package/dist/umd/{840.js.LICENSE.txt → 7840.js.LICENSE.txt} +0 -0
- /package/dist/umd/{515.js.LICENSE.txt → 8725.js.LICENSE.txt} +0 -0
- /package/dist/umd/{211.js.LICENSE.txt → 9211.js.LICENSE.txt} +0 -0
- /package/dist/umd/{314.js.LICENSE.txt → 9314.js.LICENSE.txt} +0 -0
- /package/dist/umd/{806.js.LICENSE.txt → 9437.js.LICENSE.txt} +0 -0
- /package/dist/umd/{725.js.LICENSE.txt → 9515.js.LICENSE.txt} +0 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -508,7 +508,7 @@ const globals = {
|
|
508
508
|
shadow,
|
509
509
|
fonts
|
510
510
|
};
|
511
|
-
const vars$
|
511
|
+
const vars$n = getThemeVars(globals);
|
512
512
|
|
513
513
|
const resetInputOverrides = (name, cssVarList) => `
|
514
514
|
${resetInputContainer(name)}
|
@@ -1555,7 +1555,7 @@ const inputEventsDispatchingMixin = (superclass) => class InputEventsDispatching
|
|
1555
1555
|
}
|
1556
1556
|
};
|
1557
1557
|
|
1558
|
-
const componentName$
|
1558
|
+
const componentName$p = getComponentName('button');
|
1559
1559
|
|
1560
1560
|
const resetStyles = `
|
1561
1561
|
:host {
|
@@ -1643,7 +1643,7 @@ const ButtonClass = compose(
|
|
1643
1643
|
${useHostExternalPadding(ButtonClass.cssVarList)}
|
1644
1644
|
`,
|
1645
1645
|
excludeAttrsSync: ['tabindex'],
|
1646
|
-
componentName: componentName$
|
1646
|
+
componentName: componentName$p
|
1647
1647
|
})
|
1648
1648
|
);
|
1649
1649
|
|
@@ -1687,7 +1687,7 @@ const mode = {
|
|
1687
1687
|
surface: globalRefs$b.colors.surface
|
1688
1688
|
};
|
1689
1689
|
|
1690
|
-
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$
|
1690
|
+
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$p);
|
1691
1691
|
|
1692
1692
|
const verticalPaddingRatio = 3;
|
1693
1693
|
const horizontalPaddingRatio = 2;
|
@@ -1769,7 +1769,7 @@ const button = {
|
|
1769
1769
|
}
|
1770
1770
|
};
|
1771
1771
|
|
1772
|
-
const vars$
|
1772
|
+
const vars$m = {
|
1773
1773
|
...compVars$2,
|
1774
1774
|
...helperVars$2
|
1775
1775
|
};
|
@@ -1777,7 +1777,7 @@ const vars$l = {
|
|
1777
1777
|
var button$1 = /*#__PURE__*/Object.freeze({
|
1778
1778
|
__proto__: null,
|
1779
1779
|
default: button,
|
1780
|
-
vars: vars$
|
1780
|
+
vars: vars$m
|
1781
1781
|
});
|
1782
1782
|
|
1783
1783
|
const {
|
@@ -1849,7 +1849,7 @@ var textFieldMappings = {
|
|
1849
1849
|
inputPlaceholderColor: { ...placeholder$2, property: 'color' }
|
1850
1850
|
};
|
1851
1851
|
|
1852
|
-
const componentName$
|
1852
|
+
const componentName$o = getComponentName('text-field');
|
1853
1853
|
|
1854
1854
|
const observedAttrs = ['type'];
|
1855
1855
|
|
@@ -1895,14 +1895,14 @@ const TextFieldClass = compose(
|
|
1895
1895
|
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
1896
1896
|
`,
|
1897
1897
|
excludeAttrsSync: ['tabindex'],
|
1898
|
-
componentName: componentName$
|
1898
|
+
componentName: componentName$o
|
1899
1899
|
})
|
1900
1900
|
);
|
1901
1901
|
|
1902
|
-
const componentName$
|
1902
|
+
const componentName$n = getComponentName('input-wrapper');
|
1903
1903
|
const globalRefs$a = getThemeRefs(globals);
|
1904
1904
|
|
1905
|
-
const [theme$1, refs, vars$
|
1905
|
+
const [theme$1, refs, vars$l] = createHelperVars({
|
1906
1906
|
labelTextColor: globalRefs$a.colors.surface.contrast,
|
1907
1907
|
valueTextColor: globalRefs$a.colors.surface.contrast,
|
1908
1908
|
placeholderTextColor: globalRefs$a.colors.surface.main,
|
@@ -1961,44 +1961,44 @@ const [theme$1, refs, vars$k] = createHelperVars({
|
|
1961
1961
|
placeholderTextColor: globalRefs$a.colors.surface.dark,
|
1962
1962
|
backgroundColor: globalRefs$a.colors.surface.main
|
1963
1963
|
}
|
1964
|
-
}, componentName$
|
1964
|
+
}, componentName$n);
|
1965
1965
|
|
1966
1966
|
var inputWrapper = /*#__PURE__*/Object.freeze({
|
1967
1967
|
__proto__: null,
|
1968
1968
|
default: theme$1,
|
1969
1969
|
refs: refs,
|
1970
|
-
vars: vars$
|
1970
|
+
vars: vars$l
|
1971
1971
|
});
|
1972
1972
|
|
1973
|
-
const vars$
|
1973
|
+
const vars$k = TextFieldClass.cssVarList;
|
1974
1974
|
|
1975
1975
|
const textField = ({
|
1976
|
-
[vars$
|
1977
|
-
[vars$
|
1978
|
-
[vars$
|
1979
|
-
[vars$
|
1980
|
-
[vars$
|
1981
|
-
[vars$
|
1982
|
-
[vars$
|
1983
|
-
[vars$
|
1984
|
-
[vars$
|
1985
|
-
[vars$
|
1986
|
-
[vars$
|
1987
|
-
[vars$
|
1988
|
-
[vars$
|
1989
|
-
[vars$
|
1990
|
-
[vars$
|
1991
|
-
[vars$
|
1992
|
-
[vars$
|
1993
|
-
[vars$
|
1994
|
-
[vars$
|
1976
|
+
[vars$k.hostWidth]: refs.width,
|
1977
|
+
[vars$k.hostMinWidth]: refs.minWidth,
|
1978
|
+
[vars$k.fontSize]: refs.fontSize,
|
1979
|
+
[vars$k.fontFamily]: refs.fontFamily,
|
1980
|
+
[vars$k.labelTextColor]: refs.labelTextColor,
|
1981
|
+
[vars$k.labelRequiredIndicator]: refs.requiredIndicator,
|
1982
|
+
[vars$k.inputValueTextColor]: refs.valueTextColor,
|
1983
|
+
[vars$k.inputPlaceholderColor]: refs.placeholderTextColor,
|
1984
|
+
[vars$k.inputBorderWidth]: refs.borderWidth,
|
1985
|
+
[vars$k.inputBorderStyle]: refs.borderStyle,
|
1986
|
+
[vars$k.inputBorderColor]: refs.borderColor,
|
1987
|
+
[vars$k.inputBorderRadius]: refs.borderRadius,
|
1988
|
+
[vars$k.inputOutlineWidth]: refs.outlineWidth,
|
1989
|
+
[vars$k.inputOutlineStyle]: refs.outlineStyle,
|
1990
|
+
[vars$k.inputOutlineColor]: refs.outlineColor,
|
1991
|
+
[vars$k.inputOutlineOffset]: refs.outlineOffset,
|
1992
|
+
[vars$k.inputBackgroundColor]: refs.backgroundColor,
|
1993
|
+
[vars$k.inputHeight]: refs.inputHeight,
|
1994
|
+
[vars$k.inputHorizontalPadding]: refs.horizontalPadding
|
1995
1995
|
});
|
1996
1996
|
|
1997
1997
|
var textField$1 = /*#__PURE__*/Object.freeze({
|
1998
1998
|
__proto__: null,
|
1999
1999
|
default: textField,
|
2000
2000
|
textField: textField,
|
2001
|
-
vars: vars$
|
2001
|
+
vars: vars$k
|
2002
2002
|
});
|
2003
2003
|
|
2004
2004
|
const passwordDraggableMixin = (superclass) => class PasswordDraggableMixinClass extends superclass {
|
@@ -2034,7 +2034,7 @@ const passwordDraggableMixin = (superclass) => class PasswordDraggableMixinClass
|
|
2034
2034
|
}
|
2035
2035
|
};
|
2036
2036
|
|
2037
|
-
const componentName$
|
2037
|
+
const componentName$m = getComponentName('password');
|
2038
2038
|
|
2039
2039
|
const {
|
2040
2040
|
host: host$a,
|
@@ -2170,43 +2170,43 @@ const PasswordClass = compose(
|
|
2170
2170
|
}
|
2171
2171
|
`,
|
2172
2172
|
excludeAttrsSync: ['tabindex'],
|
2173
|
-
componentName: componentName$
|
2173
|
+
componentName: componentName$m
|
2174
2174
|
})
|
2175
2175
|
);
|
2176
2176
|
|
2177
2177
|
const globalRefs$9 = getThemeRefs(globals);
|
2178
|
-
const vars$
|
2178
|
+
const vars$j = PasswordClass.cssVarList;
|
2179
2179
|
|
2180
2180
|
const password = {
|
2181
|
-
[vars$
|
2182
|
-
[vars$
|
2183
|
-
[vars$
|
2184
|
-
[vars$
|
2185
|
-
[vars$
|
2186
|
-
[vars$
|
2187
|
-
[vars$
|
2188
|
-
[vars$
|
2189
|
-
[vars$
|
2190
|
-
[vars$
|
2191
|
-
[vars$
|
2192
|
-
[vars$
|
2193
|
-
[vars$
|
2194
|
-
[vars$
|
2195
|
-
[vars$
|
2196
|
-
[vars$
|
2197
|
-
[vars$
|
2198
|
-
[vars$
|
2199
|
-
[vars$
|
2200
|
-
[vars$
|
2181
|
+
[vars$j.hostWidth]: refs.width,
|
2182
|
+
[vars$j.fontSize]: refs.fontSize,
|
2183
|
+
[vars$j.fontFamily]: refs.fontFamily,
|
2184
|
+
[vars$j.labelTextColor]: refs.labelTextColor,
|
2185
|
+
[vars$j.inputHorizontalPadding]: refs.horizontalPadding,
|
2186
|
+
[vars$j.inputHeight]: refs.inputHeight,
|
2187
|
+
[vars$j.inputBackgroundColor]: refs.backgroundColor,
|
2188
|
+
[vars$j.labelRequiredIndicator]: refs.requiredIndicator,
|
2189
|
+
[vars$j.inputValueTextColor]: refs.valueTextColor,
|
2190
|
+
[vars$j.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
2191
|
+
[vars$j.inputBorderWidth]: refs.borderWidth,
|
2192
|
+
[vars$j.inputBorderStyle]: refs.borderStyle,
|
2193
|
+
[vars$j.inputBorderColor]: refs.borderColor,
|
2194
|
+
[vars$j.inputBorderRadius]: refs.borderRadius,
|
2195
|
+
[vars$j.inputOutlineWidth]: refs.outlineWidth,
|
2196
|
+
[vars$j.inputOutlineStyle]: refs.outlineStyle,
|
2197
|
+
[vars$j.inputOutlineColor]: refs.outlineColor,
|
2198
|
+
[vars$j.inputOutlineOffset]: refs.outlineOffset,
|
2199
|
+
[vars$j.revealButtonOffset]: globalRefs$9.spacing.md,
|
2200
|
+
[vars$j.revealButtonSize]: refs.toggleButtonSize
|
2201
2201
|
};
|
2202
2202
|
|
2203
2203
|
var password$1 = /*#__PURE__*/Object.freeze({
|
2204
2204
|
__proto__: null,
|
2205
2205
|
default: password,
|
2206
|
-
vars: vars$
|
2206
|
+
vars: vars$j
|
2207
2207
|
});
|
2208
2208
|
|
2209
|
-
const componentName$
|
2209
|
+
const componentName$l = getComponentName('number-field');
|
2210
2210
|
|
2211
2211
|
const NumberFieldClass = compose(
|
2212
2212
|
createStyleMixin({
|
@@ -2229,41 +2229,41 @@ const NumberFieldClass = compose(
|
|
2229
2229
|
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
2230
2230
|
`,
|
2231
2231
|
excludeAttrsSync: ['tabindex'],
|
2232
|
-
componentName: componentName$
|
2232
|
+
componentName: componentName$l
|
2233
2233
|
})
|
2234
2234
|
);
|
2235
2235
|
|
2236
|
-
const vars$
|
2236
|
+
const vars$i = NumberFieldClass.cssVarList;
|
2237
2237
|
|
2238
2238
|
const numberField = {
|
2239
|
-
[vars$
|
2240
|
-
[vars$
|
2241
|
-
[vars$
|
2242
|
-
[vars$
|
2243
|
-
[vars$
|
2244
|
-
[vars$
|
2245
|
-
[vars$
|
2246
|
-
[vars$
|
2247
|
-
[vars$
|
2248
|
-
[vars$
|
2249
|
-
[vars$
|
2250
|
-
[vars$
|
2251
|
-
[vars$
|
2252
|
-
[vars$
|
2253
|
-
[vars$
|
2254
|
-
[vars$
|
2255
|
-
[vars$
|
2256
|
-
[vars$
|
2257
|
-
[vars$
|
2239
|
+
[vars$i.hostWidth]: refs.width,
|
2240
|
+
[vars$i.hostMinWidth]: refs.minWidth,
|
2241
|
+
[vars$i.fontSize]: refs.fontSize,
|
2242
|
+
[vars$i.fontFamily]: refs.fontFamily,
|
2243
|
+
[vars$i.labelTextColor]: refs.labelTextColor,
|
2244
|
+
[vars$i.inputValueTextColor]: refs.valueTextColor,
|
2245
|
+
[vars$i.inputPlaceholderColor]: refs.placeholderTextColor,
|
2246
|
+
[vars$i.inputBorderWidth]: refs.borderWidth,
|
2247
|
+
[vars$i.inputBorderStyle]: refs.borderStyle,
|
2248
|
+
[vars$i.inputBorderColor]: refs.borderColor,
|
2249
|
+
[vars$i.inputBorderRadius]: refs.borderRadius,
|
2250
|
+
[vars$i.inputOutlineWidth]: refs.outlineWidth,
|
2251
|
+
[vars$i.inputOutlineStyle]: refs.outlineStyle,
|
2252
|
+
[vars$i.inputOutlineColor]: refs.outlineColor,
|
2253
|
+
[vars$i.inputOutlineOffset]: refs.outlineOffset,
|
2254
|
+
[vars$i.inputBackgroundColor]: refs.backgroundColor,
|
2255
|
+
[vars$i.labelRequiredIndicator]: refs.requiredIndicator,
|
2256
|
+
[vars$i.inputHorizontalPadding]: refs.horizontalPadding,
|
2257
|
+
[vars$i.inputHeight]: refs.inputHeight
|
2258
2258
|
};
|
2259
2259
|
|
2260
2260
|
var numberField$1 = /*#__PURE__*/Object.freeze({
|
2261
2261
|
__proto__: null,
|
2262
2262
|
default: numberField,
|
2263
|
-
vars: vars$
|
2263
|
+
vars: vars$i
|
2264
2264
|
});
|
2265
2265
|
|
2266
|
-
const componentName$
|
2266
|
+
const componentName$k = getComponentName('email-field');
|
2267
2267
|
|
2268
2268
|
const EmailFieldClass = compose(
|
2269
2269
|
createStyleMixin({
|
@@ -2286,41 +2286,41 @@ const EmailFieldClass = compose(
|
|
2286
2286
|
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
2287
2287
|
`,
|
2288
2288
|
excludeAttrsSync: ['tabindex'],
|
2289
|
-
componentName: componentName$
|
2289
|
+
componentName: componentName$k
|
2290
2290
|
})
|
2291
2291
|
);
|
2292
2292
|
|
2293
|
-
const vars$
|
2293
|
+
const vars$h = EmailFieldClass.cssVarList;
|
2294
2294
|
|
2295
2295
|
const emailField = {
|
2296
|
-
[vars$
|
2297
|
-
[vars$
|
2298
|
-
[vars$
|
2299
|
-
[vars$
|
2300
|
-
[vars$
|
2301
|
-
[vars$
|
2302
|
-
[vars$
|
2303
|
-
[vars$
|
2304
|
-
[vars$
|
2305
|
-
[vars$
|
2306
|
-
[vars$
|
2307
|
-
[vars$
|
2308
|
-
[vars$
|
2309
|
-
[vars$
|
2310
|
-
[vars$
|
2311
|
-
[vars$
|
2312
|
-
[vars$
|
2313
|
-
[vars$
|
2314
|
-
[vars$
|
2296
|
+
[vars$h.hostWidth]: refs.width,
|
2297
|
+
[vars$h.hostMinWidth]: refs.minWidth,
|
2298
|
+
[vars$h.fontSize]: refs.fontSize,
|
2299
|
+
[vars$h.fontFamily]: refs.fontFamily,
|
2300
|
+
[vars$h.labelTextColor]: refs.labelTextColor,
|
2301
|
+
[vars$h.inputValueTextColor]: refs.valueTextColor,
|
2302
|
+
[vars$h.labelRequiredIndicator]: refs.requiredIndicator,
|
2303
|
+
[vars$h.inputPlaceholderColor]: refs.placeholderTextColor,
|
2304
|
+
[vars$h.inputBorderWidth]: refs.borderWidth,
|
2305
|
+
[vars$h.inputBorderStyle]: refs.borderStyle,
|
2306
|
+
[vars$h.inputBorderColor]: refs.borderColor,
|
2307
|
+
[vars$h.inputBorderRadius]: refs.borderRadius,
|
2308
|
+
[vars$h.inputOutlineWidth]: refs.outlineWidth,
|
2309
|
+
[vars$h.inputOutlineStyle]: refs.outlineStyle,
|
2310
|
+
[vars$h.inputOutlineColor]: refs.outlineColor,
|
2311
|
+
[vars$h.inputOutlineOffset]: refs.outlineOffset,
|
2312
|
+
[vars$h.inputBackgroundColor]: refs.backgroundColor,
|
2313
|
+
[vars$h.inputHorizontalPadding]: refs.horizontalPadding,
|
2314
|
+
[vars$h.inputHeight]: refs.inputHeight
|
2315
2315
|
};
|
2316
2316
|
|
2317
2317
|
var emailField$1 = /*#__PURE__*/Object.freeze({
|
2318
2318
|
__proto__: null,
|
2319
2319
|
default: emailField,
|
2320
|
-
vars: vars$
|
2320
|
+
vars: vars$h
|
2321
2321
|
});
|
2322
2322
|
|
2323
|
-
const componentName$
|
2323
|
+
const componentName$j = getComponentName('text-area');
|
2324
2324
|
|
2325
2325
|
const {
|
2326
2326
|
host: host$9,
|
@@ -2395,46 +2395,46 @@ const TextAreaClass = compose(
|
|
2395
2395
|
${resetInputCursor('vaadin-text-area')}
|
2396
2396
|
`,
|
2397
2397
|
excludeAttrsSync: ['tabindex'],
|
2398
|
-
componentName: componentName$
|
2398
|
+
componentName: componentName$j
|
2399
2399
|
})
|
2400
2400
|
);
|
2401
2401
|
|
2402
2402
|
const globalRefs$8 = getThemeRefs(globals);
|
2403
|
-
const vars$
|
2403
|
+
const vars$g = TextAreaClass.cssVarList;
|
2404
2404
|
|
2405
2405
|
const textArea = {
|
2406
|
-
[vars$
|
2407
|
-
[vars$
|
2408
|
-
[vars$
|
2409
|
-
[vars$
|
2410
|
-
[vars$
|
2411
|
-
[vars$
|
2412
|
-
[vars$
|
2413
|
-
[vars$
|
2414
|
-
[vars$
|
2415
|
-
[vars$
|
2416
|
-
[vars$
|
2417
|
-
[vars$
|
2418
|
-
[vars$
|
2419
|
-
[vars$
|
2420
|
-
[vars$
|
2421
|
-
[vars$
|
2422
|
-
[vars$
|
2423
|
-
[vars$
|
2406
|
+
[vars$g.hostWidth]: refs.width,
|
2407
|
+
[vars$g.hostMinWidth]: refs.minWidth,
|
2408
|
+
[vars$g.fontSize]: '14px',
|
2409
|
+
[vars$g.fontFamily]: refs.fontFamily,
|
2410
|
+
[vars$g.labelTextColor]: refs.labelTextColor,
|
2411
|
+
[vars$g.labelRequiredIndicator]: refs.requiredIndicator,
|
2412
|
+
[vars$g.inputBackgroundColor]: refs.backgroundColor,
|
2413
|
+
[vars$g.inputValueTextColor]: refs.valueTextColor,
|
2414
|
+
[vars$g.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
2415
|
+
[vars$g.inputBorderRadius]: refs.borderRadius,
|
2416
|
+
[vars$g.inputBorderWidth]: refs.borderWidth,
|
2417
|
+
[vars$g.inputBorderStyle]: refs.borderStyle,
|
2418
|
+
[vars$g.inputBorderColor]: refs.borderColor,
|
2419
|
+
[vars$g.inputOutlineWidth]: refs.outlineWidth,
|
2420
|
+
[vars$g.inputOutlineStyle]: refs.outlineStyle,
|
2421
|
+
[vars$g.inputOutlineColor]: refs.outlineColor,
|
2422
|
+
[vars$g.inputOutlineOffset]: refs.outlineOffset,
|
2423
|
+
[vars$g.inputResizeType]: 'vertical',
|
2424
2424
|
|
2425
2425
|
_disabled: {
|
2426
|
-
[vars$
|
2426
|
+
[vars$g.inputBackgroundColor]: globalRefs$8.colors.surface.light,
|
2427
2427
|
},
|
2428
2428
|
|
2429
2429
|
_readonly: {
|
2430
|
-
[vars$
|
2430
|
+
[vars$g.inputResizeType]: 'none',
|
2431
2431
|
}
|
2432
2432
|
};
|
2433
2433
|
|
2434
2434
|
var textArea$1 = /*#__PURE__*/Object.freeze({
|
2435
2435
|
__proto__: null,
|
2436
2436
|
default: textArea,
|
2437
|
-
vars: vars$
|
2437
|
+
vars: vars$g
|
2438
2438
|
});
|
2439
2439
|
|
2440
2440
|
const createBaseInputClass = (...args) => compose(
|
@@ -2444,9 +2444,9 @@ const createBaseInputClass = (...args) => compose(
|
|
2444
2444
|
inputEventsDispatchingMixin
|
2445
2445
|
)(createBaseClass(...args));
|
2446
2446
|
|
2447
|
-
const componentName$
|
2447
|
+
const componentName$i = getComponentName('boolean-field-internal');
|
2448
2448
|
|
2449
|
-
createBaseInputClass({ componentName: componentName$
|
2449
|
+
createBaseInputClass({ componentName: componentName$i, baseSelector: 'div' });
|
2450
2450
|
|
2451
2451
|
const booleanFieldMixin = (superclass) =>
|
2452
2452
|
class BooleanFieldMixinClass extends superclass {
|
@@ -2459,14 +2459,14 @@ const booleanFieldMixin = (superclass) =>
|
|
2459
2459
|
|
2460
2460
|
const template = document.createElement('template');
|
2461
2461
|
template.innerHTML = `
|
2462
|
-
<${componentName$
|
2462
|
+
<${componentName$i}
|
2463
2463
|
tabindex="-1"
|
2464
2464
|
slot="input"
|
2465
|
-
></${componentName$
|
2465
|
+
></${componentName$i}>
|
2466
2466
|
`;
|
2467
2467
|
|
2468
2468
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
2469
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
2469
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$i);
|
2470
2470
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
2471
2471
|
|
2472
2472
|
forwardAttrs(this, this.inputElement, {
|
@@ -2552,7 +2552,7 @@ vaadin-checkbox::part(checkbox) {
|
|
2552
2552
|
}
|
2553
2553
|
`;
|
2554
2554
|
|
2555
|
-
const componentName$
|
2555
|
+
const componentName$h = getComponentName('checkbox');
|
2556
2556
|
|
2557
2557
|
const {
|
2558
2558
|
host: host$8,
|
@@ -2647,49 +2647,49 @@ const CheckboxClass = compose(
|
|
2647
2647
|
${useHostExternalPadding(CheckboxClass.cssVarList)}
|
2648
2648
|
`,
|
2649
2649
|
excludeAttrsSync: ['tabindex'],
|
2650
|
-
componentName: componentName$
|
2650
|
+
componentName: componentName$h
|
2651
2651
|
})
|
2652
2652
|
);
|
2653
2653
|
|
2654
2654
|
getThemeRefs(globals);
|
2655
|
-
const vars$
|
2655
|
+
const vars$f = CheckboxClass.cssVarList;
|
2656
2656
|
|
2657
2657
|
const checkbox = {
|
2658
|
-
[vars$
|
2659
|
-
[vars$
|
2660
|
-
[vars$
|
2661
|
-
[vars$
|
2662
|
-
[vars$
|
2663
|
-
[vars$
|
2664
|
-
[vars$
|
2665
|
-
[vars$
|
2666
|
-
[vars$
|
2667
|
-
[vars$
|
2668
|
-
[vars$
|
2669
|
-
[vars$
|
2670
|
-
[vars$
|
2671
|
-
[vars$
|
2672
|
-
[vars$
|
2673
|
-
[vars$
|
2674
|
-
[vars$
|
2658
|
+
[vars$f.hostWidth]: refs.width,
|
2659
|
+
[vars$f.fontSize]: refs.fontSize,
|
2660
|
+
[vars$f.fontFamily]: refs.fontFamily,
|
2661
|
+
[vars$f.labelTextColor]: refs.labelTextColor,
|
2662
|
+
[vars$f.labelRequiredIndicator]: refs.requiredIndicator,
|
2663
|
+
[vars$f.labelFontWeight]: '400',
|
2664
|
+
[vars$f.labelSpacing]: '0.75em',
|
2665
|
+
[vars$f.inputOutlineWidth]: refs.outlineWidth,
|
2666
|
+
[vars$f.inputOutlineOffset]: refs.outlineOffset,
|
2667
|
+
[vars$f.inputOutlineColor]: refs.outlineColor,
|
2668
|
+
[vars$f.inputOutlineStyle]: refs.outlineStyle,
|
2669
|
+
[vars$f.inputBorderRadius]: refs.borderRadius,
|
2670
|
+
[vars$f.inputBorderColor]: refs.borderColor,
|
2671
|
+
[vars$f.inputBorderWidth]: refs.borderWidth,
|
2672
|
+
[vars$f.inputBorderStyle]: refs.borderStyle,
|
2673
|
+
[vars$f.inputBackgroundColor]: refs.inputBackgroundColor,
|
2674
|
+
[vars$f.inputSize]: '2em',
|
2675
2675
|
|
2676
2676
|
_checked: {
|
2677
|
-
[vars$
|
2678
|
-
[vars$
|
2677
|
+
[vars$f.inputBackgroundColor]: refs.backgroundColor,
|
2678
|
+
[vars$f.inputValueTextColor]: refs.valueTextColor,
|
2679
2679
|
},
|
2680
2680
|
|
2681
2681
|
_disabled: {
|
2682
|
-
[vars$
|
2682
|
+
[vars$f.labelTextColor]: refs.labelTextColor,
|
2683
2683
|
},
|
2684
2684
|
};
|
2685
2685
|
|
2686
2686
|
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
2687
2687
|
__proto__: null,
|
2688
2688
|
default: checkbox,
|
2689
|
-
vars: vars$
|
2689
|
+
vars: vars$f
|
2690
2690
|
});
|
2691
2691
|
|
2692
|
-
const componentName$
|
2692
|
+
const componentName$g = getComponentName('switch-toggle');
|
2693
2693
|
|
2694
2694
|
const {
|
2695
2695
|
host: host$7,
|
@@ -2799,7 +2799,7 @@ const SwitchToggleClass = compose(
|
|
2799
2799
|
}
|
2800
2800
|
`,
|
2801
2801
|
excludeAttrsSync: ['tabindex'],
|
2802
|
-
componentName: componentName$
|
2802
|
+
componentName: componentName$g
|
2803
2803
|
})
|
2804
2804
|
);
|
2805
2805
|
|
@@ -2807,74 +2807,74 @@ const knobMargin = '2px';
|
|
2807
2807
|
const checkboxHeight = '1.25em';
|
2808
2808
|
|
2809
2809
|
const globalRefs$7 = getThemeRefs(globals);
|
2810
|
-
const vars$
|
2810
|
+
const vars$e = SwitchToggleClass.cssVarList;
|
2811
2811
|
|
2812
2812
|
const switchToggle = {
|
2813
|
-
[vars$
|
2814
|
-
[vars$
|
2815
|
-
|
2816
|
-
[vars$
|
2817
|
-
[vars$
|
2818
|
-
[vars$
|
2819
|
-
[vars$
|
2820
|
-
|
2821
|
-
[vars$
|
2822
|
-
[vars$
|
2823
|
-
[vars$
|
2824
|
-
[vars$
|
2825
|
-
[vars$
|
2826
|
-
[vars$
|
2827
|
-
[vars$
|
2828
|
-
|
2829
|
-
[vars$
|
2830
|
-
[vars$
|
2831
|
-
[vars$
|
2832
|
-
[vars$
|
2833
|
-
[vars$
|
2834
|
-
[vars$
|
2835
|
-
|
2836
|
-
[vars$
|
2837
|
-
[vars$
|
2838
|
-
[vars$
|
2839
|
-
[vars$
|
2840
|
-
[vars$
|
2841
|
-
|
2842
|
-
[vars$
|
2813
|
+
[vars$e.fontSize]: refs.fontSize,
|
2814
|
+
[vars$e.fontFamily]: refs.fontFamily,
|
2815
|
+
|
2816
|
+
[vars$e.inputOutlineWidth]: refs.outlineWidth,
|
2817
|
+
[vars$e.inputOutlineOffset]: refs.outlineOffset,
|
2818
|
+
[vars$e.inputOutlineColor]: refs.outlineColor,
|
2819
|
+
[vars$e.inputOutlineStyle]: refs.outlineStyle,
|
2820
|
+
|
2821
|
+
[vars$e.trackBorderStyle]: refs.borderStyle,
|
2822
|
+
[vars$e.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
2823
|
+
[vars$e.trackBorderColor]: refs.borderColor,
|
2824
|
+
[vars$e.trackBackgroundColor]: 'none',
|
2825
|
+
[vars$e.trackBorderRadius]: globalRefs$7.radius.md,
|
2826
|
+
[vars$e.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
2827
|
+
[vars$e.trackHeight]: checkboxHeight,
|
2828
|
+
|
2829
|
+
[vars$e.knobSize]: `calc(1em - ${knobMargin})`,
|
2830
|
+
[vars$e.knobRadius]: '50%',
|
2831
|
+
[vars$e.knobTopOffset]: '1px',
|
2832
|
+
[vars$e.knobLeftOffset]: knobMargin,
|
2833
|
+
[vars$e.knobColor]: refs.valueTextColor,
|
2834
|
+
[vars$e.knobTransitionDuration]: '0.3s',
|
2835
|
+
|
2836
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
2837
|
+
[vars$e.labelFontWeight]: '400',
|
2838
|
+
[vars$e.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
|
2839
|
+
[vars$e.labelSpacing]: '0.25em',
|
2840
|
+
[vars$e.labelRequiredIndicator]: refs.requiredIndicator,
|
2841
|
+
|
2842
|
+
[vars$e.hostWidth]: refs.width,
|
2843
2843
|
|
2844
2844
|
_checked: {
|
2845
|
-
[vars$
|
2846
|
-
[vars$
|
2847
|
-
[vars$
|
2848
|
-
[vars$
|
2849
|
-
[vars$
|
2845
|
+
[vars$e.trackBorderColor]: refs.borderColor,
|
2846
|
+
[vars$e.trackBackgroundColor]: refs.backgroundColor,
|
2847
|
+
[vars$e.knobLeftOffset]: `calc(100% - var(${vars$e.knobSize}) - ${knobMargin})`,
|
2848
|
+
[vars$e.knobColor]: refs.valueTextColor,
|
2849
|
+
[vars$e.knobTextColor]: refs.valueTextColor,
|
2850
2850
|
},
|
2851
2851
|
|
2852
2852
|
_disabled: {
|
2853
|
-
[vars$
|
2854
|
-
[vars$
|
2855
|
-
[vars$
|
2856
|
-
[vars$
|
2853
|
+
[vars$e.knobColor]: globalRefs$7.colors.surface.light,
|
2854
|
+
[vars$e.trackBorderColor]: globalRefs$7.colors.surface.main,
|
2855
|
+
[vars$e.trackBackgroundColor]: globalRefs$7.colors.surface.main,
|
2856
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
2857
2857
|
_checked: {
|
2858
|
-
[vars$
|
2859
|
-
[vars$
|
2858
|
+
[vars$e.knobColor]: globalRefs$7.colors.surface.light,
|
2859
|
+
[vars$e.trackBackgroundColor]: globalRefs$7.colors.surface.main,
|
2860
2860
|
}
|
2861
2861
|
},
|
2862
2862
|
|
2863
2863
|
_invalid: {
|
2864
|
-
[vars$
|
2865
|
-
[vars$
|
2864
|
+
[vars$e.trackBorderColor]: globalRefs$7.colors.error.main,
|
2865
|
+
[vars$e.knobColor]: globalRefs$7.colors.error.main,
|
2866
2866
|
},
|
2867
2867
|
};
|
2868
2868
|
|
2869
2869
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
2870
2870
|
__proto__: null,
|
2871
2871
|
default: switchToggle,
|
2872
|
-
vars: vars$
|
2872
|
+
vars: vars$e
|
2873
2873
|
});
|
2874
2874
|
|
2875
|
-
const componentName$
|
2875
|
+
const componentName$f = getComponentName('container');
|
2876
2876
|
|
2877
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
2877
|
+
class RawContainer extends createBaseClass({ componentName: componentName$f, baseSelector: ':host > slot' }) {
|
2878
2878
|
constructor() {
|
2879
2879
|
super();
|
2880
2880
|
|
@@ -2953,7 +2953,7 @@ const [helperTheme$2, helperRefs$2, helperVars$1] =
|
|
2953
2953
|
verticalAlignment,
|
2954
2954
|
horizontalAlignment,
|
2955
2955
|
shadowColor: '#00000020' //if we want to support transparency vars, we should use different color format
|
2956
|
-
}, componentName$
|
2956
|
+
}, componentName$f);
|
2957
2957
|
|
2958
2958
|
const { shadowColor } = helperRefs$2;
|
2959
2959
|
|
@@ -3028,7 +3028,7 @@ const container = {
|
|
3028
3028
|
}
|
3029
3029
|
};
|
3030
3030
|
|
3031
|
-
const vars$
|
3031
|
+
const vars$d = {
|
3032
3032
|
...compVars$1,
|
3033
3033
|
...helperVars$1
|
3034
3034
|
};
|
@@ -3036,63 +3036,82 @@ const vars$c = {
|
|
3036
3036
|
var container$1 = /*#__PURE__*/Object.freeze({
|
3037
3037
|
__proto__: null,
|
3038
3038
|
default: container,
|
3039
|
-
vars: vars$
|
3039
|
+
vars: vars$d
|
3040
3040
|
});
|
3041
3041
|
|
3042
|
-
const componentName$d = getComponentName('logo');
|
3043
|
-
|
3044
3042
|
let style;
|
3045
|
-
const
|
3043
|
+
const getContent = () => style;
|
3044
|
+
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
3045
|
+
class RawCssVarImageClass extends createBaseClass({ componentName, baseSelector: ':host > div' }) {
|
3046
|
+
constructor() {
|
3047
|
+
super();
|
3048
|
+
this.attachShadow({ mode: 'open' }).innerHTML = `
|
3049
|
+
<style>
|
3050
|
+
:host {
|
3051
|
+
display: inline-flex;
|
3052
|
+
}
|
3053
|
+
:host([draggable="true"]) > div {
|
3054
|
+
pointer-events: none
|
3055
|
+
}
|
3056
|
+
:host > div {
|
3057
|
+
display: inline-block;
|
3058
|
+
max-width: 100%;
|
3059
|
+
max-height: 100%;
|
3060
|
+
object-fit: contain;
|
3061
|
+
margin: auto;
|
3062
|
+
${getContent()}
|
3063
|
+
}
|
3064
|
+
</style>
|
3065
|
+
<div></div>
|
3066
|
+
`;
|
3067
|
+
}
|
3068
|
+
}
|
3046
3069
|
|
3047
|
-
|
3048
|
-
|
3049
|
-
|
3070
|
+
const CssVarImageClass = compose(
|
3071
|
+
createStyleMixin({
|
3072
|
+
mappings: {
|
3073
|
+
height: { selector: () => ':host' },
|
3074
|
+
width: { selector: () => ':host' },
|
3075
|
+
[varName]: { property: 'content' },
|
3076
|
+
[fallbackVarName]: { property: 'content' },
|
3077
|
+
}
|
3078
|
+
}),
|
3079
|
+
draggableMixin,
|
3080
|
+
componentNameValidationMixin
|
3081
|
+
)(RawCssVarImageClass);
|
3050
3082
|
|
3051
|
-
|
3052
|
-
<style>
|
3053
|
-
${getStyle()}
|
3054
|
-
</style>
|
3055
|
-
<div></div>`;
|
3056
|
-
}
|
3057
|
-
}
|
3083
|
+
style = `content: var(${CssVarImageClass.cssVarList[varName]}, var(${CssVarImageClass.cssVarList[fallbackVarName]}));`;
|
3058
3084
|
|
3059
|
-
|
3060
|
-
|
3061
|
-
mappings: {
|
3062
|
-
height: { selector: () => ':host' },
|
3063
|
-
width: { selector: () => ':host' },
|
3064
|
-
fallbackUrl: { property: 'content' },
|
3065
|
-
url: { property: 'content' },
|
3066
|
-
}
|
3067
|
-
}),
|
3068
|
-
draggableMixin,
|
3069
|
-
componentNameValidationMixin
|
3070
|
-
)(RawLogo);
|
3085
|
+
return CssVarImageClass;
|
3086
|
+
};
|
3071
3087
|
|
3072
|
-
|
3073
|
-
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3082
|
-
|
3083
|
-
|
3084
|
-
:
|
3085
|
-
|
3086
|
-
}
|
3087
|
-
|
3088
|
+
const componentName$e = getComponentName('logo');
|
3089
|
+
|
3090
|
+
const LogoClass = createCssVarImageClass({ componentName: componentName$e, varName: 'url', fallbackVarName: 'fallbackUrl' });
|
3091
|
+
|
3092
|
+
const vars$c = LogoClass.cssVarList;
|
3093
|
+
|
3094
|
+
const logo$1 = {
|
3095
|
+
[vars$c.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)'
|
3096
|
+
};
|
3097
|
+
|
3098
|
+
var logo$2 = /*#__PURE__*/Object.freeze({
|
3099
|
+
__proto__: null,
|
3100
|
+
default: logo$1,
|
3101
|
+
vars: vars$c
|
3102
|
+
});
|
3103
|
+
|
3104
|
+
const componentName$d = getComponentName('totp-image');
|
3105
|
+
|
3106
|
+
const TotpImageClass = createCssVarImageClass({ componentName: componentName$d, varName: 'url', fallbackVarName: 'fallbackUrl' });
|
3088
3107
|
|
3089
|
-
const vars$b =
|
3108
|
+
const vars$b = TotpImageClass.cssVarList;
|
3090
3109
|
|
3091
3110
|
const logo = {
|
3092
|
-
[vars$b.fallbackUrl]: 'url(https://imgs.descope.com/components/
|
3111
|
+
[vars$b.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)'
|
3093
3112
|
};
|
3094
3113
|
|
3095
|
-
var
|
3114
|
+
var totpImage = /*#__PURE__*/Object.freeze({
|
3096
3115
|
__proto__: null,
|
3097
3116
|
default: logo,
|
3098
3117
|
vars: vars$b
|
@@ -5849,7 +5868,8 @@ const components = {
|
|
5849
5868
|
checkbox: checkbox$1,
|
5850
5869
|
switchToggle: switchToggle$1,
|
5851
5870
|
container: container$1,
|
5852
|
-
logo: logo$
|
5871
|
+
logo: logo$2,
|
5872
|
+
totpImage,
|
5853
5873
|
text: text$3,
|
5854
5874
|
link: link$1,
|
5855
5875
|
divider: divider$1,
|
@@ -5867,7 +5887,7 @@ const theme = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: c
|
|
5867
5887
|
const vars = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: components[comp].vars }), {});
|
5868
5888
|
|
5869
5889
|
const defaultTheme = { globals, components: theme };
|
5870
|
-
const themeVars = { globals: vars$
|
5890
|
+
const themeVars = { globals: vars$n, components: vars };
|
5871
5891
|
|
5872
5892
|
exports.ButtonClass = ButtonClass;
|
5873
5893
|
exports.CheckboxClass = CheckboxClass;
|
@@ -5888,6 +5908,7 @@ exports.SwitchToggleClass = SwitchToggleClass;
|
|
5888
5908
|
exports.TextAreaClass = TextAreaClass;
|
5889
5909
|
exports.TextClass = TextClass;
|
5890
5910
|
exports.TextFieldClass = TextFieldClass;
|
5911
|
+
exports.TotpImageClass = TotpImageClass;
|
5891
5912
|
exports.componentsThemeManager = componentsThemeManager;
|
5892
5913
|
exports.createComponentsTheme = createComponentsTheme;
|
5893
5914
|
exports.createHelperVars = createHelperVars;
|