@pingux/astro 2.52.0-alpha.0 → 2.52.0-alpha.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.
- package/lib/cjs/components/AccordionGroup/Accordion.styles.d.ts +3 -3
- package/lib/cjs/components/Breadcrumbs/Breadcrumb.styles.d.ts +3 -3
- package/lib/cjs/components/Button/Buttons.styles.d.ts +51 -51
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +135 -13
- package/lib/cjs/components/FieldHelperText/FieldHelperText.styles.d.ts +3 -3
- package/lib/cjs/components/Label/Label.d.ts +13 -0
- package/lib/cjs/components/Label/Label.js +8 -26
- package/lib/cjs/components/Label/Label.stories.d.ts +7 -0
- package/lib/cjs/components/Label/Label.stories.js +3 -3
- package/lib/cjs/components/Label/Label.styles.d.ts +2 -0
- package/lib/cjs/components/Label/Label.test.d.ts +1 -0
- package/lib/cjs/components/Label/index.d.ts +1 -0
- package/lib/cjs/components/SelectField/SelectField.stories.js +3 -3
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +3 -3
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.js +2 -2
- package/lib/cjs/components/Table/Table.styles.d.ts +6 -6
- package/lib/cjs/components/Text/Text.styles.d.ts +91 -90
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +3 -3
- package/lib/cjs/components/TextField/TextField.stories.js +3 -3
- package/lib/cjs/hooks/useColumnStyles/useColumnStyles.d.ts +2 -2
- package/lib/cjs/hooks/useField/useField.d.ts +22 -21
- package/lib/cjs/hooks/useField/useField.js +3 -5
- package/lib/cjs/hooks/useField/useField.test.js +4 -4
- package/lib/cjs/hooks/useSelectField/useSelectField.d.ts +2 -3
- package/lib/cjs/hooks/useSelectField/useSelectField.js +2 -2
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +29 -18
- package/lib/cjs/types/label.d.ts +25 -0
- package/lib/cjs/types/label.js +6 -0
- package/lib/cjs/types/shared/style.d.ts +3 -0
- package/lib/cjs/utils/devUtils/constants/labelModes.d.ts +5 -0
- package/lib/components/CheckboxField/CheckboxField.stories.js +134 -13
- package/lib/components/Label/Label.js +6 -24
- package/lib/components/Label/Label.stories.js +1 -1
- package/lib/components/Label/Label.styles.js +1 -0
- package/lib/components/SelectField/SelectField.stories.js +1 -1
- package/lib/components/SelectFieldBase/SelectFieldBase.js +1 -1
- package/lib/components/SelectFieldBase/SelectFieldBase.test.js +1 -1
- package/lib/components/TextAreaField/TextAreaField.stories.js +1 -1
- package/lib/components/TextField/TextField.stories.js +1 -1
- package/lib/hooks/useField/useField.js +1 -3
- package/lib/hooks/useField/useField.test.js +1 -1
- package/lib/hooks/useSelectField/useSelectField.js +1 -1
- package/lib/types/index.js +1 -0
- package/lib/types/label.js +1 -0
- package/package.json +1 -1
- /package/lib/cjs/{components/Label/constants.js → utils/devUtils/constants/labelModes.js} +0 -0
- /package/lib/{components/Label/constants.js → utils/devUtils/constants/labelModes.js} +0 -0
@@ -5,10 +5,10 @@ import React, { forwardRef } from 'react';
|
|
5
5
|
import userEvent from '@testing-library/user-event';
|
6
6
|
import { useSelectField } from '../../hooks';
|
7
7
|
import { Item } from '../../index';
|
8
|
+
import { modes } from '../../utils/devUtils/constants/labelModes';
|
8
9
|
import statuses from '../../utils/devUtils/constants/statuses';
|
9
10
|
import { render, screen, within } from '../../utils/testUtils/testWrapper';
|
10
11
|
import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
|
11
|
-
import { modes } from '../Label/constants';
|
12
12
|
import SelectFieldBase from './SelectFieldBase';
|
13
13
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
14
14
|
var items = [{
|
@@ -16,10 +16,10 @@ import React, { useState } from 'react';
|
|
16
16
|
import SearchIcon from '@pingux/mdi-react/SearchIcon';
|
17
17
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
18
18
|
import { Box, Icon, TextAreaField } from '../../index';
|
19
|
+
import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
|
19
20
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
20
21
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
21
22
|
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
22
|
-
import { modes as labelModes } from '../Label/constants';
|
23
23
|
import TextAreaFieldReadme from './TextAreaField.mdx';
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
25
25
|
export default {
|
@@ -19,11 +19,11 @@ import isEmpty from 'lodash/isEmpty';
|
|
19
19
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
20
20
|
import useCopyToClipboard from '../../hooks/useCopyToClipboard';
|
21
21
|
import { Box, TextField } from '../../index';
|
22
|
+
import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
|
22
23
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
23
24
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
24
25
|
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
25
26
|
import CopyButton from '../CopyText/CopyButton';
|
26
|
-
import { modes as labelModes } from '../Label/constants';
|
27
27
|
import TextFieldReadme from './TextField.mdx';
|
28
28
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
29
29
|
export default {
|
@@ -19,7 +19,7 @@ import { useFocusWithin } from '@react-aria/interactions';
|
|
19
19
|
|
20
20
|
import noop from 'lodash/noop';
|
21
21
|
import omit from 'lodash/omit';
|
22
|
-
import { modes as labelModes } from '../../
|
22
|
+
import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
|
23
23
|
import statuses from '../../utils/devUtils/constants/statuses';
|
24
24
|
import { getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
25
25
|
import { useStatusClasses } from '..';
|
@@ -30,8 +30,6 @@ import { useStatusClasses } from '..';
|
|
30
30
|
* @returns {{}} Prop objects to be spread into field components.
|
31
31
|
*/
|
32
32
|
|
33
|
-
// TODO: replace with LabelProps instead of ThemeUILabelProps
|
34
|
-
// once Label component is rewritten to ts
|
35
33
|
var useField = function useField(props) {
|
36
34
|
var autocomplete = props.autocomplete,
|
37
35
|
autoComplete = props.autoComplete,
|
@@ -11,7 +11,7 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
12
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
13
13
|
import { act, renderHook } from '@testing-library/react-hooks';
|
14
|
-
import { modes as labelModes } from '../../
|
14
|
+
import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
|
15
15
|
import statuses from '../../utils/devUtils/constants/statuses';
|
16
16
|
import useField from './useField';
|
17
17
|
var defaultProps = {
|
@@ -18,10 +18,10 @@ import { useSelectState } from 'react-stately';
|
|
18
18
|
import { useResizeObserver } from '@react-aria/utils';
|
19
19
|
// eslint-disable-next-line import/no-unresolved
|
20
20
|
|
21
|
-
import { modes } from '../../components/Label/constants';
|
22
21
|
import ListBox from '../../components/ListBox/ListBox';
|
23
22
|
import PopoverContainer from '../../components/PopoverContainer';
|
24
23
|
import ScrollBox from '../../components/ScrollBox';
|
24
|
+
import { modes } from '../../utils/devUtils/constants/labelModes';
|
25
25
|
import { useColumnStyles, useDeprecationWarning, useField } from '..';
|
26
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
27
27
|
var useSelectField = function useSelectField(props, ref) {
|
package/lib/types/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
File without changes
|
File without changes
|