@lux-design-system/components-react 1.0.0 → 1.1.0

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 (35) hide show
  1. package/dist/index.mjs +1134 -12745
  2. package/dist/index.umd.js +1136 -12747
  3. package/dist/jest.setup.d.ts +0 -0
  4. package/dist/src/alert/test/Alert.spec.d.ts +1 -0
  5. package/dist/src/button/test/Button.spec.d.ts +1 -0
  6. package/dist/src/checkbox/test/Checkbox.spec.d.ts +1 -0
  7. package/dist/src/document/test/document.spec.d.ts +1 -0
  8. package/dist/src/form-field/test/FormField.spec.d.ts +1 -0
  9. package/dist/src/form-field-checkbox/test/form-field-checkbox.spec.d.ts +1 -0
  10. package/dist/src/form-field-description/test/FormFieldDescription.spec.d.ts +1 -0
  11. package/dist/src/form-field-error-message/test/FormFieldErrorMessage.spec.d.ts +1 -0
  12. package/dist/src/form-field-label/test/FormFieldLabel.spec.d.ts +1 -0
  13. package/dist/src/form-field-radio-group/test/FormFieldRadioGroup.spec.d.ts +1 -0
  14. package/dist/src/form-field-radio-option/test/FormFieldRadioOption.spec.d.ts +1 -0
  15. package/dist/src/form-field-select/test/form-field-select.spec.d.ts +1 -0
  16. package/dist/src/form-field-textarea/FormFieldTextarea.d.ts +9 -0
  17. package/dist/src/form-field-textarea/test/form-field-textarea.spec.d.ts +1 -0
  18. package/dist/src/form-field-textbox/test/form-field-textbox.spec.d.ts +1 -0
  19. package/dist/src/heading/test/Heading.spec.d.ts +1 -0
  20. package/dist/src/heading-group/test/HeadingGroup.spec.d.ts +1 -0
  21. package/dist/src/icon/FallbackIcon.d.ts +1 -0
  22. package/dist/src/icon/Icon.d.ts +3 -5
  23. package/dist/src/icon/test/Icon.spec.d.ts +1 -0
  24. package/dist/src/index.d.ts +2 -0
  25. package/dist/src/index.test.d.ts +1 -0
  26. package/dist/src/link/test/Link.spec.d.ts +1 -0
  27. package/dist/src/paragraph/test/paragraph.spec.d.ts +1 -0
  28. package/dist/src/pre-heading/test/PreHeading.spec.d.ts +1 -0
  29. package/dist/src/radio-button/test/RadioButton.spec.d.ts +1 -0
  30. package/dist/src/section/test/Section.spec.d.ts +1 -0
  31. package/dist/src/select/test/Select.spec.d.ts +1 -0
  32. package/dist/src/textarea/Textarea.d.ts +8 -0
  33. package/dist/src/textarea/test/Textarea.spec.d.ts +1 -0
  34. package/dist/src/textbox/test/Textbox.spec.d.ts +1 -0
  35. package/package.json +2 -3
File without changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FormFieldTextareaProps as UtrechtFormFieldTextareaProps } from '@utrecht/component-library-react/dist/css-module';
2
+ import { LuxFormFieldDescriptionAppearance } from '../form-field-description/FormFieldDescription';
3
+ import { Direction } from '../textarea/Textarea';
4
+ export type LuxFormFieldTextareaProps = UtrechtFormFieldTextareaProps & {
5
+ appearance?: LuxFormFieldDescriptionAppearance;
6
+ distanced?: boolean;
7
+ inputDir?: Direction;
8
+ };
9
+ export declare const LuxFormFieldTextarea: ({ label, description, errorMessage, disabled, invalid, appearance, distanced, className, inputRef, inputDir, ...restProps }: LuxFormFieldTextareaProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { SVGProps } from 'react';
2
+ export declare const LuxIconFallbackSVGTestId = "lux-icon-fallback-svg";
2
3
  /**
3
4
  * Lux lamp icoon
4
5
  *
@@ -1,8 +1,6 @@
1
- import { IconId } from '@lux-design-system/icons';
2
- import { IconProps as UtrechtIconProps } from '@utrecht/component-library-react';
1
+ import { IconProps as UtrechtIconProps } from '@utrecht/component-library-react/dist/css-module';
3
2
  import { PropsWithChildren, ReactNode } from 'react';
4
3
  export type LuxIconProps = UtrechtIconProps & {
5
- iconId: IconId | string;
6
- library?: Record<string, ReactNode>;
4
+ icon?: ReactNode;
7
5
  };
8
- export declare const LuxIcon: ({ iconId, library, children }: PropsWithChildren<LuxIconProps>) => ReactNode;
6
+ export declare const LuxIcon: ({ icon, children }: PropsWithChildren<LuxIconProps>) => ReactNode;
@@ -0,0 +1 @@
1
+ export {};
@@ -11,6 +11,7 @@ export { LuxFormFieldDescription, type LuxFormFieldDescriptionProps, } from './f
11
11
  export { LuxFormFieldErrorMessage, type LuxFormFieldErrorMessageProps, } from './form-field-error-message/FormFieldErrorMessage';
12
12
  export { LuxFormFieldLabel, type LuxFormFieldLabelProps } from './form-field-label/FormFieldLabel';
13
13
  export { LuxFormFieldSelect, type LuxFormFieldSelectProps, type LuxFormFieldSelectOptionsProps, } from './form-field-select/FormFieldSelect';
14
+ export { LuxFormFieldTextarea, type LuxFormFieldTextareaProps } from './form-field-textarea/FormFieldTextarea';
14
15
  export { LuxFormFieldTextbox, type LuxFormFieldTextboxProps } from './form-field-textbox/FormFieldTextbox';
15
16
  export { LuxParagraph, type LuxParagraphProps } from './paragraph/Paragraph';
16
17
  export { LuxFormFieldRadioOption, type LuxFormFieldRadioOptionProps, } from './form-field-radio-option/FormFieldRadioOption';
@@ -20,3 +21,4 @@ export { LuxPreHeading, type LuxPreHeadingProps } from './pre-heading/PreHeading
20
21
  export { LuxSection, type LuxSectionProps } from './section/Section';
21
22
  export { LuxSelect, LuxSelectOption, type LuxSelectProps, type LuxSelectOptionProps } from './select/Select';
22
23
  export { LuxTextbox, INPUT_TYPES, type LuxTextboxProps } from './textbox/Textbox';
24
+ export { LuxTextArea, type LuxTextAreaProps } from './textarea/Textarea';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { TextareaProps as UtrechtTextareaProps } from '@utrecht/component-library-react/dist/css-module';
2
+ export type Direction = 'ltr' | 'rtl' | 'auto';
3
+ export interface LuxTextAreaProps extends UtrechtTextareaProps {
4
+ dir?: Direction;
5
+ }
6
+ export declare const LuxTextArea: import('react').ForwardRefExoticComponent<LuxTextAreaProps & {
7
+ children?: import('react').ReactNode | undefined;
8
+ } & import('react').RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "React component library for LUX, the Design System for Logius, based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -35,8 +35,7 @@
35
35
  "@utrecht/focus-ring-css": "2.3.0",
36
36
  "clsx": "2.1.1",
37
37
  "date-fns": "3.6.0",
38
- "lodash.chunk": "4.2.0",
39
- "@lux-design-system/icons": "1.0.0"
38
+ "lodash.chunk": "4.2.0"
40
39
  },
41
40
  "devDependencies": {
42
41
  "@babel/core": "7.25.2",