@skbkontur/react-ui 6.1.2-ae08d.0 → 6.1.2

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/components/Button/Button.d.ts +5 -0
  3. package/components/Button/Button.js +7 -5
  4. package/components/Button/Button.js.map +1 -1
  5. package/components/Group/Group.js +2 -3
  6. package/components/Group/Group.js.map +1 -1
  7. package/components/Input/Input.d.ts +1 -1
  8. package/components/Input/Input.js.map +1 -1
  9. package/components/Input/Input.styles.js +1 -1
  10. package/components/Input/Input.styles.js.map +1 -1
  11. package/components/Input/InputLayout/InputLayoutAsideCounter.js +2 -1
  12. package/components/Input/InputLayout/InputLayoutAsideCounter.js.map +1 -1
  13. package/components/Select/Select.d.ts +1 -0
  14. package/components/Select/Select.js +14 -7
  15. package/components/Select/Select.js.map +1 -1
  16. package/components/Select/selectTheme.js +2 -0
  17. package/components/Select/selectTheme.js.map +1 -1
  18. package/components/Textarea/TextareaCounter.js +2 -1
  19. package/components/Textarea/TextareaCounter.js.map +1 -1
  20. package/index.d.ts +0 -1
  21. package/index.js +0 -1
  22. package/index.js.map +1 -1
  23. package/internal/InputLikeText/InputLikeText.js +1 -1
  24. package/internal/InputLikeText/InputLikeText.js.map +1 -1
  25. package/internal/themes/BasicTheme.d.ts +0 -34
  26. package/internal/themes/BasicTheme.js +0 -96
  27. package/internal/themes/BasicTheme.js.map +1 -1
  28. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +1 -0
  29. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js +3 -1
  30. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  31. package/lib/utils.d.ts +0 -2
  32. package/lib/utils.js +0 -1
  33. package/lib/utils.js.map +1 -1
  34. package/package.json +1 -5
  35. package/components/TimePicker/TimeClockIcon.d.ts +0 -3
  36. package/components/TimePicker/TimeClockIcon.js +0 -11
  37. package/components/TimePicker/TimeClockIcon.js.map +0 -1
  38. package/components/TimePicker/TimeFragmentsView.d.ts +0 -15
  39. package/components/TimePicker/TimeFragmentsView.js +0 -72
  40. package/components/TimePicker/TimeFragmentsView.js.map +0 -1
  41. package/components/TimePicker/TimeFragmentsView.styles.d.ts +0 -12
  42. package/components/TimePicker/TimeFragmentsView.styles.js +0 -43
  43. package/components/TimePicker/TimeFragmentsView.styles.js.map +0 -1
  44. package/components/TimePicker/TimeInput.d.ts +0 -22
  45. package/components/TimePicker/TimeInput.js +0 -103
  46. package/components/TimePicker/TimeInput.js.map +0 -1
  47. package/components/TimePicker/TimePicker.d.ts +0 -73
  48. package/components/TimePicker/TimePicker.js +0 -506
  49. package/components/TimePicker/TimePicker.js.map +0 -1
  50. package/components/TimePicker/TimePicker.styles.d.ts +0 -14
  51. package/components/TimePicker/TimePicker.styles.js +0 -45
  52. package/components/TimePicker/TimePicker.styles.js.map +0 -1
  53. package/components/TimePicker/TimePickerMobilePopup.d.ts +0 -38
  54. package/components/TimePicker/TimePickerMobilePopup.js +0 -21
  55. package/components/TimePicker/TimePickerMobilePopup.js.map +0 -1
  56. package/components/TimePicker/TimePickerPopup.d.ts +0 -20
  57. package/components/TimePicker/TimePickerPopup.js +0 -18
  58. package/components/TimePicker/TimePickerPopup.js.map +0 -1
  59. package/components/TimePicker/TimePickerSlots.d.ts +0 -17
  60. package/components/TimePicker/TimePickerSlots.js +0 -80
  61. package/components/TimePicker/TimePickerSlots.js.map +0 -1
  62. package/components/TimePicker/helpers/TimePicker.constants.d.ts +0 -22
  63. package/components/TimePicker/helpers/TimePicker.constants.js +0 -31
  64. package/components/TimePicker/helpers/TimePicker.constants.js.map +0 -1
  65. package/components/TimePicker/helpers/TimePicker.editing.d.ts +0 -23
  66. package/components/TimePicker/helpers/TimePicker.editing.js +0 -101
  67. package/components/TimePicker/helpers/TimePicker.editing.js.map +0 -1
  68. package/components/TimePicker/helpers/TimePicker.layout.d.ts +0 -6
  69. package/components/TimePicker/helpers/TimePicker.layout.js +0 -49
  70. package/components/TimePicker/helpers/TimePicker.layout.js.map +0 -1
  71. package/components/TimePicker/helpers/TimePicker.selection.d.ts +0 -5
  72. package/components/TimePicker/helpers/TimePicker.selection.js +0 -23
  73. package/components/TimePicker/helpers/TimePicker.selection.js.map +0 -1
  74. package/components/TimePicker/helpers/TimePicker.shared.d.ts +0 -47
  75. package/components/TimePicker/helpers/TimePicker.shared.js +0 -70
  76. package/components/TimePicker/helpers/TimePicker.shared.js.map +0 -1
  77. package/components/TimePicker/helpers/TimePicker.value.d.ts +0 -23
  78. package/components/TimePicker/helpers/TimePicker.value.js +0 -71
  79. package/components/TimePicker/helpers/TimePicker.value.js.map +0 -1
  80. package/components/TimePicker/helpers/scrollSelectedSlotIntoView.d.ts +0 -4
  81. package/components/TimePicker/helpers/scrollSelectedSlotIntoView.js +0 -24
  82. package/components/TimePicker/helpers/scrollSelectedSlotIntoView.js.map +0 -1
  83. package/components/TimePicker/hooks/useTimePickerDropdown.d.ts +0 -17
  84. package/components/TimePicker/hooks/useTimePickerDropdown.js +0 -62
  85. package/components/TimePicker/hooks/useTimePickerDropdown.js.map +0 -1
  86. package/components/TimePicker/hooks/useTimePickerSelection.d.ts +0 -18
  87. package/components/TimePicker/hooks/useTimePickerSelection.js +0 -66
  88. package/components/TimePicker/hooks/useTimePickerSelection.js.map +0 -1
  89. package/components/TimePicker/hooks/useTimePickerValue.d.ts +0 -18
  90. package/components/TimePicker/hooks/useTimePickerValue.js +0 -58
  91. package/components/TimePicker/hooks/useTimePickerValue.js.map +0 -1
  92. package/components/TimePicker/index.d.ts +0 -2
  93. package/components/TimePicker/index.js +0 -2
  94. package/components/TimePicker/index.js.map +0 -1
  95. package/internal/NativeTimeInput/NativeTimeInput.d.ts +0 -16
  96. package/internal/NativeTimeInput/NativeTimeInput.js +0 -25
  97. package/internal/NativeTimeInput/NativeTimeInput.js.map +0 -1
  98. package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +0 -3
  99. package/internal/NativeTimeInput/NativeTimeInput.styles.js +0 -15
  100. package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +0 -1
  101. package/internal/NativeTimeInput/NativeTimeInput.utils.d.ts +0 -7
  102. package/internal/NativeTimeInput/NativeTimeInput.utils.js +0 -28
  103. package/internal/NativeTimeInput/NativeTimeInput.utils.js.map +0 -1
  104. package/internal/NativeTimeInput/index.d.ts +0 -1
  105. package/internal/NativeTimeInput/index.js +0 -2
  106. package/internal/NativeTimeInput/index.js.map +0 -1
  107. package/internal/icons2022/TimeClockIcon/TimeClockIcon16Light.d.ts +0 -2
  108. package/internal/icons2022/TimeClockIcon/TimeClockIcon16Light.js +0 -20
  109. package/internal/icons2022/TimeClockIcon/TimeClockIcon16Light.js.map +0 -1
  110. package/internal/icons2022/TimeClockIcon/TimeClockIcon20Light.d.ts +0 -2
  111. package/internal/icons2022/TimeClockIcon/TimeClockIcon20Light.js +0 -20
  112. package/internal/icons2022/TimeClockIcon/TimeClockIcon20Light.js.map +0 -1
  113. package/internal/icons2022/TimeClockIcon/TimeClockIcon24Regular.d.ts +0 -2
  114. package/internal/icons2022/TimeClockIcon/TimeClockIcon24Regular.js +0 -20
  115. package/internal/icons2022/TimeClockIcon/TimeClockIcon24Regular.js.map +0 -1
