@kth/style 0.0.9 → 0.0.11

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.
@@ -23,6 +23,8 @@ interface OptionProps {
23
23
  value: string;
24
24
  /** Human-readable label for the option */
25
25
  children: string;
26
+ /** True if the option should be disabled */
27
+ disabled: boolean;
26
28
  }
27
29
  interface OptionGroupProps {
28
30
  label: string;
@@ -30,5 +32,5 @@ interface OptionGroupProps {
30
32
  }
31
33
  export declare function Select({ name, label, description, value, onChange, children, error, }: SelectProps): JSX.Element;
32
34
  export declare function OptionGroup({ label, children }: OptionGroupProps): JSX.Element;
33
- export declare function Option({ value, children }: OptionProps): JSX.Element;
35
+ export declare function Option({ value, children, disabled }: OptionProps): JSX.Element;
34
36
  export {};
package/dist/cjs/index.js CHANGED
@@ -137,8 +137,8 @@ function Select({ name, label, description, value, onChange, children, error, })
137
137
  function OptionGroup({ label, children }) {
138
138
  return React.createElement("optgroup", { label: label }, children);
139
139
  }
140
- function Option({ value, children }) {
141
- return React.createElement("option", { value: value }, children);
140
+ function Option({ value, children, disabled }) {
141
+ return (React.createElement("option", { value: value, disabled: disabled }, children));
142
142
  }
143
143
 
144
144
  const SvgArrowBack = (props) => (React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1.25em", height: "1.25em", viewBox: "0 0 20 20", ...props },
@@ -162,7 +162,6 @@ function ForwardButton({ children, onClick }) {
162
162
  children,
163
163
  React.createElement(SvgArrowForward, null)));
164
164
  }
165
- // export function NextButton() {}
166
165
 
167
166
  const SvgCheck = (props) => (React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1.25em", height: "1.25em", viewBox: "0 0 20 20", ...props },
168
167
  React__namespace.createElement("path", { fill: "currentColor", d: "M8.23 14.063 4.707 10.52 5.75 9.479l2.48 2.459 6.02-6L15.292 7l-7.063 7.063Z" })));
@@ -23,6 +23,8 @@ interface OptionProps {
23
23
  value: string;
24
24
  /** Human-readable label for the option */
25
25
  children: string;
26
+ /** True if the option should be disabled */
27
+ disabled: boolean;
26
28
  }
27
29
  interface OptionGroupProps {
28
30
  label: string;
@@ -30,5 +32,5 @@ interface OptionGroupProps {
30
32
  }
31
33
  export declare function Select({ name, label, description, value, onChange, children, error, }: SelectProps): JSX.Element;
32
34
  export declare function OptionGroup({ label, children }: OptionGroupProps): JSX.Element;
33
- export declare function Option({ value, children }: OptionProps): JSX.Element;
35
+ export declare function Option({ value, children, disabled }: OptionProps): JSX.Element;
34
36
  export {};
package/dist/esm/index.js CHANGED
@@ -117,8 +117,8 @@ function Select({ name, label, description, value, onChange, children, error, })
117
117
  function OptionGroup({ label, children }) {
118
118
  return React__default.createElement("optgroup", { label: label }, children);
119
119
  }
120
- function Option({ value, children }) {
121
- return React__default.createElement("option", { value: value }, children);
120
+ function Option({ value, children, disabled }) {
121
+ return (React__default.createElement("option", { value: value, disabled: disabled }, children));
122
122
  }
123
123
 
124
124
  const SvgArrowBack = (props) => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1.25em", height: "1.25em", viewBox: "0 0 20 20", ...props },
@@ -142,7 +142,6 @@ function ForwardButton({ children, onClick }) {
142
142
  children,
143
143
  React__default.createElement(SvgArrowForward, null)));
144
144
  }
145
- // export function NextButton() {}
146
145
 
147
146
  const SvgCheck = (props) => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1.25em", height: "1.25em", viewBox: "0 0 20 20", ...props },
148
147
  React.createElement("path", { fill: "currentColor", d: "M8.23 14.063 4.707 10.52 5.75 9.479l2.48 2.459 6.02-6L15.292 7l-7.063 7.063Z" })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kth/style",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "scripts": {
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "react": "*"
49
49
  },
50
- "gitHead": "5c84200b7000ca5c45b18c5cb661280dbaf84e93"
50
+ "gitHead": "f4a1be0abfad78482f4b311317fe59b63f1a3042"
51
51
  }