@cloudscape-design/components-themeable 3.0.52 → 3.0.55
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/lib/internal/scss/collection-preferences/visible-content.scss +0 -1
- package/lib/internal/scss/date-input/styles.scss +8 -0
- package/lib/internal/scss/property-filter/styles.scss +39 -13
- package/lib/internal/template/collection-preferences/styles.css.js +19 -19
- package/lib/internal/template/collection-preferences/styles.scoped.css +20 -21
- package/lib/internal/template/collection-preferences/styles.selectors.js +19 -19
- package/lib/internal/template/{internal/components/date-input → date-input}/index.d.ts +1 -1
- package/lib/internal/template/date-input/index.d.ts.map +1 -0
- package/lib/internal/template/date-input/index.js +15 -0
- package/lib/internal/template/date-input/index.js.map +1 -0
- package/lib/internal/template/date-input/interfaces.d.ts +9 -0
- package/lib/internal/template/date-input/interfaces.d.ts.map +1 -0
- package/lib/internal/template/date-input/interfaces.js +4 -0
- package/lib/internal/template/date-input/interfaces.js.map +1 -0
- package/lib/internal/template/date-input/internal.d.ts +6 -0
- package/lib/internal/template/date-input/internal.d.ts.map +1 -0
- package/lib/internal/template/date-input/internal.js +30 -0
- package/lib/internal/template/date-input/internal.js.map +1 -0
- package/lib/internal/template/date-input/styles.css.js +6 -0
- package/lib/internal/template/date-input/styles.scoped.css +7 -0
- package/lib/internal/template/date-input/styles.selectors.js +7 -0
- package/lib/internal/template/date-picker/index.d.ts.map +1 -1
- package/lib/internal/template/date-picker/index.js +2 -2
- package/lib/internal/template/date-picker/index.js.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/index.js +3 -3
- package/lib/internal/template/date-range-picker/calendar/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/property-filter/styles.css.js +30 -27
- package/lib/internal/template/property-filter/styles.scoped.css +59 -34
- package/lib/internal/template/property-filter/styles.selectors.js +30 -27
- package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
- package/lib/internal/template/property-filter/token-editor.js +17 -22
- package/lib/internal/template/property-filter/token-editor.js.map +1 -1
- package/lib/internal/template/test-utils/dom/date-input/index.d.ts +4 -0
- package/lib/internal/template/test-utils/dom/date-input/index.js +31 -0
- package/lib/internal/template/test-utils/dom/date-input/index.js.map +1 -0
- package/lib/internal/template/test-utils/selectors/date-input/index.d.ts +4 -0
- package/lib/internal/template/test-utils/selectors/date-input/index.js +31 -0
- package/lib/internal/template/test-utils/selectors/date-input/index.js.map +1 -0
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/internal/template/internal/components/date-input/index.d.ts.map +0 -1
- package/lib/internal/template/internal/components/date-input/index.js +0 -28
- package/lib/internal/template/internal/components/date-input/index.js.map +0 -1
- package/lib/internal/template/internal/components/date-input/interfaces.d.ts +0 -16
- package/lib/internal/template/internal/components/date-input/interfaces.d.ts.map +0 -1
- package/lib/internal/template/internal/components/date-input/interfaces.js +0 -2
- package/lib/internal/template/internal/components/date-input/interfaces.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/date-input/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAc,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAO1C,SAAS,OAAO,CAAC,KAAa;IAC5B,2EAA2E;IAC3E,IAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrD,OAAO,cAAc,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,IAAM,QAAQ,GAAa;IACzB,SAAS,EAAE,GAAG;IACd,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAChC,QAAQ,EAAE;QACR,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE;QAC/C,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;QAC9B,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE;KACpC;CACF,CAAC;AAEF,IAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAChC,UAAC,EAAuE,EAAE,GAA4B;IAAnG,IAAA,yBAAwB,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAK,KAAK,cAArD,0CAAuD,CAAF;IACpD,OAAO,CACL,oBAAC,WAAW,aACV,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,EAC1B,QAAQ,EAAE,UAAA,KAAK,IAAI,OAAA,sBAAsB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAA7E,CAA6E,IAC5F,KAAK,IACT,GAAG,EAAE,GAAG,EACR,yBAAyB,EAAE,IAAI,EAC/B,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,IAAI,EACb,iBAAiB,EAAE,iBAAiB,IACpC,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getDaysInMonth } from 'date-fns';\nimport React, { Ref } from 'react';\nimport { fireNonCancelableEvent } from '../../events';\nimport { displayToIso, isoToDisplay, parseDate } from '../../utils/date-time';\n\nimport MaskedInput from '../masked-input';\nimport { MaskArgs } from '../masked-input/utils/mask-format';\n\nimport { DateInputProps } from './interfaces';\n\nexport { DateInputProps };\n\nfunction daysMax(value: string): number {\n // force to first day in month, as new Date('2018-02-30') -> March 2nd 2018\n const baseDate = displayToIso(value).substring(0, 7);\n return getDaysInMonth(parseDate(baseDate));\n}\n\nconst maskArgs: MaskArgs = {\n separator: '/',\n inputSeparators: ['-', '.', ' '],\n segments: [\n { min: 0, max: 9999, default: 2000, length: 4 },\n { min: 1, max: 12, length: 2 },\n { min: 1, max: daysMax, length: 2 },\n ],\n};\n\nconst DateInput = React.forwardRef(\n ({ __internalRootRef = null, value, onChange, ...props }: DateInputProps, ref: Ref<DateInputProps.Ref>) => {\n return (\n <MaskedInput\n value={isoToDisplay(value)}\n onChange={event => fireNonCancelableEvent(onChange, { value: displayToIso(event.detail.value) })}\n {...props}\n ref={ref}\n disableBrowserAutocorrect={true}\n mask={maskArgs}\n autofix={true}\n __internalRootRef={__internalRootRef}\n />\n );\n }\n);\n\nexport default DateInput;\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InternalInputProps } from '../../../input/internal';
|
|
2
|
-
export interface DateInputProps extends InternalInputProps {
|
|
3
|
-
/**
|
|
4
|
-
* Disable value autocompletion when input is blurred
|
|
5
|
-
*/
|
|
6
|
-
disableAutocompleteOnBlur?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare namespace DateInputProps {
|
|
9
|
-
interface Ref {
|
|
10
|
-
/**
|
|
11
|
-
* Sets input focus onto the UI control.
|
|
12
|
-
*/
|
|
13
|
-
focus(): void;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/date-input/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/date-input/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { InternalInputProps } from '../../../input/internal';\n\nexport interface DateInputProps extends InternalInputProps {\n /**\n * Disable value autocompletion when input is blurred\n */\n disableAutocompleteOnBlur?: boolean;\n}\n\nexport namespace DateInputProps {\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n }\n}\n"]}
|