@@ -1,25 +0,0 @@
1
- import React, { useImperativeHandle, useRef } from 'react';
2
- import { forwardRefAndName } from '../../lib/forwardRefAndName.js';
3
- import { useEmotion } from '../../lib/renderEnvironment/index.js';
4
- import { getJsStyles } from './NativeTimeInput.styles.js';
5
- import { getDefaultMaxTime, getDefaultMinTime, getNativeTimeStep, getTimeForComponent, getTimeForNative, } from './NativeTimeInput.utils.js';
6
- export var NativeTimeInput = forwardRefAndName('NativeTimeInput', function (props, ref) {
7
- var _a;
8
- var value = props.value, minTime = props.minTime, maxTime = props.maxTime, format = props.format, disabled = props.disabled, onValueChange = props.onValueChange, dataTid = props["data-tid"];
9
- var jsStyles = getJsStyles(useEmotion());
10
- var inputRef = useRef(null);
11
- useImperativeHandle(ref, function () { return ({
12
- focus: function () {
13
- var _a;
14
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
15
- },
16
- click: function () {
17
- var _a;
18
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click();
19
- },
20
- }); }, []);
21
- return (React.createElement("input", { type: 'time', "data-tid": dataTid, ref: inputRef, disabled: disabled, className: jsStyles.inputTypeTime(), tabIndex: -1, step: getNativeTimeStep(format), min: minTime ? getTimeForNative(minTime, format) : getDefaultMinTime(format), max: maxTime ? getTimeForNative(maxTime, format) : getDefaultMaxTime(format), value: (_a = getTimeForNative(value, format)) !== null && _a !== void 0 ? _a : '', onChange: function (event) {
22
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(getTimeForComponent(event.target.value, format));
23
- } }));
24
- });
25
- //# sourceMappingURL=NativeTimeInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeTimeInput.js","sourceRoot":"","sources":["NativeTimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AAiBpC,MAAM,CAAC,IAAM,eAAe,GAAG,iBAAiB,CAC9C,iBAAiB,EACjB,UAAC,KAAK,EAAE,GAAG;;IACD,IAAA,KAAK,GAA6E,KAAK,MAAlF,EAAE,OAAO,GAAoE,KAAK,QAAzE,EAAE,OAAO,GAA2D,KAAK,QAAhE,EAAE,MAAM,GAAmD,KAAK,OAAxD,EAAE,QAAQ,GAAyC,KAAK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Ref } from 'react';\n\nimport type { TimeFormat } from '../../components/TimePicker/index.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { useEmotion } from '../../lib/renderEnvironment/index.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { getJsStyles } from './NativeTimeInput.styles.js';\nimport {\n getDefaultMaxTime,\n getDefaultMinTime,\n getNativeTimeStep,\n getTimeForComponent,\n getTimeForNative,\n} from './NativeTimeInput.utils.js';\n\nexport interface NativeTimeInputProps {\n 'data-tid'?: string;\n disabled?: boolean;\n format: TimeFormat;\n value: Nullable<string>;\n minTime?: Nullable<string>;\n maxTime?: Nullable<string>;\n onValueChange?(value: string): void;\n}\n\nexport interface NativeTimeInputRef {\n focus(): void;\n click(): void;\n}\n\nexport const NativeTimeInput = forwardRefAndName<NativeTimeInputRef, NativeTimeInputProps>(\n 'NativeTimeInput',\n (props, ref) => {\n const { value, minTime, maxTime, format, disabled, onValueChange, 'data-tid': dataTid } = props;\n\n const jsStyles = getJsStyles(useEmotion());\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n focus() {\n inputRef.current?.focus();\n },\n click() {\n inputRef.current?.click();\n },\n }),\n [],\n );\n\n return (\n <input\n type={'time'}\n data-tid={dataTid}\n ref={inputRef}\n disabled={disabled}\n className={jsStyles.inputTypeTime()}\n tabIndex={-1}\n step={getNativeTimeStep(format)}\n min={minTime ? getTimeForNative(minTime, format) : getDefaultMinTime(format)}\n max={maxTime ? getTimeForNative(maxTime, format) : getDefaultMaxTime(format)}\n value={getTimeForNative(value, format) ?? ''}\n onChange={(event) => {\n onValueChange?.(getTimeForComponent(event.target.value, format));\n }}\n />\n );\n },\n);\n"]}
@@ -1,3 +0,0 @@
1
- export declare const getJsStyles: import("../../lib/theming/Emotion.js").StylesGetter<{
2
- inputTypeTime(): string;
3
- }>;
@@ -1,15 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { memoizeGetStyles } from '../../lib/theming/Emotion.js';
6
- export var getJsStyles = memoizeGetStyles(function (_a) {
7
- var css = _a.css;
8
- return ({
9
- inputTypeTime: function () {
10
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 0;\n height: 0;\n padding: 0;\n margin: 0;\n line-height: 0;\n transform: scale(0);\n border: none;\n overflow: hidden;\n opacity: 0;\n "], ["\n width: 0;\n height: 0;\n padding: 0;\n margin: 0;\n line-height: 0;\n transform: scale(0);\n border: none;\n overflow: hidden;\n opacity: 0;\n "])));
11
- },
12
- });
13
- });
14
- var templateObject_1;
15
- //# sourceMappingURL=NativeTimeInput.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeTimeInput.styles.js","sourceRoot":"","sources":["NativeTimeInput.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,IAAM,WAAW,GAAG,gBAAgB,CAAC,UAAC,EAAgB;QAAd,GAAG,SAAA;IAAgB,OAAA,CAAC;QACjE,aAAa;YACX,OAAO,GAAG,uQAAA,oMAUT,KAAC;QACJ,CAAC;KACF,CAAC;AAdgE,CAchE,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { memoizeGetStyles } from '../../lib/theming/Emotion.js';\n\nexport const getJsStyles = memoizeGetStyles(({ css }: Emotion) => ({\n inputTypeTime() {\n return css`\n width: 0;\n height: 0;\n padding: 0;\n margin: 0;\n line-height: 0;\n transform: scale(0);\n border: none;\n overflow: hidden;\n opacity: 0;\n `;\n },\n}));\n"]}
@@ -1,7 +0,0 @@
1
- import type { TimeFormat } from '../../components/TimePicker/index.js';
2
- import type { Nullable } from '../../typings/utility-types.js';
3
- export declare const getTimeForNative: (componentTime: Nullable<string>, format: TimeFormat) => string | undefined;
4
- export declare const getTimeForComponent: (nativeTime: Nullable<string>, format: TimeFormat) => string;
5
- export declare const getDefaultMinTime: (format: TimeFormat) => string;
6
- export declare const getDefaultMaxTime: (format: TimeFormat) => string;
7
- export declare const getNativeTimeStep: (format: TimeFormat) => number;
@@ -1,28 +0,0 @@
1
- var DEFAULT_NATIVE_MIN_TIME = '00:00:00';
2
- var DEFAULT_NATIVE_MAX_TIME = '23:59:59';
3
- var padTimePart = function (value) { return (value !== null && value !== void 0 ? value : '00').padStart(2, '0'); };
4
- var normalizeNativeTime = function (value, format) {
5
- var _a = value.split(':'), hours = _a[0], minutes = _a[1], seconds = _a[2];
6
- var normalizedTime = "".concat(padTimePart(hours), ":").concat(padTimePart(minutes), ":").concat(padTimePart(seconds));
7
- return format === 'minute' ? normalizedTime.slice(0, 5) : normalizedTime;
8
- };
9
- export var getTimeForNative = function (componentTime, format) {
10
- if (!componentTime) {
11
- return undefined;
12
- }
13
- return normalizeNativeTime(componentTime, format);
14
- };
15
- export var getTimeForComponent = function (nativeTime, format) {
16
- if (!nativeTime) {
17
- return '';
18
- }
19
- return normalizeNativeTime(nativeTime, format);
20
- };
21
- export var getDefaultMinTime = function (format) {
22
- return format === 'minute' ? DEFAULT_NATIVE_MIN_TIME.slice(0, 5) : DEFAULT_NATIVE_MIN_TIME;
23
- };
24
- export var getDefaultMaxTime = function (format) {
25
- return format === 'minute' ? DEFAULT_NATIVE_MAX_TIME.slice(0, 5) : DEFAULT_NATIVE_MAX_TIME;
26
- };
27
- export var getNativeTimeStep = function (format) { return (format === 'minute' ? 60 : 1); };
28
- //# sourceMappingURL=NativeTimeInput.utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeTimeInput.utils.js","sourceRoot":"","sources":["NativeTimeInput.utils.ts"],"names":[],"mappings":"AAGA,IAAM,uBAAuB,GAAG,UAAU,CAAC;AAC3C,IAAM,uBAAuB,GAAG,UAAU,CAAC;AAE3C,IAAM,WAAW,GAAG,UAAC,KAAy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GAAG,UAAC,MAAkB;IAClD,OAAA,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB;AAAnF,CAAmF,CAAC;AAEtF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,MAAkB,IAAa,OAAA,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAA9B,CAA8B,CAAC","sourcesContent":["import type { TimeFormat } from '../../components/TimePicker/index.js';\nimport type { Nullable } from '../../typings/utility-types.js';\n\nconst DEFAULT_NATIVE_MIN_TIME = '00:00:00';\nconst DEFAULT_NATIVE_MAX_TIME = '23:59:59';\n\nconst padTimePart = (value: string | undefined): string => (value ?? '00').padStart(2, '0');\n\nconst normalizeNativeTime = (value: string, format: TimeFormat): string => {\n const [hours, minutes, seconds] = value.split(':');\n\n const normalizedTime = `${padTimePart(hours)}:${padTimePart(minutes)}:${padTimePart(seconds)}`;\n\n return format === 'minute' ? normalizedTime.slice(0, 5) : normalizedTime;\n};\n\nexport const getTimeForNative = (componentTime: Nullable<string>, format: TimeFormat): string | undefined => {\n if (!componentTime) {\n return undefined;\n }\n\n return normalizeNativeTime(componentTime, format);\n};\n\nexport const getTimeForComponent = (nativeTime: Nullable<string>, format: TimeFormat): string => {\n if (!nativeTime) {\n return '';\n }\n\n return normalizeNativeTime(nativeTime, format);\n};\n\nexport const getDefaultMinTime = (format: TimeFormat): string =>\n format === 'minute' ? DEFAULT_NATIVE_MIN_TIME.slice(0, 5) : DEFAULT_NATIVE_MIN_TIME;\n\nexport const getDefaultMaxTime = (format: TimeFormat): string =>\n format === 'minute' ? DEFAULT_NATIVE_MAX_TIME.slice(0, 5) : DEFAULT_NATIVE_MAX_TIME;\n\nexport const getNativeTimeStep = (format: TimeFormat): number => (format === 'minute' ? 60 : 1);\n"]}
@@ -1 +0,0 @@
1
- export * from './NativeTimeInput.js';
@@ -1,2 +0,0 @@
1
- export * from './NativeTimeInput.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './NativeTimeInput.js';\n"]}
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../BaseIcon.js';
2
- export declare const TimeClockIcon16Light: import("../../../lib/forwardRefAndName.js").ReactUIComponentWithRef<SVGSVGElement, IconProps> & Record<never, never>;
@@ -1,20 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- import { forwardRefAndName } from '../../../lib/forwardRefAndName.js';
14
- import { BaseIcon } from '../BaseIcon.js';
15
- export var TimeClockIcon16Light = forwardRefAndName('TimeClockIcon16Light', function (props, ref) {
16
- return (React.createElement(BaseIcon, __assign({ ref: ref }, props),
17
- React.createElement("path", { d: "M8 4.40234C8 4.1262 7.77614 3.90234 7.5 3.90234C7.22386 3.90234 7 4.1262 7 4.40234V6.7274C7 7.39025 7.3745 7.99621 7.96738 8.29265L10.2764 9.44716C10.5234 9.57065 10.8237 9.47054 10.9472 9.22355C11.0707 8.97656 10.9706 8.67623 10.7236 8.55273L8.41459 7.39822C8.1605 7.27118 8 7.01148 8 6.7274V4.40234Z" }),
18
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14C11.0899 14 14 11.0899 14 7.5C14 3.91015 11.0899 1 7.5 1ZM2 7.5C2 4.46243 4.46243 2 7.5 2C10.5376 2 13 4.46243 13 7.5C13 10.5376 10.5376 13 7.5 13C4.46243 13 2 10.5376 2 7.5Z" })));
19
- });
20
- //# sourceMappingURL=TimeClockIcon16Light.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeClockIcon16Light.js","sourceRoot":"","sources":["TimeClockIcon16Light.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,IAAM,oBAAoB,GAAG,iBAAiB,CACnD,sBAAsB,EACtB,UAAC,KAAK,EAAE,GAAG;IACT,OAAO,CACL,oBAAC,QAAQ,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK;QAC3B,8BAAM,CAAC,EAAC,+SAA+S,GAAG;QAC1T,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,4OAA4O,GAC9O,CACO,CACZ,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React from 'react';\n\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName.js';\nimport type { IconProps } from '../BaseIcon.js';\nimport { BaseIcon } from '../BaseIcon.js';\n\nexport const TimeClockIcon16Light = forwardRefAndName<SVGSVGElement, IconProps>(\n 'TimeClockIcon16Light',\n (props, ref) => {\n return (\n <BaseIcon ref={ref} {...props}>\n <path d=\"M8 4.40234C8 4.1262 7.77614 3.90234 7.5 3.90234C7.22386 3.90234 7 4.1262 7 4.40234V6.7274C7 7.39025 7.3745 7.99621 7.96738 8.29265L10.2764 9.44716C10.5234 9.57065 10.8237 9.47054 10.9472 9.22355C11.0707 8.97656 10.9706 8.67623 10.7236 8.55273L8.41459 7.39822C8.1605 7.27118 8 7.01148 8 6.7274V4.40234Z\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14C11.0899 14 14 11.0899 14 7.5C14 3.91015 11.0899 1 7.5 1ZM2 7.5C2 4.46243 4.46243 2 7.5 2C10.5376 2 13 4.46243 13 7.5C13 10.5376 10.5376 13 7.5 13C4.46243 13 2 10.5376 2 7.5Z\"\n />\n </BaseIcon>\n );\n },\n);\n"]}
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../BaseIcon.js';
2
- export declare const TimeClockIcon20Light: import("../../../lib/forwardRefAndName.js").ReactUIComponentWithRef<SVGSVGElement, IconProps> & Record<never, never>;
@@ -1,20 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- import { forwardRefAndName } from '../../../lib/forwardRefAndName.js';
14
- import { BaseIcon } from '../BaseIcon.js';
15
- export var TimeClockIcon20Light = forwardRefAndName('TimeClockIcon20Light', function (props, ref) {
16
- return (React.createElement(BaseIcon, __assign({ ref: ref, viewBoxSize: 20 }, props),
17
- React.createElement("path", { d: "M10.0033 6.50463C10.0033 6.22849 9.77943 6.00464 9.50329 6.00464C9.22715 6.00464 9.00329 6.2285 9.0033 6.50464L9.00332 9.47699C9.00332 10.1394 9.3774 10.7451 9.96974 11.0417L12.7761 12.4471C13.023 12.5707 13.3234 12.4708 13.4471 12.2239C13.5707 11.977 13.4708 11.6766 13.2239 11.5529L10.4175 10.1476C10.1636 10.0205 10.0033 9.76089 10.0033 9.47698L10.0033 6.50463Z" }),
18
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10Z" })));
19
- });
20
- //# sourceMappingURL=TimeClockIcon20Light.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeClockIcon20Light.js","sourceRoot":"","sources":["TimeClockIcon20Light.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,IAAM,oBAAoB,GAAG,iBAAiB,CACnD,sBAAsB,EACtB,UAAC,KAAK,EAAE,GAAG;IACT,OAAO,CACL,oBAAC,QAAQ,aAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE,IAAM,KAAK;QAC5C,8BAAM,CAAC,EAAC,8WAA8W,GAAG;QACzX,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,8NAA8N,GAChO,CACO,CACZ,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React from 'react';\n\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName.js';\nimport type { IconProps } from '../BaseIcon.js';\nimport { BaseIcon } from '../BaseIcon.js';\n\nexport const TimeClockIcon20Light = forwardRefAndName<SVGSVGElement, IconProps>(\n 'TimeClockIcon20Light',\n (props, ref) => {\n return (\n <BaseIcon ref={ref} viewBoxSize={20} {...props}>\n <path d=\"M10.0033 6.50463C10.0033 6.22849 9.77943 6.00464 9.50329 6.00464C9.22715 6.00464 9.00329 6.2285 9.0033 6.50464L9.00332 9.47699C9.00332 10.1394 9.3774 10.7451 9.96974 11.0417L12.7761 12.4471C13.023 12.5707 13.3234 12.4708 13.4471 12.2239C13.5707 11.977 13.4708 11.6766 13.2239 11.5529L10.4175 10.1476C10.1636 10.0205 10.0033 9.76089 10.0033 9.47698L10.0033 6.50463Z\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10Z\"\n />\n </BaseIcon>\n );\n },\n);\n"]}
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../BaseIcon.js';
2
- export declare const TimeClockIcon24Regular: import("../../../lib/forwardRefAndName.js").ReactUIComponentWithRef<SVGSVGElement, IconProps> & Record<never, never>;
@@ -1,20 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- import { forwardRefAndName } from '../../../lib/forwardRefAndName.js';
14
- import { BaseIcon } from '../BaseIcon.js';
15
- export var TimeClockIcon24Regular = forwardRefAndName('TimeClockIcon24Regular', function (props, ref) {
16
- return (React.createElement(BaseIcon, __assign({ ref: ref, viewBoxSize: 24 }, props),
17
- React.createElement("path", { d: "M12.5 7.3125C12.5 6.89829 12.1642 6.5625 11.75 6.5625C11.3358 6.5625 11 6.89829 11 7.3125V11.2604C11 12.1127 11.4815 12.8918 12.2438 13.2729L15.5396 14.9208C15.9101 15.1061 16.3606 14.9559 16.5458 14.5854C16.7311 14.2149 16.5809 13.7644 16.2104 13.5792L12.9146 11.9313C12.6605 11.8042 12.5 11.5445 12.5 11.2604V7.3125Z" }),
18
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25C7.44365 20.25 3.75 16.5563 3.75 12Z" })));
19
- });
20
- //# sourceMappingURL=TimeClockIcon24Regular.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeClockIcon24Regular.js","sourceRoot":"","sources":["TimeClockIcon24Regular.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,IAAM,sBAAsB,GAAG,iBAAiB,CACrD,wBAAwB,EACxB,UAAC,KAAK,EAAE,GAAG;IACT,OAAO,CACL,oBAAC,QAAQ,aAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE,IAAM,KAAK;QAC5C,8BAAM,CAAC,EAAC,gUAAgU,GAAG;QAC3U,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,gTAAgT,GAClT,CACO,CACZ,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React from 'react';\n\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName.js';\nimport type { IconProps } from '../BaseIcon.js';\nimport { BaseIcon } from '../BaseIcon.js';\n\nexport const TimeClockIcon24Regular = forwardRefAndName<SVGSVGElement, IconProps>(\n 'TimeClockIcon24Regular',\n (props, ref) => {\n return (\n <BaseIcon ref={ref} viewBoxSize={24} {...props}>\n <path d=\"M12.5 7.3125C12.5 6.89829 12.1642 6.5625 11.75 6.5625C11.3358 6.5625 11 6.89829 11 7.3125V11.2604C11 12.1127 11.4815 12.8918 12.2438 13.2729L15.5396 14.9208C15.9101 15.1061 16.3606 14.9559 16.5458 14.5854C16.7311 14.2149 16.5809 13.7644 16.2104 13.5792L12.9146 11.9313C12.6605 11.8042 12.5 11.5445 12.5 11.2604V7.3125Z\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25C7.44365 20.25 3.75 16.5563 3.75 12Z\"\n />\n </BaseIcon>\n );\n },\n);\n"]}