@pantheon-systems/pds-toolkit-react 1.0.0-dev.152 → 1.0.0-dev.154

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 (36) hide show
  1. package/_dist/components/Tabs/Tabs.d.ts +58 -38
  2. package/_dist/components/Tooltip/Tooltip.d.ts +5 -1
  3. package/_dist/components/buttons/IconButton/IconButton.d.ts +10 -6
  4. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +85 -2
  5. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +60 -0
  6. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +73 -41
  7. package/_dist/components/inputs/InputGroup/InputGroup.d.ts +18 -12
  8. package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
  9. package/_dist/components/inputs/TextInput/TextInput.d.ts +2 -2
  10. package/_dist/components/inputs/input-types.d.ts +1 -0
  11. package/_dist/components/inputs/input-utilities.d.ts +15 -4
  12. package/_dist/css/component-css/pds-checkbox-group.css +1 -1
  13. package/_dist/css/component-css/pds-checkbox.css +1 -1
  14. package/_dist/css/component-css/pds-icon-button.css +1 -1
  15. package/_dist/css/component-css/pds-index.css +7 -13
  16. package/_dist/css/component-css/pds-input-text.css +1 -1
  17. package/_dist/css/component-css/pds-input-utilities.css +1 -1
  18. package/_dist/css/component-css/pds-input-wrapper.css +1 -1
  19. package/_dist/css/component-css/pds-inputs-common-deprecated.css +1 -1
  20. package/_dist/css/component-css/pds-inputs-common.css +1 -1
  21. package/_dist/css/component-css/pds-panel.css +1 -1
  22. package/_dist/css/component-css/pds-switch.css +3 -0
  23. package/_dist/css/component-css/pds-text-input.css +1 -1
  24. package/_dist/css/component-css/pds-tooltip.css +1 -1
  25. package/_dist/css/component-css/pds-workspace-selector.css +1 -1
  26. package/_dist/css/design-tokens/pds-design-tokens.css +2 -0
  27. package/_dist/css/pds-components.css +7 -13
  28. package/_dist/css/pds-core.css +3 -3
  29. package/_dist/index.css +1 -1
  30. package/_dist/index.d.ts +6 -5
  31. package/_dist/index.js +3792 -3674
  32. package/_dist/index.js.map +1 -1
  33. package/_dist/libs/components/utils.d.ts +3 -2
  34. package/package.json +2 -2
  35. package/_dist/components/buttons/AnimatedButton/AnimatedButton.d.ts +0 -42
  36. package/_dist/css/component-css/pds-animated-button.css +0 -9
@@ -1,2 +1,3 @@
1
- export function createRandomID(): string;
2
- export function getDescendants(node: any, collect: any): any;
1
+ export declare const createRandomID: () => string;
2
+ export declare const getDescendants: (node: any, collect: any) => any;
3
+ export declare const mergeClasses: (styles: any) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "1.0.0-dev.152",
4
+ "version": "1.0.0-dev.154",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",
@@ -135,7 +135,7 @@
135
135
  "dependencies": {
136
136
  "@floating-ui/react": "^0.24.3",
137
137
  "@floating-ui/react-dom": "~1.3.0",
138
- "@pantheon-systems/pds-design-tokens": "^1.0.0-dev.134",
138
+ "@pantheon-systems/pds-design-tokens": "^1.0.0-dev.140",
139
139
  "@reactuses/core": "^5.0.15",
140
140
  "focus-trap-react": "^10.2.1",
141
141
  "hash-sum": "^2.0.0",
@@ -1,42 +0,0 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
3
- import './animated-button.css';
4
- interface AnimatedButtonProps extends ComponentPropsWithoutRef<'button'> {
5
- /**
6
- * Aria-label attribute.
7
- */
8
- ariaLabel: string;
9
- /**
10
- * Type of button
11
- */
12
- buttonType?: 'button' | 'submit' | 'reset';
13
- /**
14
- * Is the button disabled?
15
- */
16
- disabled?: boolean;
17
- /**
18
- * Icon 1 -- The first icon to display in animation.
19
- */
20
- icon1: PDSIcon;
21
- /**
22
- * Icon 2 -- The second icon to display in animation.
23
- */
24
- icon2: PDSIcon;
25
- /**
26
- * Click event handler callback
27
- */
28
- onClick?: () => void;
29
- /**
30
- * Which size of button to render
31
- */
32
- size?: 'sm' | 'md' | 'lg';
33
- /**
34
- * Additional class names
35
- */
36
- className?: string;
37
- }
38
- /**
39
- * AnimatedButton UI component
40
- */
41
- export declare const AnimatedButton: ({ ariaLabel, buttonType, disabled, icon1, icon2, onClick, size, className, ...props }: AnimatedButtonProps) => React.JSX.Element;
42
- export {};
@@ -1,9 +0,0 @@
1
- button.pds-animated-button{--pds-button-color-background:var(
2
- --pds-color-icon-button-standard-background-default
3
- );--pds-button-color-foreground:var(
4
- --pds-color-icon-button-standard-foreground-default
5
- );--pds-button-size:2.441rem;align-items:center;background-color:var(--pds-button-color-background);border:none;border-radius:.375rem;color:var(--pds-button-color-foreground);cursor:pointer;display:inline-flex;height:var(--pds-button-size);justify-content:center;position:relative;transition:all .2s ease-in-out 0s;width:var(--pds-button-size)}button.pds-animated-button:disabled{cursor:not-allowed;opacity:50%}button.pds-animated-button:hover{--pds-button-color-background:var(
6
- --pds-color-icon-button-standard-background-hover
7
- )}button.pds-animated-button:active:enabled{--pds-button-color-background:var(
8
- --pds-color-icon-button-standard-background-default
9
- )}button.pds-animated-button:focus-visible{outline:.0625rem solid var(--pds-color-interactive-focus)}button.pds-animated-button--sm{--pds-button-size:1.953rem}button.pds-animated-button--lg{--pds-button-size:3.052rem}.pds-animated-button__icon-wrapper{align-items:center;display:flex;justify-content:center;position:absolute}.pds-animated-button--fadeOut{-webkit-animation:scale-down-center .4s cubic-bezier(.25,.46,.45,.94) both;animation:scale-down-center .4s cubic-bezier(.25,.46,.45,.94) both;opacity:0;transition:.2s ease-in}.pds-animated-button--hide{display:none}.pds-animated-button--scaleIn{-webkit-animation:scale-in-center .2s cubic-bezier(.175,.885,.32,1.275) both;animation:scale-in-center .2s cubic-bezier(.175,.885,.32,1.275) both}@keyframes scale-in-center{0%{opacity:1;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}